Results 1 to 5 of 5

Thread: Get bitmaps into pictureclip?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    NY
    Posts
    497

    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.
    end war
    stop greed

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    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]

  3. #3
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    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?
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    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]

  5. #5
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Hum yeah, but to do that I'd simply copy and paste in the right places using Paintbrush I guess
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

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