Inesoft PrintCE SDK EVC++
CPrintCE::GetPictureSize Method

Returns size of the picture in the JPG orBMP file

C++ Syntax: long ret = object.GetPictureSize(
                       LPCTSTR
path,
                       VARIANT
*width,
                       VARIANT
*height,
                       BOOL
keep_aspect);
);

eVB Syntax: value = object.GetPictureSize(path, width, height)

Parameters

path

is the path and name of the picture file

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

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.