Tima Vaisburd wrote: [snip] > Here is the code (rotation part does not contribute to the problem and has > been removed): > [snip] > > My first question is whether this approach is semantically correct, > i.e. is this supposed to work?
It looks ok. > It seems to work fine with xlib, but with back-art I often get garbage in the > scale range 0.5 < scale < 1.0 if the image to clip from is large enough. > For instance, the following call produced garbage for 2272 x 1704 source > image: > > NSImage * clipped = > [image imageFromRect: NSMakeRect(502, 369, 1167, 937) scaledBy: 0.655]; > > Do you have any ideas what could it be? Some calculations in back-art were overflowing when the image was too large. I've added some code to detect this and scale the numbers down a bit when this is a risk. This loses a bit of accuracy, but prevents the overflow. The test case works here now, so it should be fixed in cvs. - Alexander Malmberg _______________________________________________ Bug-gnustep mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gnustep
