Re: Resize NSImage without anti-aliasing
Re: Resize NSImage without anti-aliasing
- Subject: Re: Resize NSImage without anti-aliasing
- From: Shane Stanley <email@hidden>
- Date: Wed, 22 Mar 2017 09:59:59 +1100
On 22 Mar 2017, at 1:34 am, Takaaki Naganoya <email@hidden> wrote:
Is there a way to scale NSImage without anti-aliasing?
Try changing this:
current application's NSGraphicsContext's setCurrentContext:(current application's NSGraphicsContext's graphicsContextWithBitmapImageRep:aRep)
set theContext to current application's NSGraphicsContext's setCurrentContext:(current application's NSGraphicsContext's graphicsContextWithBitmapImageRep:aRep) theContext's setShouldAntiAlias:false theContext's setImageInterpolation:(current application's NSImageInterpolationNone)
The last line is probably unnecessary.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden