ucglib icon indicating copy to clipboard operation
ucglib copied to clipboard

Does drawXBMP function available in ucglib?

Open venkatesh223 opened this issue 5 years ago • 4 comments

Does ucglib support drawxbmp like the U8g2 library? If no can you help me with an alternative on how to display an image using ucglib arduino please.

venkatesh223 avatar Apr 24 '19 11:04 venkatesh223

(For me) it doesn't make much sense to implement a routine for displaying a uncompressed monochrome image format in a library for color displays. Better use a library to decode your preferred image format and draw pixel by pixel.

AnHardt avatar May 07 '19 11:05 AnHardt

I would like to press on this issue. This does make sense when you would like to use a color display (and ucg) as a drop-in replacement for an existing monochrome-displayed gadget with a large set of xbm pictures. Most of the time it is enough to display xbm as a black and white figure without redesigning/redrawing it.

ditor2 avatar Jun 28 '19 17:06 ditor2

use the setcolor and drawpixel to draw each point. you need two for loops. ucg_SetColor(ucg, 0, 255, 255, 255); ucg_DrawPixel(ucg, 50, 20);

hznupeter avatar Aug 16 '19 11:08 hznupeter

I open a Issues Mounth before -> #98 whit no answere. @hznupeter that is a way you can go, but whit a picture whit hundrets of Pixels you need mutch time to greate this. Do you know a program which can determine the pixel position based on the RAW image data or the C data? That would help.

Devilscave avatar Oct 30 '21 19:10 Devilscave