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.

Syntax

Boolean SetTransparency(bTransparency As Boolean, nMask As Number)

Return value

Returns true if the function succeeded.

Parameters

ParameterTypeRequiredDescription
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.

Category

Properties

See also

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