Interface Images

All Superinterfaces:
org.teavm.jso.JSObject

public interface Images extends org.teavm.jso.JSObject
The Images binding. Declared with images(), named IMAGES.

Only part of this is simulated locally, so a test covering a transform beyond the simulated subset has to run against the real service.

Since:
1.0.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A transformation under construction.
  • Method Summary

    Modifier and Type
    Method
    Description
    default TSObject
    info(org.teavm.jso.JSObject stream)
    Reads an image's format and dimensions without transforming it.
    input(org.teavm.jso.JSObject stream)
    Starts a transformation.
    org.teavm.jso.core.JSPromise<TSObject>
    readInfo(org.teavm.jso.JSObject stream)
     

    Methods inherited from interface org.teavm.jso.JSObject

    cast
  • Method Details

    • info

      default TSObject info(org.teavm.jso.JSObject stream)
      Reads an image's format and dimensions without transforming it.
      Parameters:
      stream - the image bytes, as a stream
      Returns:
      the format, width and height
    • input

      Images.Transformer input(org.teavm.jso.JSObject stream)
      Starts a transformation.
      Parameters:
      stream - the image bytes, as a stream
      Returns:
      the transformer, which is chained and then output
    • readInfo

      org.teavm.jso.core.JSPromise<TSObject> readInfo(org.teavm.jso.JSObject stream)