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 » Draw sharp lines using Painter
Re: Draw sharp lines using Painter [message #34210 is a reply to message #34207] Wed, 02 November 2011 14:04 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
You need to pass coordinates with an added 0.5 for them to look sharp. The integer coordinate is actually at the "border between two pixels", that is why it is rendered as such. Adding 0.5 places it in the "middle" of the pixel.

So don't draw a box from (0, 0) to (9, 9), draw if from (0.5, 0.5) to (9.5, 9.5).
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Get an Image from a DrawingDraw
Next Topic: Problem with polygon inside polygon... in Painter
Goto Forum:
  


Current Time: Sat Apr 27 11:12:07 CEST 2024

Total time taken to generate the page: 0.05562 seconds