gdiplus: Apply image attributes to bitmaps before resampling them.

This commit is contained in:
Vincent Povirk 2011-03-09 17:49:48 -06:00 committed by Alexandre Julliard
parent 870fdaf6ce
commit d891a8c16c
1 changed files with 4 additions and 5 deletions

View File

@ -2488,6 +2488,10 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
return OutOfMemory; return OutOfMemory;
} }
apply_image_attributes(imageAttributes, src_data,
src_area.Width, src_area.Height,
src_stride, ColorAdjustTypeBitmap);
/* Transform the bits as needed to the destination. */ /* Transform the bits as needed to the destination. */
GdipTransformMatrixPoints(dst_to_src, dst_to_src_points, 3); GdipTransformMatrixPoints(dst_to_src, dst_to_src_points, 3);
@ -2523,11 +2527,6 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
GdipFree(src_data); GdipFree(src_data);
apply_image_attributes(imageAttributes, dst_data,
dst_area.right - dst_area.left,
dst_area.bottom - dst_area.top,
dst_stride, ColorAdjustTypeBitmap);
stat = alpha_blend_pixels(graphics, dst_area.left, dst_area.top, stat = alpha_blend_pixels(graphics, dst_area.left, dst_area.top,
dst_data, dst_area.right - dst_area.left, dst_area.bottom - dst_area.top, dst_stride); dst_data, dst_area.right - dst_area.left, dst_area.bottom - dst_area.top, dst_stride);