Rough Around the Edges -- Antialiasing in Delphi by Rod Stephens, Delphi Informant, April 1998, pp. 60-64. www.informant.com/delphi, File Downloads, Delphi 3, DI9804RS.ZIP or www.informant.com/libs/delphi/3x/di9804rs.zip SmoothLn. Antialiasing picture/image component. www.razorsedgesoft.com/delphi.htm Chris Hill's UseNet Post about Antialiased FontsHarman's UseNet Post showing Delphi code to rotate an image any angle, with edge wrapping, and anti-aliasing. Resamples a 24-bit bitmap to half its original size by averaging the RGB values of 4 pixels into one pixel (anti-aliasing). http://norfolkgraphics.com/download/antialias.zip
image.Canvas.Brush.Color:=clred;
image.Canvas.Pen.Color:=clred;
image.Canvas.Ellipse(50, 30, 100,
200);
代码如上,你细看边缘会发现边缘有锯齿,请问如何解决它呢?
image.Canvas.Brush.Color:=clred;
image.Canvas.Pen.Color:=clred;
image.Canvas.Ellipse(50, 30, 100,
200);
与
image.Canvas.Ellipse(50, 30, 100,200);
效果是一样的呀。
www.informant.com/delphi, File Downloads, Delphi 3, DI9804RS.ZIP or
www.informant.com/libs/delphi/3x/di9804rs.zip
SmoothLn. Antialiasing picture/image component.
www.razorsedgesoft.com/delphi.htm Chris Hill's UseNet Post about Antialiased FontsHarman's UseNet Post showing Delphi code to rotate an image any angle, with edge wrapping, and anti-aliasing. Resamples a 24-bit bitmap to half its original size by averaging the RGB values of 4 pixels into one pixel (anti-aliasing). http://norfolkgraphics.com/download/antialias.zip
http://www.g32.org/graphics32/index.html