Hide Comments
Hide Comments

TRSGPCanvas.DrawImage(TRSGPImage,TRSPoints,Single,Single,Single,Single,TRSGPUnit,TRSGPImageAttributes,DrawImageAbort,Pointer) Method

Comments (0)

Draws a portion of an image transformed to fit into a parallelogram specified by the Points parameter

The Points parameter must have a length of 3 to specify the coordinates of the upper-left corner, upper-right corner, and lower-left corner of the parallelogram. The coordinate of the lower-right corner is calculated using the three given coordinates, the width, and the height of the image. The portion of the source image to be drawn is scaled to fit the parallelogram.
 

Namespace: RSGdiPlusGraphics

expandingSyntax

Parameters

Image

Type: TRSGPImage

Image to be drawn

Points

Type: TRSPoints

the area, in a parallelogram, in which to draw the image.

SrcX

Type: Single

x-coordinate of the upper-left corner of the portion of the source image to be drawn.

SrcY

Type: Single

y-coordinate of the upper-left corner of the portion of the source image to be drawn.

SrcWidth

Type: Single

Width of the portion of the source image to be drawn.

SrcHeight

Type: Single

Height of the portion of the source image to be drawn.

SrcUnit

Type: TRSGPUnit

Unit of measure for the image. The default value is uPixel.

ImageAttributes

Type: TRSGpImageAttributes

Color adjustments to be applied when the image is rendered.

Callback

Type: DrawImageAbort

Callback method used to cancel the drawing in progress. The default value is nil.

CallbackData

Type: Pointer

Pointer to additional data used by the method specified by the callback parameter. The default value is nil.

Opacity

Transparency to be applied when drawing image.

expandingSee Also

Comments (0)

RiverSoftAVG SVG Component Library (RSCL) © 2013-2016, Thomas G. Grubb