Function Image.compress

Compresses the image to use less memory. Can not directly access pixel data while the image is compressed. Returns error if the chosen compression mode is not available. See compressmode and compresssource constants.

godot.core.defs.GodotError compress (
  const(long) mode,
  const(long) source,
  const(double) lossy_quality
) nothrow @nogc;