Class PmpBitmap
- Namespace
- Hymma.Solidworks.Addins
- Assembly
- Hymma.Solidworks.Addins.dll
picture inside a property manager page
public class PmpBitmap : PmpControl<PropertyManagerPageBitmap>, IWrapSolidworksObject<PropertyManagerPageBitmap>, IReleaseSolidworksObject
- Inheritance
-
PmpControl<PropertyManagerPageBitmap>PmpBitmap
- Implements
-
IWrapSolidworksObject<PropertyManagerPageBitmap>
- Inherited Members
Constructors
PmpBitmap(Bitmap, string, ControlResizeStyles, byte)
generates a bitmap in the property manager page
public PmpBitmap(Bitmap bitmap, string fileName, ControlResizeStyles resizeStyles = ControlResizeStyles.LockLeft, byte opacity = 255)
Parameters
bitmapBitmapbitmap to edit and set in the property manager page
fileNamestringresultant bitmap file name on disk without extensions or directory
resizeStylesControlResizeStylesresize option as defined in ControlResizeStyles
opacitybytedefine opacity of the image. 255 is the max possible value, less values result in more transparent pictures
Remarks
The typical image format for the two SOLIDWORKS bitmaps is 18 x 18 pixels x 256 colors.
Methods
UpdatePicture(Bitmap, string, byte)
Sets the bitmap for this control.
public void UpdatePicture(Bitmap bitmap, string fileName, byte opacity)
Parameters
bitmapBitmapbitmap to edit and set in the property manager page
fileNamestringresultant bitmap file name on disk without extensions or directory
opacitybytedefine opacity of the image. less values result in more transparent pictures
Remarks
The typical image format for the two SOLIDWORKS bitmaps is 18 x 18 pixels x 256 colors.
Using this method, you can specify different sizes e.g. 24 x 90.
You can use this method during the PropertyManager page is displayed or closed. If you use this method when the PropertyManager page is displayed, use bitmaps that are the same size.