List of usage examples for com.google.gwt.typedarrays.shared Uint8Array buffer
ArrayBuffer buffer();
From source file:com.lizardtech.djvu.GMap.java
License:Open Source License
protected void setImageData(ImageData imageData) { this.imageData = imageData; Uint8Array imageArray = (Uint8Array) imageData.getData(); // image array is clamped by default, we need non-clamped data = TypedArrays.createUint8Array(imageArray.buffer()); }