#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
|
bitmap_rich * | bitmap_new_rich (uint32_t size_px_x, uint32_t size_px_y, uint32_t *color, bool copy_color, uint32_t *layout, bool copy_layout) |
| { function_description } More...
|
|
void | bitmap_delete_rich (bitmap_rich *bmp) |
| delete a rich bitmap created with bitmap_new_rich() More...
|
|
uint8_t | bitmap_get_pixel_r (const bitmap_rich *bmp, uint32_t x, uint32_t y) |
| get the color of pixel from rich bitmap More...
|
|
void | bitmap_display_pixel_r (const bitmap_rich *bmp, uint32_t bmp_x, uint32_t bmp_y, uint32_t x, uint32_t y) |
| display a specific rich bitmap pixel on the screen More...
|
|
◆ bitmap_rich
◆ bitmap_delete_rich()
◆ bitmap_display_pixel_r()
void bitmap_display_pixel_r |
( |
const bitmap_rich * |
bmp, |
|
|
uint32_t |
bmp_x, |
|
|
uint32_t |
bmp_y, |
|
|
uint32_t |
x, |
|
|
uint32_t |
y |
|
) |
| |
display a specific rich bitmap pixel on the screen
- Parameters
-
[in] | bmp | The bitmap |
[in] | bmp_x | The bitmap x coordinate (in pixels) |
[in] | bmp_y | The bitmap y coordinate (in pixels) |
[in] | x | screen : x coordinate |
[in] | y | screen : y coordinate |
◆ bitmap_get_pixel_r()
uint8_t bitmap_get_pixel_r |
( |
const bitmap_rich * |
bmp, |
|
|
uint32_t |
x, |
|
|
uint32_t |
y |
|
) |
| |
|
inline |
get the color of pixel from rich bitmap
- Parameters
-
[in] | bmp | The bitmap |
[in] | x | The bitmap x coordinate (in pixels) |
[in] | y | The bitmap y coordinate (in pixels) |
- Returns
- the color coded in a unsigned char : if (color >> 1) switch (color%2) { case 0: // WHITE break; case 1: // BLACK } else
◆ bitmap_new_rich()
bitmap_rich* bitmap_new_rich |
( |
uint32_t |
size_px_x, |
|
|
uint32_t |
size_px_y, |
|
|
uint32_t * |
color, |
|
|
bool |
copy_color, |
|
|
uint32_t * |
layout, |
|
|
bool |
copy_layout |
|
) |
| |
{ function_description }
- Parameters
-
[in] | size_px_x | The width in px |
[in] | size_px_y | The height in px |
| color | color origin |
[in] | copy_color | if you want to make a copy, or only to make a link |
| layout | layout origin -> can be set as 0 if it isn't needed |
[in] | copy_layout | if you want to make a copy, or to make a link |
- Returns
- a rich bitmap, ready to use !