Package it.tidalwave.image.op
Class CreateOp
- java.lang.Object
-
- it.tidalwave.image.op.Operation
-
- it.tidalwave.image.op.AbstractCreateOp
-
- it.tidalwave.image.op.CreateOp
-
- Direct Known Subclasses:
CreateFunctionOp
public class CreateOp extends AbstractCreateOp
- Author:
- Fabrizio Giudici
-
-
Constructor Summary
Constructors Constructor Description CreateOp(int width, int height, EditableImage.DataType dataType)
Create a black monochromatic image (i.e.CreateOp(int width, int height, EditableImage.DataType dataType, double... filler)
Create a multi-band image with the specified data type.CreateOp(int width, int height, EditableImage.DataType dataType, java.awt.Color color)
Create an RGB image with the specified data type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EditableImage.DataType
getDataType()
double[]
getFiller()
int
getHeight()
int
getWidth()
java.lang.String
toString()
-
-
-
Constructor Detail
-
CreateOp
public CreateOp(int width, int height, EditableImage.DataType dataType)
Create a black monochromatic image (i.e. made of a single band) with the specified data type.- Parameters:
width
- the image widthheight
- the image heightdataType
- the data type
-
CreateOp
public CreateOp(int width, int height, EditableImage.DataType dataType, java.awt.Color color)
Create an RGB image with the specified data type.- Parameters:
width
- the image widthheight
- the image heightdataType
- the data typecolor
- the filler color
-
CreateOp
public CreateOp(int width, int height, EditableImage.DataType dataType, double... filler)
Create a multi-band image with the specified data type. Ploase note that while thefiller
param isdouble
, its valid range depends on thedataType
. For instance, while forFLOAT
andDOUBLE
types the range is 0.0..1.0, forBYTE
is 0..255, for
UNSIGNED_SHORT
is 0..65535 and so on.- Parameters:
width
- the image widthheight
- the image heightdataType
- the data typefiller
- the filler values
-
-
Method Detail
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
getDataType
public EditableImage.DataType getDataType()
-
getFiller
public double[] getFiller()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-