• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Adobe Photoshop Bounds of a layer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adobe Photoshop Bounds of a layer?


  • Subject: Adobe Photoshop Bounds of a layer?
  • From: Dave <email@hidden>
  • Date: Tue, 02 Sep 2014 08:05:27 +0100

Hi All,

I’m wring a Script for Photoshop and have a question about the bounds of a layer.

It seems that bounds is specified to be Top, Left, Bottom,Right (old pre MacOS X style Rects), my question is, to correctly calculate the Width and Height, should the code be:


width = bounds[2] - bounds[0];
height = bounds[3] - bounds[1];

or

width = (bounds[2] - bounds[0]) + 1;
height = (bounds[3] - bounds[1]) + 1;

Thanks in advance for any help.

All the Best
Dave


 _______________________________________________
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


  • Follow-Ups:
    • Re: Adobe Photoshop Bounds of a layer?
      • From: Martin Orpen <email@hidden>
    • Re: Adobe Photoshop Bounds of a layer?
      • From: Stan Cleveland <email@hidden>
  • Prev by Date: [PSA] JavaScript for Automation
  • Next by Date: Re: about the use of character id
  • Previous by thread: [PSA] JavaScript for Automation
  • Next by thread: Re: Adobe Photoshop Bounds of a layer?
  • Index(es):
    • Date
    • Thread