>The image is stored using a 32-bit RGB format (0xffRRGGBB).
4 bytes per pixel 600 pixel per row, 600 rows.
I tried this:
Code: Select all
display -size 600x600 -depth 8 RGBO:/tmp/image.data
display -size 600x600 -depth 32 RGBO:/tmp/image.data
Code: Select all
display -size 600x600 -depth 8 RGBO:/tmp/image.data
display -size 600x600 -depth 32 RGBO:/tmp/image.data
Code: Select all
convert -size 600x600 -depth 8 RGBA:in.bin out.pngCode: Select all
convert -size 600x600 -depth 8 RGBA:in.bin -channel RGBA -separate -delete 0 -combine out2.pngCode: Select all
convert -size 600x600 -depth 8 BGRA:image.data -channel BGRA -separate -delete 3 -combine out2.bmpUsers browsing this forum: Bing [Bot] and 16 guests