20. 图像处理

20.1. BarCode2D

函数体: BarCode2D(string info,string displayName)

返回值:Byte[]

说明:根据信息生成二维码图片。

函数体: BarCode2D(string info,string displayName,string LogoImage)

返回值:Byte[]

说明:根据信息生成二维码图片。

函数体: BarCode2D(string info,string displayName,string LogoImage,int FontSize)

返回值:Byte[]

说明:根据信息生成二维码图片。

20.2. ColumnBppCount

函数体: ColumnBppCount(Byte[] Image)

返回值:String

说明:将图像二值化,返回每一列的有值像数个数。

函数体: ColumnBppCount(Byte[] Image, Int step)

返回值:String

说明:将图像二值化,并进行平滑处理,返回每一列的有值像数个数;step指定平滑步长。

20.3. GetImageExif

函数体: GetImageExif(string Image)

返回值:String

说明:获取图像的描述信息。

函数体: GetImageExif(string Image,string tagName)

返回值:String

说明:获取图像的描述信息。

20.4. ImageAddDesc

函数体: ImageAddDesc(Byte[] Image,string)

返回值:Byte[]

说明:在图片上添加一段文字。

20.5. ImageClone

函数体: ImageClone(Byte[] Image,int left, int top, int right, int bottom)

返回值:Byte[]

说明:复制指定区域内的图像内容。

20.6. ImageFlipX

函数体: ImageFlipX(Byte[] SourceImage)

返回值:Byte[]

说明:图像水平翻转。

20.7. ImageFlipY

函数体: ImageFlipY(Byte[] SourceImage)

返回值:Byte[]

说明:图像垂直翻转。

20.8. ImageInfo

函数体: ImageInfo(Byte[] Image)

返回值:String

说明:获取图像的基本信息,输出信息Width,Height,HorizontalResolution,VerticalResolution。

20.9. ImageRotate

函数体: ImageRotate(Byte[] SourceImage,double Angle)

返回值:Byte[]

说明:图像旋转Angle度;Angle为角度(-360~360),正值为顺时针旋转,负值为逆时针旋转。

20.10. ImageToGray

函数体: ImageToGray(Byte[] Image)

返回值:Byte[]

说明:图像二值化。

20.11. JPG

函数体: JPG(Byte[] SourceImage)

返回值:Byte[]

说明:将图片压缩成JPG格式

函数体: JPG(Byte[] SourceImage,int Quality)

返回值:Byte[]

说明:将图片压缩成JPG格式;Quality为压缩图像质量(0~100)。

函数体: JPG(Byte[] SourceImage,int Quality,int MaxWidth)

返回值:Byte[]

说明:将图片压缩成JPG格式;Quality为压缩图像质量(0~100),MaxWidth为最大宽度。

20.12. RowBppCount

函数体: RowBppCount(Byte[] Image)

返回值:String

说明:将图像二值化,返回每一行的有值像数个数。

函数体: RowBppCount(Byte[] Image, Int step)

返回值:String

说明:将图像二值化,并进行平滑处理,返回每一行的有值像数个数;step指定平滑步长。