Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Single Pixel Wide Straight Lines
Re: Single Pixel Wide Straight Lines [message #59015 is a reply to message #59012] Fri, 14 October 2022 19:55 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi devilsclaw,

It looks like you're actually drawing single pixel lines that do not "fit in the pixel". The engine actually draws half of it into one pixel and the other half to the adjacent one... This is not usually a problem, but it produces ugly results for vertical and horizontal lines. Try moving the horizontal lines 0.5 pixel up or down and similarly vertical lines 0.5px left or right Wink

The only weird thing is that it does produce fuzzy effect even with NO_AA. I'd expect that without antialiasing, the coordinates would be rounded to the nearest pixel.

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Text painting issue with 'const char*'
Next Topic: Crash when loading some jpeg files
Goto Forum:
  


Current Time: Tue May 07 10:01:31 CEST 2024

Total time taken to generate the page: 0.02732 seconds