|
-
Sep 10th, 2001, 10:23 AM
#1
Thread Starter
Hyperactive Member
Get bitmaps into pictureclip?
I'm a graphics dummy. I want to use the PictureClip contol to store a bunch of images. My understanding is the .Picture property of the control must be set to some kind of bitmap with evenly concatenated images.
Can these images be pieced together in PaintBrush? If yes, is there a method to the madness? If not, what other tools can be used? Thanks for anything.
-
Sep 12th, 2001, 07:19 AM
#2
Retired VBF Adm1nistrator
You can use anything to contacenate the pictures.
You just make one really wide, or tall, or tall and wide picture.
Then take all your individual pictures, and put them in.
If you look on my website at the source code to my game craft, 1.0.17 uses concatenated pictures (1.0.17\images\shipTieInterceptor.bmp), but in 1.0.16 and before I use different pictures to do it.
Now I'm not using a pictureclip control to split the pictures up again, but it would work the same way.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Sep 12th, 2001, 06:48 PM
#3
Frenzied Member
Concatenating pictures is a PITA (aka Pain In The Ass), but it's worth it. You'll use less HD space, because there are less file headers, but aligning the pictures is hard if you only use paintbrush... I don't have any other idea though.
What I usually do, is have each cell either black or white, kinda like a chess board, and pasting the images there. I then paint all the black and white the background color.
Maybe we could make a program that would split the image, so you could have a look and see if it's ok?
-
Sep 13th, 2001, 02:02 AM
#4
Retired VBF Adm1nistrator
Well I made a program to put all my pictures together into one very wide pic.
What I did was make device contexts for each of the pictures I wanted to concatenate. Simply an array of Longs.
Then I had a loop, that simply Blitted the pictures into a very long picturebox. The x cord of where blitting starts = (Width of each pic) * (pic number).
So once I had blitting all 36 pictures in a row, I then used the SavePicture statement to save the picturebox to a file.
And hey presto!
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Sep 14th, 2001, 05:10 PM
#5
Frenzied Member
Hum yeah, but to do that I'd simply copy and paste in the right places using Paintbrush I guess
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
|