Select
Selection commands.
Select commands are related to Select tool.
Command | Value | Description |
---|---|---|
select-all | Selects all pixels from current layer | |
select-alpha | Selects transparent pixels from current layer | |
select-area | t:r:b:l | Selects pixels from given area (top, right, bottom, left) |
select-create-mask | Create mask from selection | |
select-deselect | Remove selection if selection exists | |
select-duplicate | Duplicate selected area from selected layer | |
select-erase | Clear selected area | |
select-invert | Invert selection | |
select-magic-fill | Perform 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")