JHZoomImage.GenerateByBorder Method (Byte[], Double, Double, Boolean, ImageFormat)

DCSoft.DBUtilityGeneric

JHZoomImageGenerateByBorder Method (Byte, 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(
	byte[] bytes,
	double borderWidth,
	double borderHeight,
	bool isEffectPriority,
	ImageFormat imageFormat
)

Parameters

bytes
Type: SystemByte
二进制数组
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.Byte[],System.Double,System.Double,System.Boolean,System.Drawing.Imaging.ImageFormat)"]

See Also