Hide Table of Contents
SetBitmapsByName2 Method (IPropertyManagerPageBitmapButton)

Obsolete. Superseded by IPropertyManagerPageBitmapButton::SetBitmapsByName3.

.NET Syntax

Visual Basic (Declaration) 
Function SetBitmapsByName2( _
   ByVal BitmapOrig As System.String, _
   ByVal BitmapMaskOrig As System.String _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IPropertyManagerPageBitmapButton
Dim BitmapOrig As System.String
Dim BitmapMaskOrig As System.String
Dim value As System.Boolean
 
value = instance.SetBitmapsByName2(BitmapOrig, BitmapMaskOrig)
C# 
System.bool SetBitmapsByName2( 
   System.string BitmapOrig,
   System.string BitmapMaskOrig
)
C++/CLI 
System.bool SetBitmapsByName2( 
&   System.String^ BitmapOrig,
&   System.String^ BitmapMaskOrig
) 

Parameters

BitmapOrig
Full path and file name to the image in its non-selected state (see Remarks)
BitmapMaskOrig
Full path and file name to the image mask (see Remarks)

Return Value

True if the image is inserted, false if not

Remarks

The rest of the images (selected, highlight regular, highlight selected, and disabled) are automatically generated by SOLIDWORKS. The size of the image is not restricted; you can insert an image of any size. However, the standard image size is 24-pixels wide and 24-pixels high with a margin of at least 3 blank pixels on all sides of the bitmap because this is where the button borders are drawn; i.e., any pixels in the image in these 3 outer rows and columns of pixels are obscured by the button borders.

You can specify your own image mask using the BitmapMaskOrig argument, which should display the image exactly as you created it. If you specify an empty string for BitmapMaskOrig, then SOLIDWORKS generates what it needs; however, your image might appear blurred.

NOTE: Portable Network Graphics images (.png) do not support masking. To use this method with a .png file, pass the .png file name to BitmapOrig and an empty string to BitmapMaskOrig.

You must call this method after calling either of the following methods to create the button control:

 

See Also

Availability

SOLIDWORKS 2007 FCS, Revision Number 15.0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   SetBitmapsByName2 Method (IPropertyManagerPageBitmapButton)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2016 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.