Closed riuson closed 10 years ago
From riu...@gmail.com on January 02, 2013 23:26:30
Parameter little-endian/big-endian affects on byte order, not bits. To change the order of bits in a monochrome image, set the right direction of scan pixels.
Owner: riu...@gmail.com
From joern.ma...@gmail.com on January 03, 2013 04:56:44
OK than I have misunderstood the endian parameter. I have to ask differently. The byte order is ok (scan direction from top to bottom and forward) . What I need is each byte to me mirrored. As example on a 16x16 BW matrix with the first pixel set. I would like to have following output 0x01 0x00 for the first line. now I get 0x80 0x00. I looked at older versions, there was an option to mirror a byte. Thank you for you help
From riu...@gmail.com on January 03, 2013 06:10:06
Yes, this option was in older versions. It was later removed due to the ease of implementation mirroring in the firmware, as well as its ambiguity:
In general, I need to think about a more universal method of placing bits. In your particular case, you can implement mirroring in converterhelper.cpp, between lines 153 and 154. https://code.google.com/p/lcd-image-converter/source/browse/classes/convert/converterhelper.cpp?r=b4efed4af0b9
Status: Accepted
From riu...@gmail.com on January 04, 2013 08:18:19
Status: Started
Labels: -Type-Defect Type-Enhancement
From riu...@gmail.com on January 04, 2013 09:52:50
Try this demo version: https://code.google.com/p/lcd-image-converter/downloads/detail?name=lcd-image-converter-20130104-e112b199efed-beta.zip New page 'Reordering' contains settings for reordering bits. Adding a shift operation is the same as setting the page 'Matrix'.
Attachment: reordering.png
From joern.ma...@gmail.com on January 06, 2013 01:00:33
Works perfect! Exactly what I missed. Thanks
From joern.ma...@gmail.com on January 03, 2013 05:01:56
What steps will reproduce the problem? 1. Executing a monochrome conversation with 8x8 pixel. The first pixel is black.
Original issue: http://code.google.com/p/lcd-image-converter/issues/detail?id=9