[]
Creates a semi-transparent GcBitmap from the current GrayscaleBitmap.
This method treats the current GrayscaleBitmap as a transparency mask, regardless of the TransparencyMask property value.
public GcBitmap ToShadowBitmap(Color shadowColor, float opacityFactor = 1, bool zeroIsOpaque = false)
Public Function ToShadowBitmap(shadowColor As Color, Optional opacityFactor As Single = 1, Optional zeroIsOpaque As Boolean = False) As GcBitmap
Type | Name | Description |
---|---|---|
Color | shadowColor | The color to fill opaque pixels of the target bitmap. |
float | opacityFactor | Additional factor to scale the alpha channel. |
bool | zeroIsOpaque | Specifies whether zero values correspond to fully opaque (true) or fully transparent (false) pixels. |
Converts an existing instance of GcBitmap to a semi-transparent bitmap representing the current GrayscaleBitmap.
This method treats the current GrayscaleBitmap as a transparency mask, regardless of the TransparencyMask property value.
public void ToShadowBitmap(GcBitmap bmp, Color shadowColor, float opacityFactor = 1, bool zeroIsOpaque = false)
Public Sub ToShadowBitmap(bmp As GcBitmap, shadowColor As Color, Optional opacityFactor As Single = 1, Optional zeroIsOpaque As Boolean = False)
Type | Name | Description |
---|---|---|
GcBitmap | bmp | The target GcBitmap object. |
Color | shadowColor | The color to fill opaque pixels of the target bitmap. |
float | opacityFactor | Additional factor to scale the alpha channel. |
bool | zeroIsOpaque | Specifies whether zero values correspond to fully opaque (true) or fully transparent (false) pixels. |