- assigned_to: nobody --> cwbudde
- status: open --> pending-fixed
Tileto, which is used for printing from the layers example result in a corrupt image from the example program and from software based on the example
Investigation shows that the call to DrawTo which replace the call to StretchDIBits in the previous release has been incorrectly constructed.
StrretchDIBits was passed ... Left,Top,Width,Height... and this has been converted into a MakeRect call with the same parameters, which will only work for the trivial case where left=0 and top=0.
Replacing the call to DrawTo in this procedure with:
(Buffer.Backend as IDeviceContextSupport).DrawTo(
hDst,
MakeRect(X + DstRect.Left, Y + DstRect.Top, X + DstRect.Left+ClipRect.Right, Y + DstRect.Top+ClipRect.Bottom),
MakeRect(0, 0, Buffer.Width, Buffer.Height)
);
results in correct operation.