Syntax

Result = dbLoadBitmap(Filename.s, BitmapID)

Description

If #PB_Any is used as the BitmapID parameter, the new ID will be returned as 'Result'. Otherwise the value of 'Result' is the same value passed as the BitmapID parameter.

This command loads a picture file to the screen. The picture file must be of the BMP, JPG, TGA, DDS, DIB or PNG format. You can optionally provide a Bitmap Number between 0 and 32. Once you have loaded the picture file successfully, you can use the specified bitmap number to modify and manage the bitmap. The bitmap number should be specified using an integer value.

See Also

dbBitmapExist, dbCopyBitmap, dbCreateBitmap, dbDeleteBitmap, dbSetBitmapFormat