Inesoft PrintCE SDK .NET
PrintCE::DrawPicture Method

Draws JPG or BMP file

C# Syntax: bool ret = object.DrawPicture(string path, double x, double y, double width, double height, bool keep_aspect);
VB Syntax: Dim
ret As Boolean = object.DrawPicture(ByVal path As String, ByVal x As Double, ByVal y As Double, ByVal width As Double, ByVal height As Double, ByVal keep_aspect As Boolean)

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

true if the picture is drawn, false 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.