Issues with void ArduinoGraphics::image(const Image& img, int x, int y, int width, int height) #46
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
The first issue I ran into is there is an error/typo in the check for proper ranges...
The line should be:
That is, you should be testing against the height of the display, not the height of the image passed in.
Another issue I have run into, is in the RGB format the order of the bytes:
That is in my own code potentially calling it:
Where the RGB bytes are within the uint32_t is different. Mine is setup to handle the order of bytes
returned by JPEGDEC RGB8888 format where Alpha is the high byte and the code in
Assumes that it is the 4th byte that is skipped. Not sure of best fix for this. For me just changing back to my own code
works. Alternative is to either change the library by changing the skipped byte or by adding different image type
The text was updated successfully, but these errors were encountered: