LCD-ESP32-Driver 1.0
Project includes component for controlling LCD displays. Currently supports only one LCD controller - SSD1283A but it may change in the future.
Loading...
Searching...
No Matches
lcd_image.h File Reference

Contains representation of the images to be drawn on LCD display and methods that simplify the work with them. More...

#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  LCD_image_t
 Describes properties of the image to be drawn on LCD display. More...
 

Typedefs

typedef struct LCD_image_t LCD_image_t
 

Functions

bool lcd_image_get_pixel (const LCD_image_t *const image, const uint16_t x, const uint16_t y, uint16_t *const pixelOut)
 Gets pixel (color value) from specific position of the image. More...
 

Detailed Description

Contains representation of the images to be drawn on LCD display and methods that simplify the work with them.

Author
Damian Úlusarczyk

Function Documentation

◆ lcd_image_get_pixel()

bool lcd_image_get_pixel ( const LCD_image_t *const  image,
const uint16_t  x,
const uint16_t  y,
uint16_t *const  pixelOut 
)

Gets pixel (color value) from specific position of the image.

Parameters
imagePointer to the selected image
xPosition of the pixel in X-axis
yPosition of the pixel in Y-axis
pixelOutPointer to variable where value of the pixel will be stored
Returns
true Pixel value has been stored successfully
false Invalid values of the function parameters