In Matt’s own words:
I added:- (void)drawInRect:(NSRect)dstRect operation:(NSCompositingOperation)op fraction:(CGFloat)delta method:(MGImageResizingMethod)resizeMethod;This has a couple of advantages when drawing directly rather than producing images:
The existing methods still work as they did originally.
- Image Quality - If you’re drawing in a scaled view (or with some funky scaling transformation matrix), the images will draw with their full original quality, rather than reduced to the new size (should help for Res Independence).
- Speed - as producing a second resized image means drawing twice.
Many thanks to Matt for the improvements!