C# Class Images.ImageOps

显示文件 Open project: Azure/usql Class Usage Examples

Public Methods

Method Description
ConvertTiffToJpeg ( string fileName ) : string[]
GetByteArrayforImage ( Stream input ) : byte[]
getImageProperty ( byte inBytes, int propertyId ) : string
imageToByteArray ( Image inImage ) : byte[]
rotateImage ( byte inBytes, int rotateType ) : byte[]
scaleImageBy ( byte inBytes, float scaleFactor ) : byte[]
scaleImageTo ( byte inBytes, int outWidth, int outHeight ) : byte[]

Private Methods

Method Description
byteArrayToImage ( byte inBytes ) : StreamImage
drawImage ( Image inImage, Bitmap outImage, Rectangle region ) : void

Method Details

ConvertTiffToJpeg() public static method

public static ConvertTiffToJpeg ( string fileName ) : string[]
fileName string
return string[]

GetByteArrayforImage() public static method

public static GetByteArrayforImage ( Stream input ) : byte[]
input Stream
return byte[]

getImageProperty() public static method

public static getImageProperty ( byte inBytes, int propertyId ) : string
inBytes byte
propertyId int
return string

imageToByteArray() public static method

public static imageToByteArray ( Image inImage ) : byte[]
inImage Image
return byte[]

rotateImage() public static method

public static rotateImage ( byte inBytes, int rotateType ) : byte[]
inBytes byte
rotateType int
return byte[]

scaleImageBy() public static method

public static scaleImageBy ( byte inBytes, float scaleFactor ) : byte[]
inBytes byte
scaleFactor float
return byte[]

scaleImageTo() public static method

public static scaleImageTo ( byte inBytes, int outWidth, int outHeight ) : byte[]
inBytes byte
outWidth int
outHeight int
return byte[]