Hide Table of Contents
SetBitmapsByName2 Method (IPropertyManagerPageBitmapButton)

Inserts the specified bitmap or PNG image for this button.

.NET Syntax

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

Parameters

BitmapOrig
Full path and filename to bitmap or PNG image in its non-checked state (see Remarks)
BitmapMaskOrig
Full path and filename to the bitmap or PNG image mask (see Remarks)

Return Value

True if the bitmap or PNG image is inserted, false if not

Remarks

The rest of the bitmaps (selected, highlight regular, highlight selected, and disabled) or PNG images are automatically generated by SolidWorks. The size of the bitmap or PNG image is not restricted; you can insert a bitmap or PNG image of any size. However, standard bitmap 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/columns of pixels will be obscured by the button borders. The parts of the bitmap or PNG image painted white to blend in with the background color of the PropertyManager page, regardless of the color of the page.

You can specify your own bitmap or PNG image mask using the BitmapMaskOrig argument, which should display the bitmap or PNG image exactly as you created it. If you specify an empty string for BitmapMaskOrig, SolidWorks will generate what it needs; however, your bitmap or PNG image may appear blurred.

You must call this method after calling either of the following APIs to create the bitmap 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) 2010 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.