Select

Selection commands.

Select commands are related to Select tool.

CommandValueDescription
select-allSelects all pixels from current layer
select-alphaSelects transparent pixels from current layer
select-areat:r:b:lSelects pixels from given area (top, right, bottom, left)
select-create-maskCreate mask from selection
select-deselectRemove selection if selection exists
select-duplicateDuplicate selected area from selected layer
select-eraseClear selected area
select-invertInvert selection
select-magic-fillPerform content aware fill to selected area

Example

// Make selection from coordinate 0,0 to 640,480
cmd("select-area:0:0:640:480")
// Invert selection
cmd("select-invert")