[E-devel] imlib_create_cropped_scaled_image doesn't work for bicolor images
Bep Rinto <[email protected]> Wed, 12 Apr 2023 22:56:59 +0200
| Newsgroups | gmane.comp.window-managers.enlightenment.devel |
|---|---|
| Message-ID | <CABcrsXXiMHVtS5C=cYHvGAqj34Rt_N-Oej6Qz9TOQkedCauWJg@mail.gmail.com> |
When a source image has a dimension of two, then using imlib_create_cropped_scaled_image to a larger dimension results in an image where only half of that dimension has a color range. Example, an image of 100x2, scale it to 100x20, then only the upper 10 rows have a gradient. Same for 2x40 to 100x40 when only the left 50 columns have a gradient. Ideally, an 4 colors in an image of 2 by 2, when scaled to a 100 by 100, should have a different color in every pixel. Not in 1.4.10.