• 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 CGPDFPageRefs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scaling CGPDFPageRefs


  • Subject: Re: Scaling CGPDFPageRefs
  • From: David Duncan <email@hidden>
  • Date: Thu, 24 Jan 2008 09:48:30 -0800

On Jan 24, 2008, at 8:15 AM, Maryanna Rogers wrote:

Again, what I would like to do, is have an existing bitmap context of
a given size (128 x 128, for example), and draw scaled subregions of a
given PDF document page into that bitmap context. Is there a simple
way to do this?


Do what you would do for any other content you wanted to scale, just add an additional scaling transform. For example, if you wanted to scale to 200%, you would also call "CGContextScaleCTM(context, 2.0, 2.0)" before you draw the image.
--
David Duncan
Apple DTS Animation and Printing
email@hidden




_______________________________________________

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 CGPDFPageRefs (From: "Maryanna Rogers" <email@hidden>)

  • Prev by Date: Re: String encoding problem (WSMethodInvocation)
  • Next by Date: Changing CALayer's contents too rapidly causes CoreAnimation to implode?
  • Previous by thread: Scaling CGPDFPageRefs
  • Next by thread: Re: Scaling CGPDFPageRefs
  • Index(es):
    • Date
    • Thread