A command that duplicates the AbstractComponents it's given. This command
is the reverse of an Erase command.
Example
// Given some editor...
// Find all elements intersecting the rectangle with top left (0,0) and // (width,height)=(100,100). constelems = editor.image.getElementsIntersectingRegion( newRect2(0, 0, 100, 100) );
// Create a command that, when applied, will duplicate the elements. constduplicateElems = newDuplicate(elems);
// Apply the command (and make it undoable) editor.dispatch(duplicateElems);
A command that duplicates the AbstractComponents it's given. This command is the reverse of an Erase command.
Example
See
Editor.dispatch EditorImage.getElementsIntersectingRegion