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.DataTypegetDataType()double[]getFiller()intgetHeight()intgetWidth()java.lang.StringtoString()
-
-
-
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 thefillerparam isdouble, its valid range depends on thedataType. For instance, while forFLOATandDOUBLEtypes the range is 0.0..1.0, forBYTEis 0..255, forUNSIGNED_SHORTis 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:
toStringin classjava.lang.Object
-
-