Hi,
I use OpenScreen with a resolution of 1024x768 to display an image. Everythink works as expected. But if I have a wide screen monitor connected, it stretched the image. How can I turn of this stretching feature so it displays the image in its original size?
Any hints?
OpenScreen stretches images
-
- Enthusiast
- Posts: 469
- Joined: Sun Mar 16, 2008 9:18 am
Re: OpenScreen stretches images
Are the screen dimensions still holding the values of 1024 and 768? If so, then it means the stretched image is because your monitor is stretching it for display, so you'll need to find a monitor setting that doesn't autofill the display. Because if you told OpenScreen to use 1024x768, then that's what it'll do, it doesn't autostretch.
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
this is a good start, it helps you to decide whether the display is wide or not, and wich screenmodes to prefer.Ok - found my way around with ExamineDesktops().
the Include "Screen3DRequester.pb" in the Examples folder gives an impression how to examine the avaliable FullScreen modes.
a little Overview about how many screenmodes are possible gives this snippet:
Code: Select all
InitSprite()
n=0
If ExamineScreenModes()
While NextScreenMode()
Width = ScreenModeWidth()
Height = ScreenModeHeight()
Depth = ScreenModeDepth()
Rate = ScreenModeRefreshRate()
n+1
If rate = 60
out$ = RSet(Str(n),3,"0") + ": "
out$ + Str(Width) + "x" + Str(Height) + "-"
out$ + Str(Depth) + "bit @" + Str(Rate) + "Hz"
Debug out$
EndIf
Wend
Debug "Allover Number of Modes: "+Str(n)
Else
Debug "ExamineScreenModes failed!"
EndIf
... whether a 4:3 Mode is to displayed stretched or not is in the hand of the user, of your customer.
if you want it for yourself, as UserOfPure and Trond already said, find the settings for your GraCard-Moni-Combi to switch off the stretching.
I have one possibility directly in the HUD-Menu of the Monitor itself, and another approach in the nVidia-ControlCenter.
oh... and have a nice day.
Take a peek at the result - it's a small game called:

>> Memorizer, the brain game! (click me to download) <<


>> Memorizer, the brain game! (click me to download) <<

V2