goodmanrs / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

XBM picture mapping #231

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. horizontal resolution not multiple by 8
2.
3.

What is the expected output? What do you see instead?
a correct pixel shifting

What version of the product are you using? On what operating system?
1.14v arduino DUE

Please provide any additional information below.
DOGM128

Hello Olivier, your job is great.
I would like to give my smaaaaal contribution about this bug(?) I've found 
using XBM files.
When the horizontal resolution is not a multiple by 8 then everything is fuzzy 
(picture attached).
I solved forcing an H of 64 and 48 in my picture files.
I noticed also, that if i move all the picture on the left, the vertical first 
line is moved in the other side, so I forced the first black pixel (on vertical 
axis, I mean) on coord 1 inside the BMP file, then I made again a conversion.
Hope this helps.

Attached there are n.2 xbm files, the correct and the "wrong" one.
My intention is to optimize the code, if I'm able to cut also the few exta 
columns of white pixels will be great for the code.
Thanks a million!

Dario

Original issue reported on code.google.com by dario.da...@gmail.com on 8 Jan 2014 at 9:09

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks a lot for the bug report.
Is it possible that you send me the code that produces the faulty picture?
This would help a lot.

Original comment by olikr...@gmail.com on 8 Jan 2014 at 10:51

GoogleCodeExporter commented 8 years ago
Sure!
That's it.

Original comment by dario.da...@gmail.com on 9 Jan 2014 at 10:15

Attachments:

GoogleCodeExporter commented 8 years ago
The xbm converter is wrong. Reconverting back to png with GIMP shows exactly 
the same artefacts. Your picture BaseBody.xbm is not a valid xbm file. U8glib 
renders the picture correctly.

Seems that the converter www.threelights.de does not work correctly. 

So, this is not a defect, I will close this issue.

Original comment by olikr...@gmail.com on 25 Jan 2014 at 12:48

Attachments: