aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma/GammaRamps.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgamma/GammaRamps.java')
-rw-r--r--src/libgamma/GammaRamps.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libgamma/GammaRamps.java b/src/libgamma/GammaRamps.java
index 35f9d4b..61352e2 100644
--- a/src/libgamma/GammaRamps.java
+++ b/src/libgamma/GammaRamps.java
@@ -54,6 +54,21 @@ public class GammaRamps<T extends Ramp>
* -1 for single precision floating point, and -2 for
* double precision floating point.
*/
+ public GammaRamps(int red_size, int green_size, int blue_size, int depth) throws LibgammaException
+ {
+ this(red_size, green_size, blue_size, (short)depth);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param red_size The size of the encoding axis of the red gamma ramp.
+ * @param green_size The size of the encoding axis of the green gamma ramp.
+ * @param blue_size The size of the encoding axis of the blue gamma ramp.
+ * @param depth The bit-depth of the value axes of gamma ramps,
+ * -1 for single precision floating point, and -2 for
+ * double precision floating point.
+ */
@SuppressWarnings("unchecked")
public GammaRamps(int red_size, int green_size, int blue_size, short depth) throws LibgammaException
{