Results 1 to 11 of 11

Thread: (VB6) Need Help With Resolution Problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2006
    Posts
    6

    Unhappy (VB6) Need Help With Resolution Problem

    i am constructing a lights program.

    i am using bitblt for transparency, and bitmap images for the graphics.

    one problem i ran into i cant figure out how to fix is the resolution.

    basicly when i create the image on my system at 1280x1024 and run the project on a higher resolution i.e.(1600x800) (1900x1200) the image is cut in half.

    i know that this is because the image is smaller than the said resolution but if i try to strech the image it looks bad. and i know no other method of really allowing this to run at almost any resolution other then creating images for every known used resolution (which will take up so much space in the memory or make the compiled project like too huge in size)

    on another note even if i do that i need to either have a video card that displays 1900x1200 or ect ect to make the images.

    i really could use some help figuring this out, im beating my head against a desk right now.

    screen shots are below:


    as you can see it gets cut off

    the same resolution the image is at

    like i said if there is any way to write this to match the resolution...plz help

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: (VB6) Need Help With Resolution Problem

    Looking at your overlayed image, I'd say it would be easy make the whole overlay out of several single images during runtime. so you need to keep only one small image and use it to create an overlay of the actual screensize during runtime.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2006
    Posts
    6

    Re: (VB6) Need Help With Resolution Problem

    i think you dont understand... or i dont....
    no disrespect intended..

    the first image (800x600) is at display res 1920x1200

    the second is were i matched the screen width with the image width to show the problem i will have on higher res machines or ones running higher res.

  4. #4

    Thread Starter
    New Member
    Join Date
    Nov 2006
    Posts
    6

    Re: (VB6) Need Help With Resolution Problem

    oops! i didnt understand hehe...


    thats the thing i have no idea how to use multiple single images to match the res. im using timers and bitblt...... this is truly my first venture into graphic/image manipulation.


    i know of no examples either, i will be eternally greatful if there is any!

  5. #5
    College Grad!!! Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,339

    Re: (VB6) Need Help With Resolution Problem

    Stay away from timers. They are really bad.

    Take a look at my signature on Managed Game Loops. As for multiple images, it would be wise to stick with one image and use stretchblt instead of bitblt to stretch the image according to your resolution. Personally I'd be using DirectX, and have real 3D lighting going on, which can even lighten the background objects and windows.

  6. #6

    Thread Starter
    New Member
    Join Date
    Nov 2006
    Posts
    6

    Re: (VB6) Need Help With Resolution Problem

    has anyone ever seen twinkle bulbs or holiday lights?

    basicly im trying to duplicate what they did.

    so far failing miserably..... im wondering if anyone would like to help into the project or possibly show a custom example to make this possibly work....

  7. #7
    College Grad!!! Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,339

    Re: (VB6) Need Help With Resolution Problem

    That's why I'm here to help you out. Did you see my post?

  8. #8

    Thread Starter
    New Member
    Join Date
    Nov 2006
    Posts
    6

    Re: (VB6) Need Help With Resolution Problem

    yes, im just flying blind with graphic programming.

  9. #9
    College Grad!!! Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,339

    Re: (VB6) Need Help With Resolution Problem

    You think graphics are hard, try working with Rigid Body game physics.

    This should help you get some stretching going:

    http://www.allapi.net/apilist/StretchBlt.shtml

  10. #10
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: (VB6) Need Help With Resolution Problem

    I wouldn'T use any stretching, since you probably don'T want your image strechted (the number of your red "things" will stay the same, but they get thicker) instead for a greater resolution you want to see more of those red "things" [don't have the english word for that,sorry]

    So take one of those things (lets say an image of 10*10) and create a loop that sets them in a oicture side by side until the width of your new picture has the actuasl screen size. The API for that would be bitblt.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  11. #11

    Thread Starter
    New Member
    Join Date
    Nov 2006
    Posts
    6

    Re: (VB6) Need Help With Resolution Problem

    yeah i was thinking that would happen as well, streching just makes it look nasty

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