|
-
Jul 21st, 2008, 10:57 AM
#1
Thread Starter
New Member
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?
-
Jul 23rd, 2008, 11:24 AM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|