NonogramImages class
Converts between PNG artwork and logical puzzle grids.
Constructors
- NonogramImages()
-
Creates PNG artwork adapters.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decodePng(
Uint8List bytes, {bool isForeground(int argb)?}) → PuzzleArtwork -
Decodes PNG cells; fully opaque non-white pixels are foreground by default.
Supply
isForegroundto use opaque white ink or a different artwork mask. -
encodeArtwork(
PuzzleArtwork artwork) → Uint8List - Returns the original PNG when available, otherwise renders the mask.
-
encodePng(
SolutionGrid solution, {Palette palette = Palette.monochrome}) → Uint8List - Renders a logical grid as one PNG pixel per cell.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited