www.gnostice.com 

DrawImageFileR Method

Top  Previous  Next

 

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

 

 

Syntax

 

[VC++]

void DrawImageFileR(double Left, double Top, double Right, double Bottom, LPCTSTR FileName);

 

[C#]

public virtual extern void DrawImageFileR(double Left, double Top, double Right, double Bottom, string FileName);

 

[VB]

Sub DrawImageFileR(Left As Double, Top As Double, Right As Double, Bottom As Double, FileName As String)

 

 

Parameters

 

Left, Top

[in] Specifies the upper-left corner of the rectangle.

 

Right, Bottom

[in] Specifies the lower-right corner of the rectangle.

 

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.