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: void DrawImageAlpha(this Graphics, Image, Rectangle, float)Declarationpublic static void DrawImageAlpha(
this Graphics graphics,
Image image,
Rectangle destRect,
float opacity
)Summary
Draws the specified image into the destination rectangle destRect of the
graphics object using the specified opacity. Parameters| this Graphics | graphics |
Graphics object to alpha-blend the image onto. | | Image | image |
Image to draw. | | Rectangle | destRect |
Destination rectangle within the target Graphics canvas. | | float | opacity |
Opacity level to use when drawing the image. 0 means nothing changes. 1 means the image is drawn normally. 0.5
means a 50% blend between source and destination. |
|