public struct ImageAdjustmentParam : IEquatable<ImageAdjustmentParam>
Contains parameters for image padding, scaling ratios and size information. Used for maintaining consistent image transformations across operations.
包含图像的填充量、缩放比例和尺寸信息等参数。 用于在各种图像操作中保持一致的变换处理。
var param = ImageAdjustmentParam.CreateFromImageInfo(
new Size(800, 600),
new Size(400, 300),
ImageResizeMode.Pad);
Rect adjustedRect = param.AdjustRect(originalRect);
ImageAdjustmentParam | Initializes a new instance of ImageAdjustmentParam 构造函数 |
Padding | Padding amounts for each side of the image (typically width/height) 图像各边的填充量(通常为宽/高) |
Ratio | Image scaling ratios (width/height) 图像的宽高比例调整系数 |
RowImgSize | Original image size before adjustment 调整前的原始图像尺寸 |
TargetImgSize | Target image size after adjustment 调整后的目标图像尺寸 |
AdjustPoint | Adjusts point coordinates using the current parameters 使用当前参数调整点坐标 |
AdjustRect | Adjusts rectangle coordinates using the current parameters 使用当前参数调整矩形坐标 |
AdjustRectF | Adjusts rectangle coordinates using the current parameters (floating-point precision) 使用当前参数调整矩形坐标(浮点精度) |
CreateFromImageInfo | Creates adjustment parameters from image specifications 根据图像信息创建调整参数 |
Deconstruct | Deconstruct method (supports pattern matching and deconstruction) 解构方法(支持模式匹配和解构赋值) |
Equals(ImageAdjustmentParam) | Indicates whether the current object is equal to another object of the same type 指示当前对象是否等于同一类型的另一个对象 |
Equals(Object) |
Determines whether the specified object is equal to the current object
确定指定对象是否等于当前对象
(重写 ValueTypeEquals(Object)) |
GetHashCode | Returns the hash code for this instance. (继承自 ValueType。) |
GetType | Gets the Type of the current instance. (继承自 Object。) |
ToString |
Returns a string that represents the current object
重写 ToString() 以便输出可读信息
(重写 ValueTypeToString) |
Equality(ImageAdjustmentParam, ImageAdjustmentParam) | Equality operator 相等运算符 |
Inequality(ImageAdjustmentParam, ImageAdjustmentParam) | Inequality operator 不等运算符 |