Inesoft PrintCE SDK EVC++
CPrintCE::DrawPicture Method

Draws JPG or BMP file

C++ Syntax: long ret = object.DrawPicture(
                       LPCTSTR
path,
                       double
x,
                       double
y,
                       double
width,
                       double
height,
                       BOOL
keep_aspect
);

eVB Syntax: ret = object. DrawPicture(path, x, y, width, height, 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

points variable getting value of the picture's width

height

points variable getting value of the picture's height

kPixels - measurement in the device pixels
kInches - measurement in inches
kMillimeters - measurement in millimeters
kCentimeters - measurement in centumeters
kPoints - measurement in points (used for fonts), 72 points per logical inch

keep_aspect

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

Return Value

ret

1 if the picture is drawn, 0 if the picture is not found

Review

Coordinates are returned in the current measurement units (please refer to MeasureUnit property)



© 2009 Inesoft. All rights reserved.