A basic graphics package for the LPC4088 Display Module.
Dependents: lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI lpc4088_displaymodule_fs_aid ... more
Fork of DMBasicGUI by
Diff: lpc_swim/lpc_swim_image.h
- Revision:
- 11:265884fa7fdd
- Parent:
- 7:4ba7bd9d32ef
diff -r 651861441108 -r 265884fa7fdd lpc_swim/lpc_swim_image.h --- a/lpc_swim/lpc_swim_image.h Mon Jan 26 10:06:58 2015 +0100 +++ b/lpc_swim/lpc_swim_image.h Tue Feb 17 10:34:13 2015 +0100 @@ -79,7 +79,7 @@ * @param x1 : Virtual X position of pixel * @param y1 : Virtual Y position of pixel * @return Nothing - * @note Places an image at the spcified position in the window. + * @note Places an image at the specified position in the window. * Image is cropped to the window size. */ void swim_put_image_xy(SWIM_WINDOW_T *win, @@ -90,6 +90,27 @@ int32_t y1); /** + * @brief Puts a raw transparent image at the virtual X, Y coordinate in the window + * @param win : Pointer to window data structure + * @param image : Pointer to raw image data + * @param xsize : Horizontal size of image data + * @param ysize : Vertical size of image data + * @param x1 : Virtual X position of pixel + * @param y1 : Virtual Y position of pixel + * @param tColor : Transparent color + * @return Nothing + * @note Places an image at the specified position in the window. + * Image is cropped to the window size. Pixels matching the tColor are not drawn. + */ +void swim_put_transparent_image_xy(SWIM_WINDOW_T *win, + const COLOR_T *image, + int32_t xsize, + int32_t ysize, + int32_t x1, + int32_t y1, + COLOR_T tColor); + +/** * @brief Puts a raw image into a window inverted * @param win : Pointer to window data structure * @param image : Pointer to raw image data