NSImageView Will Not Alias Images
NSImageView Will Not Alias Images
- Subject: NSImageView Will Not Alias Images
- From: Chris Tracewell <email@hidden>
- Date: Tue, 6 Apr 2010 13:17:43 -0700
I am trying to get NSImageView to alias dropped images, but it
refuses. Just spent an hour looking and trying several variations to
no avail. Here's what I have done in a subclass of NSImageView.
-(void)drawRect:(NSRect)rect
{
[[NSGraphicsContext currentContext]
setImageInterpolation:NSImageInterpolationHigh];
[[NSGraphicsContext currentContext] setShouldAntialias:YES];
[super drawRect:rect];
}
I have assigned the ImageView in IB my subclass and used NSLog to
verify that it is drawing through the above drawRect method of my
subclass - but the images (PNG screen captures) will not alias.
Any suggestions?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden