From a5952bf789b101b667d791bc389b27bd36284fad Mon Sep 17 00:00:00 2001 From: Andrey Pangin Date: Thu, 20 Oct 2016 14:18:50 +0300 Subject: [PATCH] WebP Params getters --- src/one/webp/Params.java | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/one/webp/Params.java b/src/one/webp/Params.java index 56eb2b9..3841d90 100644 --- a/src/one/webp/Params.java +++ b/src/one/webp/Params.java @@ -70,6 +70,38 @@ public Params png(boolean png) { return this; } + public int quality() { + return quality; + } + + public int compression() { + return compression; + } + + public int maxWidth() { + return maxWidth; + } + + public int maxHeight() { + return maxHeight; + } + + public boolean useJpegScaling() { + return useJpegScaling; + } + + public boolean lossless() { + return lossless; + } + + public boolean multithreaded() { + return multithreaded; + } + + public boolean png() { + return png; + } + // See struct Params in onewebp.h long longValue() { return (long) maxWidth