GetMaximumFontSize(graphics, fontFamily, text, style, allowWordWrapping, maxWidth, maxHeight) MakeSemitransparentImage(width, height, initGraphics, drawOpaqueLayer, drawTransparencyLayer, transparencyFromChannel, invertTransparency)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Extension method: Bitmap SetTransparencyChannel(this Bitmap, Bitmap, int, bool)Declarationpublic static Bitmap SetTransparencyChannel(
this Bitmap source,
Bitmap transparencyLayer,
int channel,
bool invert = false
) Summary
Modifies the current bitmap’s transparency layer by setting it to the data from another bitmap. Parametersthis Bitmap | source |
The bitmap to be modified. | Bitmap | transparencyLayer |
The bitmap containing the transparency channel. Must be the same size as the source bitmap. | int | channel |
Which channel from transparencyLayer to use: 0 for blue, 1 for green, 2 for red, and 3 for
the alpha channel. | bool | invert |
If true, the selected channel is inverted. |
Returns
A reference to the same bitmap that was modified. |