Lingo Dictionary > T-Z > trimWhiteSpace()

 

trimWhiteSpace()

Syntax

imageObject.trimWhitespace()

Description

Function; removes any white pixels that lie outside the minimum rectangle and returns the result in a new image object.

Example

This statement trims the white space from member Flower and returns the new, trimmed image object in the variable trimmedImage.

trimmedImage = member("flower").image.trimWhitespace()

See also

crop() (member command)