public class MaskingOptions extends Object
Represents the common image masking options.
| Modifier and Type | Field and Description |
|---|---|
static int |
BACKGROUND_OBJECT_NUMBER
The background object number
|
| Constructor and Description |
|---|
MaskingOptions() |
| Modifier and Type | Method and Description |
|---|---|
IMaskingArgs |
getArgs()
Gets the arguments for segmentation algorithm.
|
Color |
getBackgroundReplacementColor()
Gets the background replacement color.
|
boolean |
getDecompose()
Gets a value indicating whether
needless to separate each Shape from mask as individual object or as united object from mask separated from background.
|
ImageOptionsBase |
getExportOptions()
Gets the image export options.
|
Rectangle |
getMaskingArea()
Gets the masking area.
|
int |
getMethod()
Gets the segmentation method.
|
void |
setArgs(IMaskingArgs value)
Sets the arguments for segmentation algorithm.
|
void |
setBackgroundReplacementColor(Color value)
Sets the background replacement color.
|
void |
setDecompose(boolean value)
Sets a value indicating whether
needless to separate each Shape from mask as individual object or as united object from mask separated from background.
|
void |
setExportOptions(ImageOptionsBase value)
Sets the image export options.
|
void |
setMaskingArea(Rectangle value)
Sets the masking area.
|
void |
setMethod(int value)
Sets the segmentation method.
|
public static final int BACKGROUND_OBJECT_NUMBER
The background object number
public final int getMethod()
Gets the segmentation method.
Value: The segmentation method.public final void setMethod(int value)
Sets the segmentation method.
Value: The segmentation method.value - the segmentation method.public final IMaskingArgs getArgs()
Gets the arguments for segmentation algorithm.
Value: The arguments for segmentation algorithm.public final void setArgs(IMaskingArgs value)
Sets the arguments for segmentation algorithm.
Value: The arguments for segmentation algorithm.value - the arguments for segmentation algorithm.public final ImageOptionsBase getExportOptions()
Gets the image export options.
Value: The image export options that will be used to create the resulting images.public final void setExportOptions(ImageOptionsBase value)
Sets the image export options.
Value: The image export options that will be used to create the resulting images.value - the image export options.public final Rectangle getMaskingArea()
Gets the masking area.
Value: The masking area which is a partial area of the source image. Rectangle.Empty value means full source image area.public final void setMaskingArea(Rectangle value)
Sets the masking area.
Value: The masking area which is a partial area of the source image. Rectangle.Empty value means full source image area.value - the masking area.public final boolean getDecompose()
Gets a value indicating whether needless to separate each Shape from mask as individual object or as united object from mask separated from background.
Value:true if decompose; otherwise, false.public final void setDecompose(boolean value)
Sets a value indicating whether needless to separate each Shape from mask as individual object or as united object from mask separated from background.
Value:true if decompose; otherwise, false.value - a value indicating whether
needless to separate each Shape from mask as individual object or as united object from mask separated from background.public final Color getBackgroundReplacementColor()
Gets the background replacement color.
Value: The background replacement color. This color will be used as background color in resulting images.public final void setBackgroundReplacementColor(Color value)
Sets the background replacement color.
Value: The background replacement color. This color will be used as background color in resulting images.value - the background replacement color.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.