Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: Bitmap MakeSemitransparentImage(Size, Action<Graphics>, Action<Graphics>, Action<Graphics>)

Declaration

public 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.

Parameters

Sizesize 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.