Class PngConverter

java.lang.Object
ke.ric.renderer.api.PngConverter

public final class PngConverter extends Object
Converts immutable RGBA8 render output into a PNG byte stream.
  • Method Details

    • encode

      public static byte[] encode(RenderResult frame)
      Encodes copied RGBA8 including alpha without modifying the frame; run away from the server thread for nontrivial images.