AbstractImage class abstract

abstract image

Implementers

Constructors

AbstractImage()

Properties

bytePerPixel int
no setter
hashCode int
The hash code for this object.
no setterinherited
height int
no setter
pixels List<int>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
no setter

Methods

clip(int newWidth, int newHeight, [int offsetX = 0, int offsetY = 0]) → void
copy() AbstractImage
drawRect(Rect rect, Color color) → void
getChannel(int x, int y, [ImageChannel? channel]) int
getChannelSafe(int x, int y, [int? defaultValue, ImageChannel? channel]) int
getColor(int x, int y) Color
getColorSafe(int x, int y, [Color? defaultColor = const Color(0x00ffffff)]) Color
getOffset(int x, int y) int
inverse() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resize(double ratio) → void
resizeTo(int newWidth, int newHeight) → void
rotate(double radian) → void
scaleDown(double scale) → void
use for zoom out an image
setChannel(int x, int y, int value, [ImageChannel? channel]) → void
setChannelSafe(int x, int y, int value, [ImageChannel? channel]) → void
setColor(int x, int y, Color color) → void
setColorSafe(int x, int y, Color color) → void
toString() String
A string representation of this object.
inherited

Operators

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