• 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: "Kyle Sluder" <email@hidden>
  • Date: Sun, 6 Apr 2008 14:41:53 -0400

On Sun, Apr 6, 2008 at 6:41 AM, Jean-Daniel Dupas
<email@hidden> wrote:
>  This works well with lightweight PDF, but apparently not for complex one.

I'm concerned as to why this PDF is so complicated in the first place.
 What's being drawn is actually really simple.  Four bezier paths to
draw the frame of the sticky note (filled with an NSGradient), and
then an NSGradient with a separate composite operation to draw the
highlighted portion.  If not live resizing, do this in -drawRect and
then save the bitmap representation in an ivar.  If live resizing,
scale the cached version and draw that until the live resize is
completed.

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: Scaling a window background image quickly
      • From: "Mike R. Manzano" <email@hidden>
References: 
 >Re: Scaling a window background image quickly (From: Heinrich Giesen <email@hidden>)
 >Re: Scaling a window background image quickly (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: How do I embed a font in an app?
  • Next by Date: Re: NSVector, CGVector Additions
  • Previous by thread: Re: Scaling a window background image quickly
  • Next by thread: Re: Scaling a window background image quickly
  • Index(es):
    • Date
    • Thread