ESPHome  2023.5.5
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
 
virtual int get_current_frame () const
 

Protected Attributes

int width_
 
int height_
 
ImageType type_
 
const uint8_t * data_start_
 

Detailed Description

Definition at line 538 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 662 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 632 of file display_buffer.cpp.

◆ get_current_frame()

int esphome::display::Image::get_current_frame ( ) const
virtual

Reimplemented in esphome::display::Animation.

Definition at line 664 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 652 of file display_buffer.cpp.

◆ get_height()

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

Definition at line 660 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 625 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 641 of file display_buffer.cpp.

◆ get_type()

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

Definition at line 661 of file display_buffer.cpp.

◆ get_width()

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

Definition at line 659 of file display_buffer.cpp.

Field Documentation

◆ data_start_

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

Definition at line 555 of file display_buffer.h.

◆ height_

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

Definition at line 553 of file display_buffer.h.

◆ type_

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

Definition at line 554 of file display_buffer.h.

◆ width_

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

Definition at line 552 of file display_buffer.h.


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