Loads the video memory with data from the specified bitmap file.
GxFpga3571LoadFromBMPFile (nHandle, szFileName, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3500 board. |
szFilename |
LPCSTR |
Pointer to a null-terminated string that specifies the name of the BMP file to be loaded in video memory. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
This function expects the bitmap file to be 640 pixels by 480 pixels.
The following example loads the image data from “image.bmp” to the Gx3571’s video memory:
GxFpga3571LoadFile (nHandle, “image.bmp”, &nStatus);
GxFpga3571LoadArray, GxFpga3571LoadFile, GxFpgaGetErrorString