AlphaBlend


static void AlphaBlend(Handle Destination,
                       int DestinationX,
                       int DestinationY,
                       int DestinationWidth,
                       int DestinationHeight,
                       Handle Source,
                       int SourceX,
                       int SourceY,
                       int SourceWidth,
                       int SourceHeight,
                       BlendFunction^ Blend)

This function displays a bitmap containing transparent or semi-transparent pixels.

Parameters

Handle Destination

The handle of the destination device context.

int DestinationX

The x-coordinate (in logical units) of the upper left corner of the destination rectangle.

int DestinationY

The y-coordinate (in logical units) of the upper left corner of the destination rectangle.

int DestinationWidth

The width (in logical units) of the destination rectangle.

int DestinationHeight

The height (in logical units) of the destination rectangle.

Handle Source

The handle of the source device context.

int SourceX

The x-coordinate (in logical units) of the upper left corner of the source rectangle.

int SourceY

The y-coordinate (in logical units) of the upper left corner of the source rectangle.

int SourceWidth

The width (in logical units) of the source rectangle.

int SourceHeight

The height (in logical units) of the source rectangle.

BlendFunction^ Blend

A pointer to an object defining the applicable alpha blending functions.

Notes

When the source and destination rectangles differ in size, the source bitmap is transformed to match the destination rectangle.

The source coordinates are subject to the current transformation in the source device context. Likewise, the destination coordinates are subject to the current transformation in the destination device context.

When the color formats of the device contexts differ, a color conversion is performed.

If any of the specified width and height values are negative, this function will fail.

Details

Name Space IPlusPlus::Graphics
Class Gdi
Assembly IPlusPlus.WinPlus.dll