HdrSlice class

A slice is the data for an image framebuffer for a single channel.

Constructors

HdrSlice(String name, int width, int height, int type)
HdrSlice.from(HdrSlice other)
Create a copy of the other HdrSlice.

Properties

data → dynamic
data will be either Uint16List, Float32List, or Uint32List depending on the type being HALF, FLOAT or UINT respectively.
final
height int
final
isFloat bool
Does this channel store floating-point data?
read-only
name String
final
type int
Indicates the type of data stored by the slice, either HdrImage.HALF, HdrImage.FLOAT, or HdrImage.UINT.
final
width int
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getBytes() Uint8List
Get the raw bytes of the data buffer.
getFloat(int x, int y) double
Get the float value of the sample at the coordinates x,y. Half samples are converted to double. An exception will occur if the slice stores UINT data.
getInt(int x, int y) int
Get the int value of the sample at the coordinates x,y. An exception will occur if the slice stores FLOAT or HALF data.
setFloat(int x, int y, num v) → void
Set the float value of the sample at the coordinates x,y for FLOAT or HALF slices.
setInt(int x, int y, int v) → void
Set the int value of the sample at the coordinates x,y for UINT slices.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited