FLTK logo

Re: [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 ]

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

That seems a great suggestion.

Looking for function XRenderSetPictureFilter, I have found that note :
"When you use a filter you'll probably want to use PictOpOver as the render op, regardless of whether the source picture has an alpha channel or not, since the edges may end up having alpha values after the filter has been applied."
at https://www.talisman.org/~erlkonig/misc/x11-composite-tutorial/

Do you think we should change that call too
XRenderComposite(fl_display, (has_alpha ? PictOpOver : PictOpSrc), src, None, dst, srcx, srcy, 0, 0,
XP, YP, WP, HP);
if we use FilterBilinear ?


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'.