NGL@0.10.4 Home Manual Reference Source GalleryRepository
import ImageBuffer from 'ngl/src/buffer/image-buffer.js'
public class | source

ImageBuffer

Extends:

Buffer → ImageBuffer

Image buffer. Draw a single image. Optionally interpolate.

Constructor Summary

Public Constructor
public

Inherited Summary

From class Buffer
public get abstract
public get abstract
public

Free buffer resources

public

Set buffer parameters

public

Set buffer visibility

Public Constructors

public constructor(data: Object, params: BufferParameters) source

Override:

Buffer#constructor

Params:

NameTypeAttributeDescription
data Object

buffer data

data.position Float32Array

image position

data.imageData Float32Array

image data, rgba channels

data.width Float32Array

image width

data.height Float32Array

image height

data.picking Picker
  • optional

picking ids

params BufferParameters
  • optional

parameters object