Package it.tidalwave.image.op
Class CreateFunctionOp
- java.lang.Object
-
- it.tidalwave.image.op.Operation
-
- it.tidalwave.image.op.AbstractCreateOp
-
- it.tidalwave.image.op.CreateOp
-
- it.tidalwave.image.op.CreateFunctionOp
-
public class CreateFunctionOp extends CreateOp
This operation creates a new image with the specified size and data type, whose pixel values are computed by a given function.- Author:
- Fabrizio Giudici
-
-
Constructor Summary
Constructors Constructor Description CreateFunctionOp(int width, int height, ImageFunction function, EditableImage.DataType dataType)Creates a new operation which will create an image.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageFunctiongetImageFunction()java.lang.StringtoString()-
Methods inherited from class it.tidalwave.image.op.CreateOp
getDataType, getFiller, getHeight, getWidth
-
-
-
-
Constructor Detail
-
CreateFunctionOp
public CreateFunctionOp(int width, int height, ImageFunction function, EditableImage.DataType dataType)Creates a new operation which will create an image. AT THE MOMENT ONLY MONOCHROMATIC IMAGES (MADE BY A SINGLE BAND) ARE SUPPORTED.- Parameters:
width- the image widthheight- the image heightfunction- the function which computes the pixel valuesdataType- the data type
-
-
Method Detail
-
getImageFunction
public ImageFunction getImageFunction()
-
-