pictures giving me trouble

to start off I have 2 hand helds, one has a resolution of 480X640 while the other has a resolution of 240X320. I am developing a system using pictures throughout. The problem that I am running into is that I cannot make the pictures fill the screen. If I develop the images for the smaller one, they show very small on the larger one. and if I design my pics for the larger one, they are to big for the smaller one and it cuts part of the picture off.

What I am wanting to do is be able to design all the pictures for one (either or) and make the pictures shrink or enlarge to fill the screen.

Both hand halds are Ipaq. if that makes a difference. I am looking for the best solution to this problem. if there is a solution. Thanks for any help.


Answer this question

pictures giving me trouble

  • hwen

    so basically have two sets of pictures, one set for each resolution. That is kind of what we came up with here and find the screen resolution and determine which ones to load then.

    That seems to be kind of what you are saying. But I am new to vb and not sure how to import a DLL from C++ and how to use it. if you can show me an example it would be greatly appreciated.

  • Jan V133422

    Unfortunatly I am not proficient in VB. I noticed that instead of the C# DllImport, VB uses the Declare call.

  • RtMahi

    I don't know if there is a way to do it in C# but in C++ you can use the GetSystemMetrics() function with SM_CXSCREEN, SM_CYSCREEN. This will return the width and heigth of the primary monitor. When you know the width you can load the pic with the correct resolution. There are only two mainstream resolutions which are 240x320 and 480x640 for most IPaqs. Hope this helps.

  • Lacrosse_man16

    I am using vb. sorry I didnt mention that earlier.

  • tongcuong

    You can still use the DLLImport to import the C++ function in VB...

  • pictures giving me trouble