µGFX  2.9
version 2.9
gdisp_image.h File Reference

Go to the source code of this file.

Data Structures

struct  gImage
 The structure for an image. More...
 

Functions

void gdispImageInit (gImage *img)
 Initialise a gImage object. More...
 
gdispImageError gdispImageOpenGFile (gImage *img, GFILE *f)
 Open an image using an open GFILE and get it ready for drawing. More...
 
void gdispImageClose (gImage *img)
 Close an image and release any dynamically allocated working storage. More...
 
gBool gdispImageIsOpen (gImage *img)
 Is an image open. More...
 
void gdispImageSetBgColor (gImage *img, gColor bgcolor)
 Set the background color of the image. More...
 
gdispImageError gdispImageCache (gImage *img)
 Cache the image. More...
 
gdispImageError gdispGImageDraw (GDisplay *g, gImage *img, gCoord x, gCoord y, gCoord cx, gCoord cy, gCoord sx, gCoord sy)
 Draw the image. More...
 
gDelay gdispImageNext (gImage *img)
 Prepare for the next frame/page in the image file. More...
 
gU16 gdispImageGetPaletteSize (gImage *img)
 Get the number of entries in the color palette. More...
 
gColor gdispImageGetPalette (gImage *img, gU16 index)
 Get an entry in the color palette. More...
 
gBool gdispImageAdjustPalette (gImage *img, gU16 index, gColor newColor)
 Modify an entry in the color palette. More...
 

Macros

#define gdispImageOpenFile(img, filename)   gdispImageOpenGFile((img), gfileOpen((filename), "rb"))
 Open an image in a file and get it ready for drawing. More...
 
#define gdispImageOpenBaseFileStream(img, BaseFileStreamPtr)   gdispImageOpenGFile((img), gfileOpenBaseFileStream((BaseFileStreamPtr), "rb"))
 Open an image in a ChibiOS basefilestream and get it ready for drawing. More...
 
#define gdispImageOpenMemory(img, ptr)   gdispImageOpenGFile((img), gfileOpenMemory((void *)(ptr), "rb"))
 Open an image in memory and get it ready for drawing. More...
 

Typedefs

typedef gU16 gdispImageType
 The type of image. More...
 
typedef gU16 gdispImageError
 An image error code. More...
 
typedef gU16 gdispImageFlags
 Image flags. More...
 
typedef struct gImage gImage
 The structure for an image. More...