Recent

Author Topic: Paint anti-aliased triangle, cross-platform  (Read 10174 times)

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Paint anti-aliased triangle, cross-platform
« Reply #15 on: May 25, 2014, 12:19:50 pm »
Well then don't shrink just paint on top. You only need the antialised pixels around the area. What do you define as real case ?
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

AlexTP

  • Hero Member
  • *****
  • Posts: 2574
    • UVviewsoft
-
« Reply #16 on: May 25, 2014, 12:25:39 pm »
I repeat it won't work.Simple trinagle draw over or below the WuLine edge gives not ok edges

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Paint anti-aliased triangle, cross-platform
« Reply #17 on: May 25, 2014, 12:33:43 pm »
well for QT just enable the antialized property on canvas, for GTK2 use cairo canvas it is part of lazarus and for windows you have to write gdi+ canvas, of course you can adapt the wulines algorithm to use it on the polygon your self and of course the most cross platform way of all just use aggpas as Graeme suggested.

Thats your choices so far.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

 

TinyPortal © 2005-2018