size of image in 640*480

BlitzMax Forums/BlitzMax Beginners Area/size of image in 640*480

Pit-le-rouge(Posted 2005) [#1]
Hi everybody.
I created some images in PNG format.
When I use it after "graphics 640, 480" (and without any "setscale" call), these images appears with scale twice than expected.
If I use it after "graphics 800, 600" then the size is what I expected when I created the image.
I don't understand why...
An explanation ?


Pit-le-rouge(Posted 2005) [#2]
OK, forget for the post....
I just realize that it's normal.
"Real" size of 20 pixels is bigger in a 640*480 format than in a 800*600 format.
I must be stupid....
;-)


Gabriel(Posted 2005) [#3]
Yes you'll need to write a little function for resolution independence. I work at 1024x768 and scale up/down from there, but it's very easy to do.


Hotcakes(Posted 2005) [#4]
800 is not exactly twice 640 though ;]


RexRhino(Posted 2005) [#5]
Yeah, Blitz2D is supposed to be an imitation of the pixel perfect old school bliting style, not a real 2D as 3D thing.

I like it this way... When I tried doing 2D as 3D stuff with Blitz3D, getting it pixel perfect was difficult.