Class SnpRotateImage
Object
|
+--SnpRotateImage
- class
SnpRotateImage
Shows how to use a BitmapData object to create and rotate images.
Usage
- Open the snippet in the ExtendScript Toolkit (see Readme.txt), setting Bridge CS5 as the target application.
- In Bridge, select one thumbnail representing an image file and run this snippet.
- You should see rotated JPEG images created from the thumbnails you selected.
Description
Shows how to rotate image files and export them as JPEG images, using the
BitmapData object and the ExtendScript File object for a thumbnail.
You must select a single thumbnail for the image file to be rotated.
The sample rotates the image both clockwise and counter-clockwise,
creating two new image files.
Defined in SnpRotateImage.jsx
Field Summary |
String |
requiredContext
The context in which this snippet can run. |
Method Summary |
Boolean
|
canRun()
Determines whether snippet can be run given current context.
|
Boolean
|
run()
Functional part of this snippet.
|
requiredContext
String requiredContext
The context in which this snippet can run.
SnpRotateImage
SnpRotateImage()
canRun
Boolean canRun()
Determines whether snippet can be run given current context. The snippet
fails if these preconditions are not met:
- Must in Bridge
- A single image file must be selected in Bridge
Returns:
True if this snippet can run, false otherwise
run
Boolean run()
Functional part of this snippet.
Gets a File object for the selected thumbnail and uses it to create a BitmapData object.
Uses the BitmapData object to rotate and export to the JPEG format.
Returns:
True if the snippet ran as expected, false if no image file is selected in Bridge
http://www.adobe.com/devnet/bridge
Documentation generated by
JSDoc on Tue Apr 27 10:21:34 2010