Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: void DrawImageAlpha(this Graphics, Image, Rectangle, float)

Declaration

public 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 Graphicsgraphics Graphics object to alpha-blend the image onto.
Imageimage Image to draw.
RectangledestRect Destination rectangle within the target Graphics canvas.
floatopacity 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.