PdfRaster class

Represents a bitmap image

Constructors

PdfRaster.new(int width, int height, Uint8List pixels)
Create a bitmap image
const

Properties

hashCode int
The hash code for this object.
no setterinherited
height int
The height of the image
final
pixels Uint8List
The raw RGBA pixels of the image
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
The width of the image
final

Methods

asImage() → Image
Returns the image as an Image object from the pub:image library
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toImage() Future<Image>
Decode RGBA raw image to dart:ui Image
toPng() Future<Uint8List>
Convert to a PNG image
toString() String
A string representation of this object.
override

Operators

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