Pure magic, especially this line:
my $bmp = pack 'a2 V V V l< l< l< v v V V l< l< V V', 'BM', $len + 54, 0, 54, 40, $attrs[1], $attrs[2], 1, 24, $len, 0, +0, 0, 0;
I tried it immediately but i can't view the file with various image processing software. In some it is simply black, some other reject it.
Examining the file i get:
karls-mac-mini:monks karl$ file mandelbrot.bmp mandelbrot.bmp: PC bitmap, Windows 3.x format, 1280 x 1024 x 24
This looks good, but:
karls-mac-mini:monks karl$ identify mandelbrot.bmp identify: unrecognized compression `mandelbrot.bmp'.
Or something is wrong with my GD installation. But i don't think so because the script would complain if something went wrong.
Thank you very much for advice. Perhaps you have a hint how to continue.
Best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
In reply to Re^2: About GD Image Data Output Methods
by karlgoethebier
in thread About GD Image Data Output Methods [SOLVED]
by karlgoethebier
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |