Re: Image within a custom NSView gets blurrier as I scale
Subject : Re: Image within a custom NSView gets blurrier as I scale
From: Andreas Mayer <email@hidden >
Date: Tue, 11 Apr 2006 23:23:02 +0200
Delivered-to: email@hidden
Delivered-to: email@hidden
Am 11.04.2006 um 22:28 Uhr schrieb Frederick C. Lee:
What is the efficient (w/out loss of image resolution) way of
scaling an image within a NSView (vs. NSImageView)?
Do not set the image's size; instead use
- (void)drawInRect:(NSRect)dstRect fromRect:(NSRect)srcRect operation:
(NSCompositingOperation)op fraction:(float)delta
for compositing.
Andreas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.