"be consistent" | |
PerlMonks |
Re: bitmap and packby Discipulus (Canon) |
on May 14, 2015 at 07:32 UTC ( [id://1126636]=note: print w/replies, xml ) | Need Help?? |
hello gimcdan, aside from pack, the mention of pixel let me think you are inspecting a template for an image: my little experience with bitmap was due to my project about Tartaglia's triangle. As far as i remember in the image you have some header where you declare the size of the bitmap (x and y), the number of colors used and a fourth parameter i dont know.. Then you can declare a map between char and colors. In the example below the space is the background (mapped to black) and the # is mapped to red.This is mentioned in Mastering PerlTk also. So, if you are talking about bitmap, any char is acceptable to set a pixel because it sets it's color. HtH L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|