Class MaskedBitmap
- Namespace
- Hymma.Solidworks.Addins
- Assembly
- Hymma.Solidworks.Addins.dll
adds an alpha layer to a bitmap file
public sealed class MaskedBitmap
- Inheritance
-
MaskedBitmap
- Inherited Members
Methods
SaveAsPng(Bitmap, Size, ref string, bool, byte, bool)
coverts and saves a bitmap to specified location
public static void SaveAsPng(Bitmap image, Size size, ref string fullFileName, bool allowPartialOpacity = true, byte opacityThreshold = 255, bool invertedMask = true)
Parameters
imageBitmapfile to get bitmask for
sizeSizenew size for the new png file
fullFileNamestringfile name with or without extension, this method will save the image as .png file format only
allowPartialOpacityboolif set true the number assigned to "opacityThreshold" will be considered as entered
opacityThresholdbytea number between 0 and 255 maximum
invertedMaskbool