Specifying a point of origin

Roger.E.Eller at sealedair.com Roger.E.Eller at sealedair.com
Tue Oct 22 12:21:01 EDT 2002


> Roger.E.Eller at sealedair.com wrote:
>> ... the point of origin (0,0) is at the top-left for Rev, and the CAD
system uses
>> bottom-left, the drawings are flipped (mirrored) vertically on screen.
>>
>> Is there a way to set the point of origin to a specific corner of the
>> screen before creating the graphics? Or is there some kind of
workaround?

Richard Gaskin wrote:
>
> This is a common challenge with computer graphics, as pretty much all
screen
> coordunate systems have 0,0 in the upper left of the content region of a
> window.
>
> Probably the simplest approch would be to subtract the y coordinate from
the
> height of the stack for each point -- could be done in a loop fairly
> quickly.

Thanks Richard!  That did the trick. I should have figured that one out,
but you know how it is after the 12th hour of writing code.

Roger Eller
roger.e.eller at sealedair.com






More information about the use-livecode mailing list