Float32x4Pixels class final Buffers

A 2-dimensional buffer of multi-channel floating point pixel data in memory.

Each pixel is represented by a Float32x4 value, which is a 128-bit SIMD compatible (on supported platforms) floating point vector, and typically (but not necessarily) stores 4 floating point values in the range of 0.0 to 1.0, which allows a higher dynamic range than the 8-bit integer based pixel formats.

The default format is floatRgba.

Inheritance
Implemented types

Constructors

Float32x4Pixels(int width, int height, {PixelFormat<Float32x4, void> format = floatRgba, Float32x4List? data})
Creates a new buffer of multi-channel floating point pixel data.
factory
Float32x4Pixels.from(Buffer<Float32x4> buffer)
Creates a copy of the given buffer with the same pixel data and dimensions.
factory

Properties

bounds Rect
Returns the buffer as a bounding rectangle.
no setterinherited
data Float32x4List
Pixel data in the buffer.
final
format PixelFormat<Float32x4, void>
Format of the pixel data in the buffer.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height int
Height of the buffer in pixels.
finalinherited
length int
Length of the buffer in pixels.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
Width of the buffer in pixels.
finalinherited

Methods

blit<S>(Buffer<S> from, {Rect? source, Pos? target, BlendMode blend = BlendMode.srcOver}) → void
Blits, or copies with blending, the pixel data from a source buffer to this buffer.
inherited
blitUnsafe<S>(Buffer<S> from, {Rect? source, Pos? target, BlendMode blend = BlendMode.srcOver}) → void
Blits, or copies with blending, the pixel data from a source buffer to this buffer.
inherited
clear([Rect? target]) → void
Clears the buffer to the PixelFormat.zero value.
inherited
clearUnsafe([Rect? target]) → void
Clears the buffer to the PixelFormat.zero value.
inherited
compare(Buffer<Float32x4> other, {double epsilon = 1e-10}) ComparisonResult<Float32x4>
Compares the buffer to another buffer and returns the result.
inherited
contains(Pos pos) bool
Returns whether the given position is within the bounds of the buffer.
inherited
copyFrom(Buffer<Float32x4> from, {Rect? source, Pos? target}) → void
Copies the pixel data from a source buffer to this buffer.
inherited
copyFromUnsafe(Buffer<Float32x4> from, {Rect? source, Pos? target}) → void
Copies the pixel data from a source buffer to this buffer.
inherited
fill(Float32x4 pixel, [Rect? target]) → void
Fill the buffer with the given pixel.
inherited
fillFrom(Iterable<Float32x4> pixels, [Rect? target]) → void
Fill the buffer with the given pixels.
inherited
fillFromUnsafe(Iterable<Float32x4> pixels, [Rect? target]) → void
Fill the buffer with the given pixels.
inherited
fillUnsafe(Float32x4 pixel, [Rect? target]) → void
Fill the buffer with the given pixel.
inherited
get(Pos pos) Float32x4
Returns the pixel at the given position.
inherited
getRect(Rect rect) Iterable<Float32x4>
Returns a lazy iterable of pixels in the rectangle defined by rect.
inherited
getRectUnsafe(Rect rect) Iterable<Float32x4>
Returns a lazy iterable of pixels in the rectangle defined by rect.
inherited
getUnsafe(Pos pos) Float32x4
Returns the pixel at the given position without bounds checking.
inherited
map(Float32x4 convert(Float32x4)) Buffer<Float32x4>
Returns a lazy buffer buffer that converts pixels with the given function.
inherited
mapConvert<R>(PixelFormat<R, void> format) Buffer<R>
Returns a lazy buffer that converts pixels to the given format.
inherited
mapIndexed(Float32x4 convert(Pos, Float32x4)) Buffer<Float32x4>
Returns a lazy buffer that converts pixels with the given function.
inherited
mapRect(Rect bounds) Buffer<Float32x4>
Returns a lazy buffer that clips the buffer to the given bounds.
inherited
mapScaled(int scale) Buffer<Float32x4>
Returns a lazy buffer that scales the buffer by the given factor.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(Pos pos, Float32x4 pixel) → void
Sets the pixel at the given position.
inherited
setUnsafe(Pos pos, Float32x4 pixel) → void
Sets the pixel at the given position without bounds checking.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited