C# Class ImageApp.ImageOps

Datei anzeigen 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
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
imageToByteArray ( Image inImage ) : byte[]

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

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[]