PngEncoder class

Instance of an encoder, which is used to hide texts in PNG images.


PngEncoder(File sourceImage, File targetImage)
Creates a new instance of the PngEncoder.


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
sourceImage File
is the base-image used for encoding. it will NOT be changed.
read / write
targetImage File
The target image, where the encoded result will be stored. Will be overwritten if existing.
read / write


decode() String
tries to decode targetImage and returns the String hidden in it.
encode(String text) → void
copies sourceImage to targetImage and encodes the String into the target.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
Returns a string representation of this object.


operator ==(Object other) bool
The equality operator. [...]

Static Properties

alphabet List<String>
The alphabet used. Contains the 65 Base64 symbols together with the '}' symbol as stopword.