• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scaling a window background image quickly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scaling a window background image quickly


  • Subject: Re: Scaling a window background image quickly
  • From: Ben Lachman <email@hidden>
  • Date: Sun, 6 Apr 2008 02:08:29 -0400

On Apr 5, 2008, at 8:28 PM, Quincey Morris wrote:

On Apr 5, 2008, at 16:45, Mike R. Manzano wrote:

Unfortunately, that still didn't work. The resultant images continue to be pixelated, as you can see here:

http://instantvoodoomagic.com/stickycapture.png


IIRC this came up on the list a couple of weeks ago. You need to set the interpolation quality in the graphics context to NSImageInterpolationHigh because the default value of "low" just replicates pixels.




The other thing you might want to do for speed is draw differently based on whether or not you are in a live resize. Use -inLiveResize to check in your drawRect: and possibly set the interpolation to low during a resize and high at other times.

->Ben

--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

email@hidden
740.590.0009

_______________________________________________

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


References: 
 >Scaling a window background image quickly (From: "Mike R. Manzano" <email@hidden>)
 >Re: Scaling a window background image quickly (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Scaling a window background image quickly (From: "Mike R. Manzano" <email@hidden>)
 >Re: Scaling a window background image quickly (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Scaling a window background image quickly (From: "Mike R. Manzano" <email@hidden>)
 >Re: Scaling a window background image quickly (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Custom Buttons - Tutorial/Examples...
  • Next by Date: Re: Scaling a window background image quickly
  • Previous by thread: Re: Scaling a window background image quickly
  • Next by thread: Re: Scaling a window background image quickly
  • Index(es):
    • Date
    • Thread