Class NativeImage

java.lang.Object
zombie.core.utils.NativeImage
All Implemented Interfaces:
AutoCloseable

public final class NativeImage extends Object implements AutoCloseable
  • Method Details

    • allocate

      public static NativeImage allocate(int width, int height)
    • read

      public static NativeImage read(String path, boolean flipVertically)
    • width

      public int width()
    • height

      public int height()
    • pixels

      public ByteBuffer pixels()
    • resize

      public NativeImage resize(int targetWidth, int targetHeight)
    • writePng

      public boolean writePng(String path, boolean flipVertically)
    • writePng

      public boolean writePng(OutputStream stream, boolean flipVertically)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable