Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGPDFPageGetDrawingTransform refuses to upscale



Derek,

At 9:53 -0800 31/3/05, Derek Clegg wrote:
This was, as sometimes happens, an historical decision that "seemed right at the time." This function was originally used for easy layout in N-up printing. In that case, it seemed better to avoid scaling up a PDF file when it was smaller than the page rect - instead, we kept the size unchanged and centered the PDF in the page rect. Unfortunately, this particular behavior now makes it necessary to jump through some hoops if you want uniform scaling both up and down.

And, probably those hoops are simple for you as you must be using transformations all the time, but I have been puzzling on this now for some time and cannot seem to figure out how to do this correctly. I can scale easily, but then my image also needs to be translated to keep it within my rectangle (if I just scale, it walks out of my rect as I make the rect bigger and bigger). What would be the correct way to do the upscaling taking into account the image's art box and the rect I want to display it in?


Thanks,

david.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden
References: 
 >CGPDFPageGetDrawingTransform refuses to upscale (From: David Niemeijer <email@hidden>)
 >Re: CGPDFPageGetDrawingTransform refuses to upscale (From: Derek Clegg <email@hidden>)
 >Re: CGPDFPageGetDrawingTransform refuses to upscale (From: David Niemeijer <email@hidden>)
 >Re: CGPDFPageGetDrawingTransform refuses to upscale (From: Derek Clegg <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.