Howdy,

I'm finally just trying to learn Quartz Composer and am really having
trouble wrapping my head around it, so please bear with me.

At this point, I I'm most confused about the Image Dimensions patch.
I'm just trying to get the size of my image (specifically so I can add
an offset to a billboard's coordinates to keep my origin in the lower
left. If there's a better technique, please let me know!), but the
results that come back seem odd.

My composition is the default 512 x 384. For testing purposes, I pull
in a huge image of 2560x1920. When I patch that through to image
dimensions, I get a width of 10 and a height of 10. I would expect
both of those to be 5. To get that result, I'm just dividing the image
dimensions by the canvas dimensions (2560/512 = 5, 1920/384 = 5). So
they look doubled to me. Why the discrepancy? Is it scaling down to
the size of the upper left quadrant of the canvas? That'd be 256x192,
so it'd at least make sense, even though I was expecting it to scale
to the full canvas sie.

When using Image From String, the results are different. My sample
string ("Banana") is 91x33. I'd expect Image Dimensions to give me a
size of 0.177734x0.085938. Instead, I get 0.355469x0.128907. In this
case, the width is still doubled, but the height is multiplied by 1.5.

I just don't get where these scaling factors are coming from. Also,
why do they seem to vary? It'd be one thing if all images were just
doubled for some reason, but since some images from strings have
different scaling factors (for example), it's even more weird.

Can someone point me in the right direction?

Thanks,

-Jim...
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (Quartzcomposer-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to