DIBMP:LoadDIBFromFile() Method

<< Click to Display Table of Contents >>

Navigation:  DiBMP Class >

DIBMP:LoadDIBFromFile() Method

Previous pageReturn to chapter overviewNext page

Purpose

To load a bitmap from an external file.

Syntax

<oDIBMP>:LoadDIBFromFile(cFileName) lSuccess                                (LOGIC)

Arguments

cFileName

The file name (including path) of the bitmap file.

Description

This method loads a bitmap from an external file.  The file must be a valid Windows bitmap file that contains a BITMAPFILEHEADER structure or it is ignored.

 

The BITMAPFILEHEADER structure is a standard Windows structure.  Please refer to the Windows SDK reference for more information.

 

There is no 64K size limitation when loading a bitmap from an external file.

Example

// Load a bitmap from a file

oDIBMP:LoadDIBFromFile("C:\WINDOWS\CASTLE.BMP")