Canvas_BitmapGetFileInfo

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > Canvas Control > Canvas Control Commands >

Canvas_BitmapGetFileInfo

 

Description

 

Retrieve the size of an image in a Windows .BMP file.

 

Syntax

 

n = Canvas_BitmapGetFileInfo(BitmapFileName, nWidth, nHeight)

 

Returns

 

Number.

Zero = no errors

 

Parameters

 

Name

Type

Optional

Meaning

BitmapFileName

String

No

Full path of a bitmap file

nWidth

Variable

No

A numeric variable that will receive bitmap width

nHeight

Variable

No

A numeric variable that will receive bitmap height

 

Remarks

 

Restrictions

 

Only Windows .BMP file is supported at the moment

 

See also

 

Examples