hdr-canvas 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -5872,6 +5872,11 @@ class Uint16Image {
5872
5872
  }
5873
5873
  this.colorSpace = Uint16Image.DEFAULT_COLORSPACE;
5874
5874
  }
5875
+ clone() {
5876
+ const i = new Uint16Image(this.width, this.height, this.colorSpace);
5877
+ i.data = this.data.slice();
5878
+ return i;
5879
+ }
5875
5880
  }
5876
5881
  Uint16Image.DEFAULT_COLORSPACE = "rec2100-hlg";
5877
5882
  Uint16Image.SDR_MULTIPLIER = 2 ** 16 - 1;