类库说明文档
JHZoomImageGenerateByBorder Method (String, Double, Double, Boolean) |
根据指定容器边框生成缩放图
Namespace: DCSoft.Utility.Drawing
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static Stream GenerateByBorder( string fileName, double borderWidth, double borderHeight, bool isEffectPriority )
Parameters
- fileName
- Type: SystemString
图片文件完全限定名 - borderWidth
- Type: SystemDouble
容器宽度(以像素为单位) - borderHeight
- Type: SystemDouble
容器高度(以像素为单位) - isEffectPriority
- Type: SystemBoolean
是否效果优先,True:按照源图像宽高比例缩放,可能无法完全填充容器;False:100% 填充容器,图像可能会变形
Return Value
Type: Stream[Missing <returns> documentation for "M:DCSoft.Utility.Drawing.JHZoomImage.GenerateByBorder(System.String,System.Double,System.Double,System.Boolean)"]
See Also