Re: gdiplus: Use outside color from image attributes for an out of bounds pixel.
28 Aug
2012
28 Aug
'12
1:20 a.m.
if (src_pointf.X >= srcx && src_pointf.X < srcx + srcwidth && src_pointf.Y >= srcy && src_pointf.Y < srcy+srcheight) *dst_color = resample_bitmap_pixel(&src_area, src_data, bitmap->width, bitmap->height, &src_pointf, imageAttributes, interpolation); else - *dst_color = 0; + *dst_color = imageAttributes->outside_color;
It's like this for a reason. This isn't out of the bounds of the source image, which is when imageAttributes would apply. This is out of the bounds of the parallelogram we're drawing, and we should be leaving that pixel alone.
4944
Age (days ago)
4944
Last active (days ago)
0 comments
1 participants
participants (1)
-
Vincent Povirk