Inesoft PrintCE SDK EVC++
prnDrawPicture

The function draws JPG or BMP file.

BOOL prnDrawPicture(
    TCHAR
* path,
    double
x,
    double
y,
    double
width,
    double
height,
    BOOL
keep_aspect
);

Parameters

path

is the path and name of the picture file

x, y

are coordinates of the place where the picture is to be drawn

width

destination width of picture, if 0, initial width of the picture is used

height

destination height of picture, if 0, initial height of the picture is used

keep_aspect

if TRUE, width-to-height ratio of the original picture remains the same

Return value

TRUE if the picture is drawn, FALSE if the picture is not found

Remark

Coordinates, width and height are set in the current measurement units (please refer to prnSetMeasureUnit)

See Also

prnGetPictureSize

 


© 2009 Inesoft. All rights reserved.