On Dec 21, 2007 1:07 PM, Jonathan del Strother <[EMAIL PROTECTED]> wrote:
> Heya,
> I have a patch that generates an image, using a
> QCPlugInOutputImageProvider object.  I'd like to specify (via an input
> port) the size of the image in quartz dimensions.  How can I then
> calculate the imageBounds method for the QCPlugInOutputImageProvider?
> It requires pixel dimensions, but as far as I can tell, there's no way
> of getting the viewport size.
>
> It's clearly possible at some level - for instance, Image With String
> allows you to specify the image dimensions in quartz coords - but I
> can't seem to find any public method of figuring it out.
>


Just a quick followup, for what it's worth :
You *can* get the viewport dimensions in the plugin via  [[[self
patch] renderingContext] frame].  Which actually seems to work fine,
but it is going though 3 private methods with two private classes,
which seems a tad fragile...
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to