Re: Adobe Photoshop Bounds of a layer?
Re: Adobe Photoshop Bounds of a layer?
- Subject: Re: Adobe Photoshop Bounds of a layer?
- From: "koenig.yvan" <email@hidden>
- Date: Thu, 04 Sep 2014 14:20:22 +0200
Le 04/09/2014 à 14:13, Shane Stanley < email@hidden> a écrit : 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/>
Hello Shane
I knew that and it's why I carefully wrote : which is the definition used by most applications (including the Apple ones which I'm aware of)
In my poor old scholar English it was supposed to mean that it was not used by all applications. Was I wrong ?
Yvan KOENIG (VALLAURIS, France) jeudi 4 septembre 2014 14:20:18
|
_______________________________________________
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