dsa-t

Results 157 comments of dsa-t

Here's how I implemented it in KiCad: https://gitlab.com/kicad/code/kicad/-/commit/89cb35dc2294d2c5144471c8f6485d925d04b306

> @dsa-t Do we have your permission to reuse the code in the linked KiCad commit Yes. But for generic use-cases it's better to wait for https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/337

> We'd probably have to wait quite a while though right? True. > Then all the compositors would have to implement it, right? At least for KWin (KDE) there is...

This issue is about transparency, @oursland @eagabriel your issues seem different.

This icon is drawn at 8x scale. I think it's best to use `ResampleBox` first for integer downscaling, and then `ResampleBilinear` for the remainder.

I get best results with the following code in `wxImage::Scale` in `src\common\image.cpp`: ```cpp case wxIMAGE_QUALITY_NORMAL: { double shrinkFactorX = double(old_width) / width; double shrinkFactorY = double(old_height) / height; // When...

Improved algorithm: ```cpp case wxIMAGE_QUALITY_NORMAL: { double shrinkFactorX = double(old_width) / width; double shrinkFactorY = double(old_height) / height; // When downsampling, use bilinear algorithm for pre-scaling and // box average...

> For me, I'm using something similar to this [#1924](https://github.com/wxWidgets/wxWidgets/pull/1924) You mean that using `wxGCDC` is another way to get anti-aliasing for the search icon? I agree.

But `wxImage::Scale` needs to be fixed anyway because it affects other things.

> Personally I think it renders more or less fine now (and definitely much better than currently in master). For me even the previous icon looked completely fine with the...