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 |
| Static method: Bitmap MakeSemitransparentImage(Size, Action<Graphics>, Action<Graphics>, Action<Graphics>)Declarationpublic static Bitmap MakeSemitransparentImage(
Size size,
Action<Graphics> initGraphics,
Action<Graphics> drawOpaqueLayer,
Action<Graphics> drawTransparencyLayer
) Summary
Generates an image by taking the color components from one image and the transparency (alpha) layer from
another. ParametersSize | size |
Size of the image to generate. | Action<Graphics> | initGraphics |
Optional delegate to invoke on each of the two images. | Action<Graphics> | drawOpaqueLayer |
Code to draw the color layers. | Action<Graphics> | drawTransparencyLayer |
Code to draw the transparency (alpha) layer. |
Returns
The new bitmap generated. |