Example usage for com.google.gwt.typedarrays.shared Uint8Array buffer

List of usage examples for com.google.gwt.typedarrays.shared Uint8Array buffer

Introduction

In this page you can find the example usage for com.google.gwt.typedarrays.shared Uint8Array buffer.

Prototype

ArrayBuffer buffer();

Source Link

Document

Get the underlying ArrayBuffer .

Usage

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());
}