Copy link to clipboard
Copied
Hi,
I need to select the boundary around my image.
I select an inner rectangle using:
var shapeRef = [ [dxy,dxy], [dxy,imgHeight+dxy], [imgWidth+dxy,imgHeight+dxy], [imgWidth+dxy,dxy] ];
docRef.selection.select(shapeRef);
Where dxy is the thickness of y boundary.
How do i inverse this selection, or instead select the boundary in the first place?
docRef.selection.invert()
Copy link to clipboard
Copied
Read about the methods available for "selection" (hint - look for a method starting with the letter "i").
You can also use the second argument for the "select" method.
Copy link to clipboard
Copied
docRef.selection.invert()