![]() |
µGFX
2.9
version 2.9
|
ImageBox widget. Used to display images within the GWIN widget system.
GWIN allos it to create an image widget. The widget takes no user input.
Functions | |
| GHandle | gwinGImageCreate (GDisplay *g, GImageObject *widget, GWindowInit *pInit) |
| Create an image widget. More... | |
| gBool | gwinImageOpenGFile (GHandle gh, GFILE *f) |
| Opens the image using a GFILE. More... | |
| gdispImageError | gwinImageCache (GHandle gh) |
| Cache the image. More... | |
Macros | |
| #define | gwinImageOpenFile(gh, filename) gwinImageOpenGFile((gh), gfileOpen((filename), "rb")) |
| Opens the image using the specified filename. More... | |
| #define | gwinImageOpenMemory(gh, ptr) gwinImageOpenGFile((gh), gfileOpenMemory((void *)(ptr), "rb")) |
| Sets the input routines that support reading the image from memory in RAM or flash. More... | |
| #define | gwinImageOpenStream(gh, streamPtr) gwinImageOpenGFile((gh), gfileOpenBaseFIleStream((streamPtr), "rb")) |
| Sets the input routines that support reading the image from a BaseFileStream (eg. an SD-Card). More... | |
| GHandle gwinGImageCreate | ( | GDisplay * | g, |
| GImageObject * | widget, | ||
| GWindowInit * | pInit | ||
| ) |
Create an image widget.
Display's a picture.
| [in] | g | The GDisplay to display this window on |
| [in] | widget | The image widget structure to initialise. If this is NULL, the structure is dynamically allocated. |
| [in] | pInit | The initialization parameters to use. |
| gdispImageError gwinImageCache | ( | GHandle | gh | ) |
Cache the image.
Decodes and caches the current frame into RAM.
| [in] | gh | The widget (must be an image widget) |
Opens the image using a GFILE.
| [in] | gh | The widget (must be an image widget) |
| [in] | f | The open (for reading) GFILE to use |
| #define gwinImageOpenFile | ( | gh, | |
| filename | |||
| ) | gwinImageOpenGFile((gh), gfileOpen((filename), "rb")) |
Opens the image using the specified filename.
| [in] | gh | The widget (must be an image widget) |
| [in] | filename | The filename to open |
Definition at line 80 of file gwin_image.h.
| #define gwinImageOpenMemory | ( | gh, | |
| ptr | |||
| ) | gwinImageOpenGFile((gh), gfileOpenMemory((void *)(ptr), "rb")) |
Sets the input routines that support reading the image from memory in RAM or flash.
| [in] | gh | The widget (must be an image widget) |
| [in] | ptr | A pointer to the image in RAM or Flash |
Definition at line 93 of file gwin_image.h.
| #define gwinImageOpenStream | ( | gh, | |
| streamPtr | |||
| ) | gwinImageOpenGFile((gh), gfileOpenBaseFIleStream((streamPtr), "rb")) |
Sets the input routines that support reading the image from a BaseFileStream (eg. an SD-Card).
| [in] | gh | The widget (must be an image widget) |
| [in] | streamPtr | A pointer to the (open) BaseFileStream object. |
Definition at line 105 of file gwin_image.h.