public class ConvolutionFilterOptions extends FilterOptionsBase implements com.aspose.internal.imagefilters.convolution.IConvolutionKernel
The convolution filter options.
| Constructor and Description |
|---|
ConvolutionFilterOptions(double[][] kernel)
Initializes a new instance of the
ConvolutionFilterOptions class with factor == 1 and bias == 0. |
ConvolutionFilterOptions(double[][] kernel,
double factor)
Initializes a new instance of the
ConvolutionFilterOptions class with bias == 0. |
ConvolutionFilterOptions(double[][] kernel,
double factor,
int bias)
Initializes a new instance of the
ConvolutionFilterOptions class. |
| Modifier and Type | Method and Description |
|---|---|
int |
getBias()
Gets the bias.
|
boolean |
getBordersProcessing()
Gets a value indicating whether [borders processing].
|
double |
getFactor()
Gets the factor.
|
boolean |
getIgnoreAlpha()
Gets a value indicating whether [ignore alpha].
|
double[][] |
getKernel()
Gets the kernel.
|
void |
setBias(int value)
Sets the bias.
|
void |
setBordersProcessing(boolean value)
Sets a value indicating whether [borders processing].
|
void |
setFactor(double value)
Sets the factor.
|
void |
setIgnoreAlpha(boolean value)
Sets a value indicating whether [ignore alpha].
|
public ConvolutionFilterOptions(double[][] kernel)
Initializes a new instance of the ConvolutionFilterOptions class with factor == 1 and bias == 0.
kernel - The convolution kernel for X-axis direction.com.aspose.ms.System.ArgumentNullException - ArgumentNullExceptionpublic ConvolutionFilterOptions(double[][] kernel,
double factor)
Initializes a new instance of the ConvolutionFilterOptions class with bias == 0.
kernel - The convolution kernel for X-axis direction.factor - The factor.com.aspose.ms.System.ArgumentNullException - ArgumentNullExceptionpublic ConvolutionFilterOptions(double[][] kernel,
double factor,
int bias)
Initializes a new instance of the ConvolutionFilterOptions class.
kernel - The convolution kernel for X-axis direction.factor - The factor.bias - The bias value.com.aspose.ms.System.ArgumentNullException - ArgumentNullExceptionpublic double[][] getKernel()
Gets the kernel.
getKernel in interface com.aspose.internal.imagefilters.convolution.IKernel<double[][]>public final double getFactor()
Gets the factor.
public final void setFactor(double value)
Sets the factor.
value - the factor.public final int getBias()
Gets the bias.
Value: The bias.public final void setBias(int value)
Sets the bias.
Value: The bias.value - the bias.public final boolean getIgnoreAlpha()
Gets a value indicating whether [ignore alpha].
Value:true if [ignore alpha]; otherwise, false.public final void setIgnoreAlpha(boolean value)
Sets a value indicating whether [ignore alpha].
Value:true if [ignore alpha]; otherwise, false.value - a value indicating whether [ignore alpha].public final boolean getBordersProcessing()
Gets a value indicating whether [borders processing].
Value:true if [borders processing]; otherwise, false.public final void setBordersProcessing(boolean value)
Sets a value indicating whether [borders processing].
Value:true if [borders processing]; otherwise, false.value - a value indicating whether [borders processing].Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.