Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Possibly Related Threads…
Thread Author Replies Views Last Post
  square waves (or pulse waves) 8 Hz duty cycle? Rudy M 12 1,143 11-13-2025, 04:12 PM
Last Post: Rudy M
  Is there a square monospace font PhilOfPerth 9 1,780 03-08-2025, 12:26 AM
Last Post: madscijr
  computer vision? capture still from webcam to memory & identifying colors & pixels? madscijr 0 428 02-25-2025, 06:16 PM
Last Post: madscijr

Forum Jump:


Users browsing this thread: 1 Guest(s)