MxImageUtil class

圖片工具

Constructors

MxImageUtil()

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

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

Static Methods

isImageAlphaExist(Uint8List imageBytes) bool
檢查是否有alpha通道
removeImageAlpha(Uint8List imageBytes) → Image
去除圖片的alpha通道
resizeImage(Uint8List imageBytes, int width, int height, {Color? backgroundColor, bool removeAlpha = true}) Uint8List
重新調整圖片大小 backgroundColor - 是否填補背景顏色 removeAlpha - 是否移除alpha通道