ScaleMode enum

视频帧缩放模式,可设置缩放以适应视窗。

Inheritance

Constructors

ScaleMode()
const

Values

auto → const ScaleMode

自动模式,默认值为 stretch

stretch → const ScaleMode

对视频帧进行缩放,直至视频帧和视窗分辨率一致为止。这一过程不保证等比缩放。

fitWithCropping → const ScaleMode

视窗填满优先。

视频帧等比缩放,直至视窗被视频填满。如果视频帧长宽比例与视窗不同,视频帧的多出部分将无法显示。
缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长大于等于视窗对应边长。

fitWithFilling → const ScaleMode

视频帧内容全部显示优先。

视频帧等比缩放,直至视频帧能够在视窗上全部显示。如果视频帧长宽比例与视窗不同,视窗上未被视频帧填满区域将被涂黑。
缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长小于等于视窗对应边长。

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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

Constants

values → const List<ScaleMode>
A constant List of the values in this enum, in order of their declaration.