Table of Contents

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

image Bitmap

file to get bitmask for

size Size

new size for the new png file

fullFileName string

file name with or without extension, this method will save the image as .png file format only

allowPartialOpacity bool

if set true the number assigned to "opacityThreshold" will be considered as entered

opacityThreshold byte

a number between 0 and 255 maximum

invertedMask bool