Class: FrameOperation

PhotoEditorSDK.Operations. FrameOperation

An operation that can draw a frame around the image

new PhotoEditorSDK.Operations.FrameOperation(sdk, options)

sdk/operations/frame-operation.js, line 36

Creates a new FrameOperation

Name Type Description
sdk PhotoEditorSDK
options Object optional

Extends

Members

staticPhotoEditorSDK.Operations.FrameOperation.identifierString

A unique string that identifies this operation. Can be used to select operations.

Default Value:
  • frame

Methods

staticPhotoEditorSDK.Operations.FrameOperation.validateFrame(frame)

sdk/operations/frame-operation.js, line 418

Validates the given frame object

Name Type Description
frame Object

dispose()

sdk/operations/frame-operation.js, line 409

Disposes this operation

getFrame(){undefined}

Returns the frame
Returns:
Name Type Description
frame undefined The frame

getScale(){undefined}

Returns the scale
Returns:
Name Type Description
scale undefined The scale

getTintColor(){undefined}

Returns the tintColor
Returns:
Name Type Description
tintColor undefined The tintColor

setFrame(frame)

Sets the frame
Name Type Description
frame undefined

setScale(scale)

Sets the scale
Name Type Description
scale undefined

setTintColor(tintColor)

Sets the tintColor
Name Type Description
tintColor undefined