Skip to content
Discussion options

You must be logged in to vote

if the last question had a valid response, please mark the discussion as answered :)

the primitive signatures for drawJpg are :

LGFXBase::drawJpg(
  Stream* stream, 
  int32_t x=0, int32_t y=0, 
  int32_t maxWidth=0, int32_t maxHeight=0, 
  int32_t offsetX=0, int32_t offsetY=0, 
  float scale_x = 1.0f, float scale_y = 0.0f, 
  datum_t datum = datum_t::top_left
);

LGFXBase::drawJpg(
  const uint8_t *jpg_data, uint32_t jpg_len, 
  int32_t x=0, int32_t y=0, 
  int32_t maxWidth=0, int32_t maxHeight=0, 
  int32_t offsetX=0, int32_t offsetY=0, 
  float scale_x = 1.0f, float scale_y = 0.0f, 
  datum_t datum = datum_t::top_left
);

and here's a couple of examples:

    lcd.drawJpg(jpg_data, jpg_da…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant