Recent

Author Topic: Antialiasing PNG in TImage  (Read 3146 times)

yurix

  • New Member
  • *
  • Posts: 14
Antialiasing PNG in TImage
« on: January 14, 2013, 08:56:45 am »
Hello.
I have a questions about some problems with antialiasing in TImage when i use imege "stretch". Picture in normaly antialiased ONLY if image in JPEG format.
Any else formats have very bad resized images.  :( Example in "lazarus\examples\imgviewer\" also have this problem.
Maybe exists some way for solve this problem?
P.S.: sorry for bad english.
_________________________
Lazarus 1.0.4, FPC 2.6.0, Windows 7 32bit

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: Antialiasing PNG in TImage
« Reply #1 on: January 14, 2013, 11:19:47 am »
You could try to use some image library, BGRA for example.

circular

  • Hero Member
  • *****
  • Posts: 4417
    • Personal webpage
Re: Antialiasing PNG in TImage
« Reply #2 on: January 14, 2013, 02:05:46 pm »
The default stretch methods depend on the operating system. Maybe it would be possible to tweak LCL. But if you want it whatever the platform, yes, you can do it with BGRABitmap :
http://wiki.freepascal.org/BGRABitmap_tutorial_2
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018