NightFox’s Lib
Functions
Functions to load files of common media formats.

This module contains a function to load BMP files. More...

Functions

void NF_LoadBMP (const char *file, u32 slot)
 Load a BMP image into a 16-bit background slot. More...
 

Detailed Description

This module contains a function to load BMP files.

Function Documentation

◆ NF_LoadBMP()

void NF_LoadBMP ( const char *  file,
u32  slot 
)

Load a BMP image into a 16-bit background slot.

It supports 8, 16 and 24 bits BMP images. To load and show the image, you must initialize 16 bits mode, the backbuffers and to call NF_Draw16bitsImage() to send the image from the RAM slot to the backbuffer.

All pixels drawn out of bounds are ignored.

Example:

// Load "lostend.bmp" to 16-bit slot 0
NF_LoadBMP("bmp/lostend", 0);
void NF_LoadBMP(const char *file, u32 slot)
Load a BMP image into a 16-bit background slot.
Definition: nf_media.c:17
Parameters
fileFile path.
slotSlot number (0 - 15).