public interface Mask extends Shape, Rectangular
Modifier and Type | Method and Description |
---|---|
MaskData |
asDataObject()
Returns an
MaskData corresponding to the handled object. |
byte[] |
getMask()
Returns the mask as a byte array.
|
int[][] |
getMaskAsBinaryArray()
Returns the mask image.
|
void |
setMask(boolean[][] mask)
Sets the mask
|
void |
setMask(byte[] mask)
Sets the mask image.
|
void |
setMask(int[][] mask)
Sets the mask
|
default Shape |
toAWTShape()
Converts the shape to an
Shape . |
createTransformedAWTShape, getBoundingBox, getC, getCZT, getFill, getFontSize, getStroke, getT, getText, getZ, link, setC, setCZT, setFill, setFontSize, setStroke, setT, setText, setTransform, setTransform, setZ, toAWTTransform, toImageJ
addAndReplaceFile, addAndReplaceFile, addAndReplaceTable, addAndReplaceTable, addFile, addKeyValuePair, addTable, addTag, addTag, addTags, copyAnnotationLinks, getAnnotationData, getAnnotations, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getMyRating, getTable, getTables, getTags, getValues, isLinked, link, link, linkIfNotLinked, rate, unlink
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdate
getCoordinates, getHeight, getWidth, getX, getY, setCoordinates, setCoordinates, setHeight, setWidth, setX, setY
MaskData asDataObject()
MaskData
corresponding to the handled object.asDataObject
in interface RemoteObject
asDataObject
in interface Shape
default Shape toAWTShape()
Shape
.toAWTShape
in interface Shape
int[][] getMaskAsBinaryArray()
byte[] getMask()
void setMask(byte[] mask)
mask
- See above.void setMask(int[][] mask)
mask
- The binary mask (int[width][height])void setMask(boolean[][] mask)
mask
- The binary mask (boolean[width][height])Copyright © 2020–2023 GReD. All rights reserved.