TRSGPCanvas.DrawImage(IRSGPImage,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,TRSGPUnit,TRSGPImageAttributes,DrawImageAbort,Pointer) Method |
Scroll Prev Top Next More |
Draws a portion of an image at the specified location and size
Namespace: RSGdiPlusGraphics
Delphi |
public |
Parameters
Image
Type: IRSGPImage
Image to be drawn
DstX
Type: Integer
x-coordinate of the upper-left corner of the destination position at which to draw the image.
DstY
Type: Integer
x-coordinate of the upper-left corner of the destination position at which to draw the image.
DstWidth
Type: Integer
Width of the destination rectangle at which to draw the image. The image is scaled to fit the width.
DstHeight
Type: Integer
Height of the destination rectangle at which to draw the image. The image is scaled to fit the height.
SrcX
Type: Integer
x-coordinate of the upper-left corner of the portion of the source image to be drawn.
SrcY
Type: Integer
y-coordinate of the upper-left corner of the portion of the source image to be drawn.
SrcWidth
Type: Integer
Width of the portion of the source image to be drawn.
SrcHeight
Type: Integer
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.