Re: Adobe Photoshop Bounds of a layer?
Re: Adobe Photoshop Bounds of a layer?
- Subject: Re: Adobe Photoshop Bounds of a layer?
- From: Shane Stanley <email@hidden>
- Date: Thu, 04 Sep 2014 22:13:37 +1000
On 4 Sep 2014, at 9:43 pm, koenig.yvan <email@hidden> wrote:
> Martin's answer seems to be clear.
I think the difference is that Martin was using 1-based numbering, whereas the OP was using zero-based numbering (I'm not quite sure why).
> bounds is {Left, Top, Right, Bottom}
> which is the definition used by most applications (including the Apple ones which I'm aware of)
Up to a point. QuarkXPress uses {Top, Left, Bottom, Right}, as does InDesign mostly (but not always). It stems from the fact that something in QuickDraw used the same scheme.
And then there are apps where the origin is the bottom-left (Acrobat and Illustrator), so calculating the height means reversing the two Y values.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden