Adobe Photoshop CS5 Object Library JS: TrimType

Photoshop CS5

 The type of pixels to trim around an image.

Value

NameDescriptionValue
TrimType.BOTTOMRIGHTRemoves from the image an area the color of the lower right pixel. int 9
TrimType.TOPLEFTRemoves from the image an area the color of the upper left pixel. int 1
TrimType.TRANSPARENTTrims away transparency at the edges of the image, leaving the smallest image containing nontransparent pixels. int 0

Usage

In function

void Document.trim ([type: TrimType=TrimType.TOPLEFT][, top: bool=true][, left: bool=true][, bottom: bool=true][, right: bool=true])

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