Struct WritableRasterPlaneRow
A callback-scoped writable row view of a validated affine plane.
struct WritableRasterPlaneRow(T);
Methods
| Name | Description |
|---|---|
data
()
|
Returns the first sample of this callback-scoped writable row. |
Example
Example referring to the scoped writable-window operations.
import raster;
WritableRasterPlaneWindow!ubyte window;
static assert(is(typeof(window .load(0, 0)) == ubyte));
static assert(is(typeof(window .store(0, 0, cast(ubyte) 0)) == void));
Example
Example declaring a scoped writable window value.
import raster;
WritableRasterPlaneWindow!ubyte window;
assert(window .width == 0);
assert(window .height == 0);
Example
A writable strided row exposes direct callback-scoped storage access.
import raster;
ubyte[4] values = [1, 2, 3, 4];
auto row = WritableRasterPlaneRow!ubyte(values .ptr, 2, 2);
row .data[row .sampleStride] = 9;
assert(values[2] == 9);