| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
And the image gets more blurred as you change the scale, back/forth.
Ric.
On Apr 11, 2006, at 12:45 PM, Corey O'Connor wrote:
Are you trying to scale the image to a size greater than it's original resolution?
-Corey
On 4/10/06, Frederick C. Lee <email@hidden> wrote:Greetings:
I have an image within a customized NSView via compositeToPoint
method. The bitmap image gets blurrier as I scale it.
How can I maintain the original quality/resolution as I scale?
Regards,
Ric.
============================= // EWMainImageView.m ... - (void)drawRect:(NSRect)rect { [super drawRect:rect];
if (nil != [self image]) { [[self image] compositeToPoint:([self bounds].origin) operation:NSCompositeSourceOver]; }
[[NSColor redColor] set]; [bezierPath stroke];
} // end drawRect().
...
- (void)setScale:(float)factor {
NSSize imageSize = [self origImageSize];
imageSize.width *= factor;
imageSize.height *= factor;
[[self image]setSize:imageSize];
[self setNeedsDisplay:YES];
}
...
===========================
_______________________________________________
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/coreyoconnor% 40gmail.com
This email sent to email@hidden
-- -Corey O'Connor
_______________________________________________ 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
| References: | |
| >Image within a custom NSView gets blurrier as I scale (From: "Frederick C. Lee" <email@hidden>) | |
| >Re: Image within a custom NSView gets blurrier as I scale (From: "Corey O'Connor" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.