BitmapStyle class

位图样式属性

Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

BitmapStyle(BitmapFormat bitmapFormat)
JsonSerializable不能使用私有构造
BitmapStyle.fromJson(Map<String, dynamic> json)
factory

Properties

bitmapFormat BitmapFormat
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

format() BitmapFormat
获取当前的格式对象
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAlgorithm(ImageAlgorithm algorithm) BitmapStyle
设置渲染图片方式
setAlign(Align align) BitmapStyle
设置基于一行的对齐方式
setHeight(int height) BitmapStyle
设置自定义高度
setPosX(int offset) BitmapStyle
设置相对前部分内容的位置(X坐标)
setPosY(int offset) BitmapStyle
设置图片内容的Y坐标
setValue(int value) BitmapStyle
设置算法浮动值
setWidth(int width) BitmapStyle
设置自定义宽度
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getStyle() BitmapStyle
返回当前设置的样式属性对象