Results 1 to 2 of 2

Thread: Question about Gfx manipulation

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    15

    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?

  2. #2
    Cumbrian Milk's Avatar
    Join Date
    Jan 2007
    Location
    0xDEADBEEF
    Posts
    2,448

    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
  •  



Click Here to Expand Forum to Full Width