PsPatternChannel class final

One decoded or preserved virtual-memory channel from a Photoshop pattern.

Constructors

PsPatternChannel({required int primaryDepth, required int depth, required PsRectangle bounds, required PsPatternCompression compression, required int compressionCode, required Uint8List encodedData, required Uint8List? decodedData, required Uint8List trailingData})
Creates an immutable decoded or preserved channel.

Properties

bounds PsRectangle
Source-space rectangle covered by this channel.
final
compression PsPatternCompression
Known interpretation of compressionCode.
final
compressionCode int
Original numeric compression marker.
final
decodedData Uint8List?
Row-major uncompressed bytes, or null when decoding was disabled or unsupported.
final
depth int
Second depth value used to lay out channel samples.
final
encodedData Uint8List
Original bytes following the fixed 23-byte channel header.
final
hashCode int
The hash code for this object.
no setterinherited
primaryDepth int
First depth value stored at the beginning of the channel header.
final
rowBytes int
Number of bytes used by one decoded row.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trailingData Uint8List
Bytes remaining after the recognized raw samples or PackBits rows.
final

Methods

byteSampleAt({required int x, required int y, int fallback = 0}) int
Returns a sample normalized to an unsigned byte, or fallback when unavailable.
normalizedSampleAt({required int x, required int y, double fallback = 0}) double
Returns a sample normalized to the range 0–1, or fallback when unavailable.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sampleAt({required int x, required int y}) num?
Returns the exact stored sample at source coordinate x, y.
toString() String
A string representation of this object.
inherited

Operators

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