-
|
First thank you for the quick response to my last question about that topic. It is not that it does not work, it is I have problem, to code the call correct, I do not come clear with the parameters, x and y are clear, xmax and ymax, too, but then, a simple line of examble code would help. Best Regaerds Rainer |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
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_data_len, x, y, 0, 0, 0, 0, scaleX, scaleY); // jpg will be zoomed
fs::File myJpgFile = SD.open("/my_file.jpg");
if( myJpgFile ) {
lcd.drawJpg((Stream*)&myJpgFile, x, y);
myJpgFile.close();
} |
Beta Was this translation helpful? Give feedback.
-
|
Thank you that helped a lot here are my working lines of code: |
Beta Was this translation helpful? Give feedback.
if the last question had a valid response, please mark the discussion as answered :)
the primitive signatures for drawJpg are :
and here's a couple of examples: