Re: Canvas view of FxGenerator, scaling issue
Re: Canvas view of FxGenerator, scaling issue
- Subject: Re: Canvas view of FxGenerator, scaling issue
- From: Darrin Cardani <email@hidden>
- Date: Wed, 25 Mar 2009 10:28:34 -0700
On Mar 25, 2009, at 10:10 AM, Brian Gardner wrote:
When my FxGenerator plugin's output is viewed
in the Canvas viewer at 50% or more, it looks correct.
As long as it is displayed too large fully fit into the canvas
(scroll bars come up), it is displayed correctly.
But, when that same output is viewed in
the Canvas viewer at 27% or less, it looks wrong.
Basically, as soon as the image fully fits into the viewer
(the Canvas scroll bars go away),
it becomes dramatically incorrectly viewed -- like a cropped image.
For example, when viewed at 25% the resulting
image in the viewer is a zoom in (not zoom out) view
of just the upper left corner of the image.
(First 25% of X, 25% of Y, blow up to fit the Canvas viewer image).
My code is just a dumb copy of the Reference Image
directly to the output image. Very straightforward
loop of y,x through the height, width of the output image.
I'm just testing my parameters out,
before I start writing the rest of the plugin.
Am I doing something wrong?
Is this my bug or a Canvas viewer bug?
It's likely your bug, since we ship dozens of generators which work
properly, as do other developers. Have you checked the width and
height of the reference image? It's probably not scaled the same as
the canvas. (This is another reason why you might want to write an
FxFilter instead of an FxGenerator.)
Darrin
--
Darrin Cardani
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden