www.gnostice.com 

DrawImageFileXY Method

Top  Previous  Next

 

This method is used to draw an image, specified by its pathname, at a specified position.

 

 

Syntax

 

[VC++]

void DrawImageFileXY(double X, double Y, LPCTSTR FileName);

 

[C#]

public virtual extern void DrawImageFileXY(double X, double Y, string FileName);

 

[VB]

Sub DrawImageFileXY(X As Double, Y As Double, FileName As String)

 

 

Parameters

 

X

[in] Specifies the x-coordinate of the upper-left corner of the rendered image.

 

Y

[in] Specifies the y-coordinate of the upper-left corner of the rendered image.

 

FileName

[in] Specifies the pathname of the image file that needs to be rendered.

 

 

Remarks

 

This method supports only four types of images – BMP, icon, metafile, and JPEG.

 

 

Example Code

 

For an example code, see DrawImageFileXY, DrawImageFileR Example.