Class ImageTransformerIdentity
java.lang.Object
one.jpro.platform.image.manager.transformer.ImageTransformerIdentity
- All Implemented Interfaces:
JsonConvertible,ImageTransformer
This class implements an identity transformer for images. When applied,
it will return the original image without any modification.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObjecttoJSON()Converts the object to a JSON representation.transform(BufferedImage image) Transforms the provided image.
-
Constructor Details
-
ImageTransformerIdentity
public ImageTransformerIdentity()
-
-
Method Details
-
transform
Transforms the provided image. In the case of this identity transformer, the original image is returned without any modifications.- Specified by:
transformin interfaceImageTransformer- Parameters:
image- The image to be transformed.- Returns:
- The same image that was passed as a parameter.
-
toJSON
public org.json.JSONObject toJSON()Description copied from interface:JsonConvertibleConverts the object to a JSON representation.- Specified by:
toJSONin interfaceJsonConvertible- Returns:
- A JSONObject representing the object.
-