MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > e) Image Functions > leImage_Create Function
MPLAB® Harmony Graphics Suite
leImage_Create Function

Initializes a leImage pointer

C
LIB_EXPORT leResult leImage_Create(
    leImage* img, 
    uint32_t width, 
    uint32_t height, 
    leColorMode mode, 
    void* data, 
    uint32_t locationID
);
Parameters
Parameters 
Description 
leImage* img 
the image object to initialize 
uint32_t width 
the width of the image 
uint32_t height 
the height of the image 
leColorMode mode 
the color mode of the image 
void* data 
the data address of the image 
uint32_t locationID 
the location ID of the image 
MPLAB® Harmony Graphics Suite