Skip to content

ElectronNativeImage.crop method

ElectronNativeImage › crop

Unofficial

Returns a cropped copy of the image.

Signature:

crop(rect: ElectronRectangle): ElectronNativeImage

Parameters:

Parameter Type Description
rect ElectronRectangle The area of the image to crop.

Returns: ElectronNativeImageThe cropped image.