I use the formula Pixels = Units x Rendering Destination Pixels Wide / 2
Keith On Wed, Feb 10, 2010 at 6:57 AM, Keith Lang <[email protected]> wrote: > On Wed, Feb 10, 2010 at 4:07 AM, Andrew Wason <[email protected]> > wrote: >> I'm working on a QCPlugIn that I want to take input width and height >> in Quartz Composer Units and then output a QCPlugInOutputImageProvider >> image. >> >> How do I convert the input units to pixels based on the current >> rendering destination pixel dimensions? QCPlugInContext.bounds is in >> units so it doesn't help. >> >> Is using glGetIntegerv(GL_VIEWPORT) in execute:atTime:withArguments: >> the recommended way to get the rendering destination pixel dimensions? >> >> >> Andrew >> _______________________________________________ >> 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/songcarver%40gmail.com >> >> This email sent to [email protected] >> > _______________________________________________ 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]

