ESPHome  2022.6.2
Public Member Functions | Protected Attributes
esphome::display::Image Class Reference

#include <display_buffer.h>

Inheritance diagram for esphome::display::Image:
esphome::display::Animation

Public Member Functions

 Image (const uint8_t *data_start, int width, int height, ImageType type)
 
virtual bool get_pixel (int x, int y) const
 
virtual Color get_color_pixel (int x, int y) const
 
virtual Color get_rgb565_pixel (int x, int y) const
 
virtual Color get_grayscale_pixel (int x, int y) const
 
int get_width () const
 
int get_height () const
 
ImageType get_type () const
 

Protected Attributes

int width_
 
int height_
 
ImageType type_
 
const uint8_t * data_start_
 

Detailed Description

Definition at line 463 of file display_buffer.h.

Constructor & Destructor Documentation

◆ Image()

esphome::display::Image::Image ( const uint8_t *  data_start,
int  width,
int  height,
ImageType  type 
)

Definition at line 528 of file display_buffer.cpp.

Member Function Documentation

◆ get_color_pixel()

Color esphome::display::Image::get_color_pixel ( int  x,
int  y 
) const
virtual

Reimplemented in esphome::display::Animation.

Definition at line 498 of file display_buffer.cpp.

◆ get_grayscale_pixel()

Color esphome::display::Image::get_grayscale_pixel ( int  x,
int  y 
) const
virtual

Reimplemented in esphome::display::Animation.

Definition at line 518 of file display_buffer.cpp.

◆ get_height()

int esphome::display::Image::get_height ( ) const

Definition at line 526 of file display_buffer.cpp.

◆ get_pixel()

bool esphome::display::Image::get_pixel ( int  x,
int  y 
) const
virtual

Reimplemented in esphome::display::Animation.

Definition at line 491 of file display_buffer.cpp.

◆ get_rgb565_pixel()

Color esphome::display::Image::get_rgb565_pixel ( int  x,
int  y 
) const
virtual

Reimplemented in esphome::display::Animation.

Definition at line 507 of file display_buffer.cpp.

◆ get_type()

ImageType esphome::display::Image::get_type ( ) const

Definition at line 527 of file display_buffer.cpp.

◆ get_width()

int esphome::display::Image::get_width ( ) const

Definition at line 525 of file display_buffer.cpp.

Field Documentation

◆ data_start_

const uint8_t* esphome::display::Image::data_start_
protected

Definition at line 478 of file display_buffer.h.

◆ height_

int esphome::display::Image::height_
protected

Definition at line 476 of file display_buffer.h.

◆ type_

ImageType esphome::display::Image::type_
protected

Definition at line 477 of file display_buffer.h.

◆ width_

int esphome::display::Image::width_
protected

Definition at line 475 of file display_buffer.h.


The documentation for this class was generated from the following files: