GdipDrawImagePointRect

 

 

Description

Draws an image at a specified location.

Syntax

GpStatus WINGDIPAPI GdipDrawImagePointRect(

    GpGraphics *graphics,

    GpImage *image,

    REAL x,

    REAL y,

    REAL srcx,

    REAL srcy,

    REAL srcwidth,

    REAL srcheight,

    GpUnit srcUnit

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawImagePointRect ( _

    BYVAL graphics AS DWORD, _

    BYVAL pImage AS DWORD, _

    BYVAL x AS SINGLE, _

    BYVAL y AS SINGLE, _

    BYVAL srcx AS SINGLE, _

    BYVAL srcy AS SINGLE, _

    BYVAL srcwidth AS SINGLE, _

    BYVAL srcheight AS SINGLE, _

    BYVAL srcUnit AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

image

[in] Pointer to an Image object that specifies the image to be drawn.

x

[in] Simple precision value that specifies the x-coordinate of the upper-left corner of the rendered image.

y

[in] Simple precision value that specifies the y-coordinate of the upper-left corner of the rendered image.

srcx

[in] Simple precision value that specifies the x-coordinate of the upper-left corner of the portion of the source image to be drawn.

srcy

[in] Simple precision value that specifies the y-coordinate of the upper-left corner of the portion of the source image to be drawn.

srcwidth

[in] Simple precision value that specifies the width of the portion of the source image to be drawn

srcheight

[in] Simple precision value that specifies the height of the portion of the source image to be drawn.

srcunit

[in] Element of the Unit enumeration that specifies the unit of measure for the image. The default value is UnitPixel.

 

Valid HTML 4.01 Transitional