|
From: Maxim S. <mcs...@ya...> - 2005-11-10 23:14:13
|
> Please note that the original test files are wrong because they don't test
> the right thing (i.e. the interpolation between edge pixels and border
> color). The source test files have a white border so the white gradient
> surrounding the image is as expected (PhotoShop, Acrobat & AGG agree in this
> case). To illustrate the problem I cropped the original image
> (http://216.70.66.169/tb1a/ps-bilinear-1-v2.png 5x5 pixels). This is
> PhotoShop output: http://216.70.66.169/tb1a/ps-bilinear-1-v2-CS2.png.
> Besides resolving serious problems I mentioned previously, PhotoShop output
> looks more truthful to the original image.
>
> Please let me know if this helps.
Ivan, once again. You will have this very result if you use pattern_filter
instead of image_filter:
typedef agg::wrap_mode_reflect_auto_pow2 wrap_type;
typedef span_pattern_filter_rgb<color_type,
component_order,
interpolator_type,
wrap_type,
wrap_type> span_gen_type;
Use the very same interpolator and the very same affine matrix.
As for your idea I'd highly appreciate if you could modify one of the image
filters in the way you need (you can take the simplest one, say,
span_image_filter_rgb). But if you do that don't forget to test it with
arbitrary transformations (rotation, perspective, etc).
McSeem
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
|