Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd24e05

Browse files
committed
Switch to premultiplied space inside Agg for RGBA blending
Premultiplied image data is passed to the Agg resampler so that the interpolation is handled correctly. This code now tells Agg that the image is premultiplied so that the antialiasing of edges is handled correctly.
1 parent 2d37c64 commit dd24e05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/_image_resample.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ struct type_mapping
511511
std::conditional_t<
512512
std::is_same_v<color_type, agg::rgba8>,
513513
fixed_blender_rgba_plain<color_type, agg::order_rgba>,
514-
agg::blender_rgba_plain<color_type, agg::order_rgba>
514+
agg::blender_rgba_pre<color_type, agg::order_rgba>
515515
>
516516
>;
517517
using pixfmt_type = std::conditional_t<

0 commit comments

Comments
 (0)