Results 1 to 4 of 4

Thread: Image Array Control

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fox, OK
    Posts
    381

    Image Array Control

    In VB6, there was an image-array-control-splitter-uppy-thingy. You could give it an image and the control would split it up into several smaller images, in rows and tables.

    Does that same tool still exist in vb10?

    I'd like to split up an image like this one...

    http://www.jfitz.com/cards/windows-playing-cards.png

  2. #2
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: Image Array Control

    You can do it without any controls. Simply use DrawImage method. It allows to draws both whole images and their parts.
    As for the cards - there is Cards.dll in your Windows\System32 folder. It has all cards images in it and functions to draw them.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fox, OK
    Posts
    381

    Re: Image Array Control

    I knew about cards.dll but I've never gotten into it much. Anyway, I've found some nice pgn cards for free and I'm using them. I set up a Stucture to keep up with .CardImage, .Rank, .Suit, and .Used. Not a big deal. I just wondered how to take one image that had all the cards in one image and split them into individual card images.

  4. #4
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: Image Array Control

    Use Graphics.DrawImage method (Draws the specified portion of the specified Image at the specified location and with the specified size).

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