Re: Scaling CGPDFPageRefs
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