Adobe Photoshop CS5 Object Library JS: AnchorPosition

Photoshop CS5

 The point around which to transform the object.

Value

NameDescriptionValue
AnchorPosition.BOTTOMCENTERThe middle point of the bottom of the object. int 8
AnchorPosition.BOTTOMLEFTThe bottom left corner of the object. int 7
AnchorPosition.BOTTOMRIGHTThe bottom right corner of the object. int 9
AnchorPosition.MIDDLECENTERThe center of the object. int 5
AnchorPosition.MIDDLELEFTThe middle point on the left side of the object. int 4
AnchorPosition.MIDDLERIGHTThe middle point on the right side of the object. int 6
AnchorPosition.TOPCENTERThe middle point on the top of the object. int 2
AnchorPosition.TOPLEFTThe top left corner of the object. int 1
AnchorPosition.TOPRIGHTThe top right corner of the object. int 3

Usage

In function

void Document.resizeCanvas ([width: UnitValue][, height: UnitValue][, anchor: AnchorPosition=AnchorPosition.MIDDLECENTER])

void Layer.resize ([horizontal: number=100][, vertical: number=100][, anchor: AnchorPosition=AnchorPosition.MIDDLECENTER])

void Layer.rotate (angle: number[, anchor: AnchorPosition=AnchorPosition.MIDDLECENTER])

void Selection.resize ([horizontal: number=100][, vertical: number=100][, anchor: AnchorPosition=AnchorPosition.MIDDLECENTER])

void Selection.resizeBoundary ([horizontal: number=100][, vertical: number=100][, anchor: AnchorPosition=AnchorPosition.MIDDLECENTER])

void Selection.rotate (angle: number[, anchor: AnchorPosition=AnchorPosition.MIDDLECENTER])

void Selection.rotateBoundary (angle: number[, anchor: AnchorPosition=AnchorPosition.MIDDLECENTER])

Jongware, 28-Aug-2012 v3.0.3iContents :: Index