How I split an image into 32*32 pieces? It's for a map editor for a game, and i have an image with 32*32 tiles in it, which i need seperated... I think it can be done using the BitBlt api, but i'm not sure how
Cheers!
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Depends on what you want done after the image is split. With BitBlt you could create a DC for the image, and Blit from a particular square to another part of the screen.
You can specify both source and destination rectangle co-ordinates when blitting.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
This is the Games and Graphics Programming forum...
Create a picture box at design time and set the index to 0. Then what you need to do is loop through the image pixels and with bitblt make the part of the pic in the small picbox. Then load the next item of the array, and so on...
Has someone helped you? Then you can Rate their helpful post.