Question about Gfx manipulation
Ok, so I have sprite sheets that i made that are set up like this...
col 1 col2 col3 col4
walk1 walk2 walk3 walk4
row 1 -- facing left movements
row 2 -- facing right movements
my question is, in Visual Basic, how can I only show part of the image?
as in... showing col1,row1 but nothing else, then switching to col2,row1 and nothing else?
How can I break apart an image like that? and does the image need to be a certain filetype or just any filetype?
Re: Question about Gfx manipulation
Once any image is loaded it is always in Bitmap form.
BitBlt allows you to copy a rectangle from one DC's bitmap to another.
An image control does not have a DC, a picturebox does. You could use an invisible picturebox to store the sprites. Better still you can use a memory DC which you can create (and destroy) with API.