Support for TImage.AntialiasingMode (stretching)
Original Reporter info from Mantis: chronos
-
Reporter name:
Original Reporter info from Mantis: chronos
- Reporter name:
Description:
This patch adds new property AntialiasingMode to TImage for controlling of stretched image antialiasing. Until now all images are stretched using HALFTONE stretch mode in win32 and this behaviour can't be changed. But in Delphi default behaviour is using COLORONCOLOR stretching where no antialiasing is used for image resize. For Delphi compatibility and faster drawing no aliasing should be active.
This problem is mainly visible if stretched image is monochromatic using pixel format pf1bit and bitmap resolution is low. Then unwanted artefacts are generated.
Solution is allow programmer to change antialiasing mode.
Additional information:
Tested only on Win32 widgetset but used already existed method DCSetAntialiasing method used for pen and brush painting.
Mantis conversion info:
- Mantis ID: 22205
- Version: 1.1 (SVN)
- Fixed in revision: r39894 (#7548ba8e)