FLTK logo

[fltk/fltk] Improve Xrender scaling quality (#163)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

[fltk/fltk] Improve Xrender scaling quality (#163) wcout Nov 23, 2020  
 

The current scaling quality of images by Xrender is poor.
It could be improved considerably by using the bilinear filter Xrender supports. Bilinear resizing is the default in FLTK's image drawing routines when Xrender is not used, so using it also with Xrender would be appropriate. It's only a one-liner:

xrender_bilinear_patch.txt

Here's a test program to compare the difference to the current Xrender scaling:
xrender_bilinear_test.tar.gz
(Assumes the patch is active and it is executed from the test folder)

Example output:
xrender_bilinear_test


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.