Skip to main content
filter, frame, adjust and auto change how the photo looks, and palette the colors every color row offers. Each command does what the same strip, ruler, ring or menu does on screen, with its undo step, and follows the rules of every command. The examples call the handle editor. See Get the handle.
Full and Trial only. In the Free and the Lite the five groups exist and every command rejects with NOT_AVAILABLE.
Values are the ones EditState writes: a filter’s id and its intensity 0 to 100, a frame’s style and its color, each adjustment by its key at −100 to 100 (sharpness 0 to 100), and Auto’s amount at −100 to 100. Every command here but palette.set is one undo step, and none when the photo already looks that way. A command doesn’t show the item it changes, though the filter’s or the frame’s name shows over the photo as it changes, as it does for an undo.

Filter

Filter is off when you set enableFilter: false, and then both commands reject with NOT_AVAILABLE.

set()

Chooses a filter, as a tap on it in Filter’s strip.
string
required
'VIVID', 'VIVID_WARM', 'VIVID_COOL', 'DRAMATIC', 'DRAMATIC_WARM', 'DRAMATIC_COOL', 'MONO', 'SILVERTONE' or 'NOIR'.
number
0 to 100, as the filter’s ruler. Left out, another filter comes in at full strength, as a tap brings it, and the filter already chosen keeps its intensity.

clear()

Takes the filter away, as Original in the strip.
filter.ts

Frame

Frame is off when you set enableFrame: false, and then both commands reject with NOT_AVAILABLE.

set()

Chooses a frame and its color, as a tap on its tile in Frame’s strip and one on a color of its row. Both land as one undo step.
string
required
'MAT_SHARP', 'MAT_ROUND', 'LINE_SINGLE', 'LINE_MULTIPLE', 'EDGE_CROSS', 'EDGE_SEPARATE', 'EDGE_OVERLAP', 'CORNER_HOOKS', 'POLAROID', 'FILM', 'ROUND_CORNERS', 'GALLERY' or 'PHOTO_CORNERS'.
string
#rrggbb or #rgb, in any case. The state writes it as six lowercase digits. Left out, the frame keeps the color it has, white at first, as a tap on a tile does.

clear()

Takes the frame away, as None in the strip. Its color stays for the next frame.
frame.ts

Adjustments

An adjustment goes by its key in the state’s adjustments: 'exposure', 'brilliance', 'highlights', 'shadows', 'contrast', 'brightness', 'blackPoint', 'saturation', 'vibrance', 'warmth', 'sharpness' and 'vignette'. The adjustments are off when you set enableFinetune: false, and then both commands reject with NOT_AVAILABLE.

set()

Sets an adjustment, as its ruler.
string
required
The adjustment’s key.
number
required
−100 to 100, 0 the photo as it is. 'sharpness' only goes up, 0 to 100. When Auto is on, the adjustments draw on top of it.

reset()

Sets an adjustment back to 0.
adjustments.ts

Auto

Auto is off with the adjustments, when you set enableFinetune: false, and then every command here rejects with NOT_AVAILABLE.

on()

Turns Auto on, as a tap on its ring or on Auto Enhance. It comes back at the amount a tap turned it off at, or at the photo’s own amount (the state’s auto.origin). Auto needs the photo read first. The editor reads it while it is idle, so it is usually ready. If not, on() waits for it. When the photo can’t be read, or the reading takes too long, it rejects with NOT_AVAILABLE and nothing changes.

off()

Turns Auto off, as a tap on its ring. Its amount is kept for the next on().

setAmount()

Sets how much Auto does, as its ruler: −100 to 100, the state’s auto.amount. While Auto is off it rejects with NOT_AVAILABLE: call on() first.
auto.ts

Palette

set()

Chooses the set of colors every color row shows, as the palette menu that heads each one: Annotate’s, the frame’s, a mark’s and a solid area’s. The editor’s own sets are 'VIBRANT', 'PASTEL' and 'EARTH'; the photo’s are 'PHOTO', 'PHOTO_PASTEL' and 'PHOTO_VIVID'. A photo set chosen before its colors are read off the photo fills in once they are, as on screen. The set is kept while the editor is open and never saved, so there is no undo step. No host prop turns it off.
palette.ts

Errors

A rejected command changes nothing.