GetPictureSize

Top  Previous  Next

 

GetPictureSize (Method)

 

Returns the width and the height (in drawing units) of the picture that is in a specific picture file

 

Syntax:

Function GetPictureSize(sPictureFile As String, aWidth As Single, aHeight As Single) As Boolean

 

The GetPictureSize method syntax consists of the following:

Parameter

Data Type

Description

sPictureFile

String

Is the name of the picture file

aWidth

Single

Is the width of the picture into drawing units

aHeight

Single

Is the heigth of the picture into drawing units

 

Return value:

Boolean - True on success, false on error.

 

Example