Are there any examples of creating an array from a bit map that anyone has seen on the web?
heres a rough example of whgat I want to do
imagine I am creating spaceinvaders, I have a sheet of enemies 6 wide by 5 high. I create a 1bit bitmap 6X5 (of just black and white data)
I then want to read those pixels in to my array so I can set my invaders to be either type 1 or type 2 enemies.
I guess its some GetRow thing, but I cant actually work out how the hell that command actually works! I cant find an example anywhere :(
Also while we are on the subject, Does the depth of my bitmap determine whether I get a bool, int, vector 2, 3 or 4 returned? or do I somehow specify what I am looking for. i.e I want an array of vector2's made up of the Red and Blue values of my bitmap....and what about CMYK ---- aaargh! its all too crazy!
I really do try and figure these things out on my own, Honest!