[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcBitmap.AlphaBlend

AlphaBlend Method

AlphaBlend(GcBitmap, int, int, Rectangle?, float, int, int, int, int)

Draws the source bitmap with the specified opacity into the current bitmap.

Declaration
public void AlphaBlend(GcBitmap srcBitmap, int xDst, int yDst, Rectangle? clipRect = null, float opacity = 1, int width = 2147483647, int height = 2147483647, int xSrc = 0, int ySrc = 0)
Public Sub AlphaBlend(srcBitmap As GcBitmap, xDst As Integer, yDst As Integer, Optional clipRect As Rectangle? = Nothing, Optional opacity As Single = 1, Optional width As Integer = 2147483647, Optional height As Integer = 2147483647, Optional xSrc As Integer = 0, Optional ySrc As Integer = 0)
Parameters
Type Name Description
GcBitmap srcBitmap

The source bitmap.

int xDst

The x-coordinate, in pixels, of the upper-left corner of the destination rectangle.

int yDst

The y-coordinate, in pixels, of the upper-left corner of the destination rectangle.

Rectangle? clipRect

The affected rectangle of the destination GcBitmap.

float opacity

The opacity [0, 1] of the source bitmap, to multiply to the source bitmap's alpha channel.

int width

The width, in pixels, of the source and destination rectangles.

int height

The height, in pixels, of the source and destination rectangles.

int xSrc

The x-coordinate, in pixels, of the upper-left corner of the source rectangle.

int ySrc

The y-coordinate, in pixels, of the upper-left corner of the source rectangle.