Class ImageTransformerIdentity

java.lang.Object
one.jpro.platform.image.manager.transformer.ImageTransformerIdentity
All Implemented Interfaces:
JsonConvertible, ImageTransformer

public class ImageTransformerIdentity extends Object implements ImageTransformer
This class implements an identity transformer for images. When applied, it will return the original image without any modification.
See Also:
  • Constructor Details

    • ImageTransformerIdentity

      public ImageTransformerIdentity()
  • Method Details

    • transform

      public BufferedImage transform(BufferedImage image)
      Transforms the provided image. In the case of this identity transformer, the original image is returned without any modifications.
      Specified by:
      transform in interface ImageTransformer
      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: JsonConvertible
      Converts the object to a JSON representation.
      Specified by:
      toJSON in interface JsonConvertible
      Returns:
      A JSONObject representing the object.