autocrop


Description:

public bool autocrop (Drawable? drawable)

Remove empty borders from the image

Remove empty borders from the this based on empty borders of the input drawable.

The input drawable serves as a base for detecting cropping extents (transparency or background color). With a null input drawable, the image itself will serve as a base for detecting cropping extents.

Parameters:

this

Input image).

drawable

Input drawable.

Returns:

TRUE on success.