Marblecore Imaging Library Documentation

Documentation Introduction
Documentation / Marblecore Imaging / Methods / SetTransparency

SetTransparency method

Enables or disables transparency for the image and sets the transparency- or backgroundcolor.


Boolean SetTransparency(bTransparency As Boolean, nMask As Number)

Return value

Returns true if the function succeeded.


bTransparencyBooleanYesEnable or disable transparency.
nMaskNumberNoOptional parameter containing a RGB color. If transparency is enabled, this color will be used for 8 bit images as transparency mask. If transparency is disabled, this color specifies the backgroundcolor.



See also

GetBase64String | GetBitsPerPixelFromFile | GetFormatAsStringFromFile | GetFormatFromFile | GetFormatFromString | GetFramesFromFile | GetGUID | GetHasMultipleFramesFromFile | GetHeightFromFile | GetInfoFromFile | GetInfoFromURL | GetIsAnimatedFromFile | GetIsCMYKFromFile | GetIsSupportedFromFile | GetMegaPixelsFromFile | GetMIMEFromFile | GetMIMEFromFormat | GetWidthFromFile | SetBackgroundColor | SetFormat | SetFormatDefault | SetPixel