CropHandler class
裁剪处理器 负责处理所有裁剪相关的逻辑
Constructors
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
-
captureHiResCroppedImage(
{required Rect cropRect, required Size canvasSize, required Image image, required double rotationAngle, required double scale}) → Future< Image?> - 执行高保真裁剪
-
clampRectToImageBounds(
{required Rect rect, required Rect imageBounds, required double rotationAngle, required Size canvasSize, required double scale, required Image image}) → Rect - 将裁剪框限制在旋转后图片的实际显示边界内 考虑旋转后图片边界是斜边的情况
-
getAspectRatio(
EditToolsMenu tool) → double? - 获取当前工具的宽高比
-
initializeCropRect(
{required Size canvasSize, required Rect imageBounds, double? aspectRatio}) → Rect - 初始化裁剪框
Constants
- handleTouchSize → const double
- handleVisualSize → const double
- minCropSize → const double