|
-
May 12th, 2010, 05:30 PM
#1
Thread Starter
Hyperactive Member
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
-
May 13th, 2010, 05:23 AM
#2
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.
-
May 13th, 2010, 03:48 PM
#3
Thread Starter
Hyperactive Member
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.
-
May 14th, 2010, 12:28 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|