U++ framework
Do not panic. Ask here before giving up.

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: 1428
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: Tue Jul 14 12:35:16 GMT+2 2026

Total time taken to generate the page: 0.00666 seconds