where my square pixels at?
#1
So is it me, my screen, an optical resolution, or how _putimage works that leads to me not actually getting square pixels with this little bit of code?   The red dots created at 15,15 and 16,16 in the sample image just aren't the same size when I run this code:

Code: (Select All)
Screen _NewImage(200, 200, 32)
_FullScreen _SquarePixels
rawtile& = _NewImage(32, 32, 32)
_Dest rawtile&

Line (0, 14)-(31, 17), _RGB32(100, 100, 100), BF
Line (14, 0)-(17, 31), _RGB32(100, 100, 100), BF
Line (0, 15)-(31, 16), _RGB32(255, 255, 255), BF
Line (15, 0)-(16, 31), _RGB32(255, 255, 255), BF
PSet (15, 15), _RGB32(250, 0, 0)
PSet (16, 16), _RGB32(250, 0, 0)
_Dest 0

_PutImage (51, 51), rawtile&
_PutImage (51, 100), rawtile&
_PutImage (101, 100), rawtile&
_PutImage (100, 51), rawtile&
Reply


Messages In This Thread
where my square pixels at? - by James D Jarvis - 03-09-2023, 04:53 PM
RE: where my square pixels at? - by bplus - 03-09-2023, 05:51 PM
RE: where my square pixels at? - by bplus - 03-09-2023, 06:05 PM



Users browsing this thread: 5 Guest(s)