类库说明文档
JHZoomImageGenerateByBorder Method (Stream, Double, Double, Boolean, ImageFormat) |
根据指定容器边框生成缩放图
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( Stream stream, double borderWidth, double borderHeight, bool isEffectPriority, ImageFormat imageFormat )
Parameters
- stream
- Type: System.IOStream
源图像文件流 - borderWidth
- Type: SystemDouble
容器宽度(以像素为单位) - borderHeight
- Type: SystemDouble
容器高度(以像素为单位) - isEffectPriority
- Type: SystemBoolean
是否效果优先,True:按照源图像宽高比例缩放,可能无法完全填充容器;False:100% 填充容器,图像可能会变形 - imageFormat
- Type: System.Drawing.ImagingImageFormat
要生成的图像类型
Return Value
Type: Stream[Missing <returns> documentation for "M:DCSoft.Utility.Drawing.JHZoomImage.GenerateByBorder(System.IO.Stream,System.Double,System.Double,System.Boolean,System.Drawing.Imaging.ImageFormat)"]
See Also