C# Class Moxiecode.Com.Image

Show file Open project: openHPI/moodle-mod_teletask

Public Properties

Property Type Description
dispatches string[]
meta object>.Dictionary
name string
size long
type string
width int

Public Methods

Method Description
destroy ( ) : void
downsize ( object width, object height, object crop, object preserveHeaders ) : void
getAsBlob ( object type, object quality ) : object>.Dictionary
getAsByteArray ( ) : byte[]
getAsEncodedStream ( string type = null, int quality = 90 ) : MemoryStream
getAsStream ( Stream stream ) : void
getAsWriteableBitmap ( ) : System.Windows.Media.Imaging.WriteableBitmap
getInfo ( ) : object>.Dictionary
loadFromBlob ( object blob ) : void
loadFromByteArray ( byte buffer ) : void
loadFromImage ( object source ) : void
loadFromStream ( Stream stream ) : void

Private Methods

Method Description
_getAsBlob ( string type = "image/jpeg", int quality = 90 ) : object>.Dictionary
_rotateToOrientation ( System.Windows.Media.TransformGroup tg, int orientation, int width, int height ) : void

Method Details

destroy() public method

public destroy ( ) : void
return void

downsize() public method

public downsize ( object width, object height, object crop, object preserveHeaders ) : void
width object
height object
crop object
preserveHeaders object
return void

getAsBlob() public method

public getAsBlob ( object type, object quality ) : object>.Dictionary
type object
quality object
return object>.Dictionary

getAsByteArray() public method

public getAsByteArray ( ) : byte[]
return byte[]

getAsEncodedStream() public method

public getAsEncodedStream ( string type = null, int quality = 90 ) : MemoryStream
type string
quality int
return System.IO.MemoryStream

getAsStream() public method

public getAsStream ( Stream stream ) : void
stream Stream
return void

getAsWriteableBitmap() public method

public getAsWriteableBitmap ( ) : System.Windows.Media.Imaging.WriteableBitmap
return System.Windows.Media.Imaging.WriteableBitmap

getInfo() public method

public getInfo ( ) : object>.Dictionary
return object>.Dictionary

loadFromBlob() public method

public loadFromBlob ( object blob ) : void
blob object
return void

loadFromByteArray() public method

public loadFromByteArray ( byte buffer ) : void
buffer byte
return void

loadFromImage() public method

public loadFromImage ( object source ) : void
source object
return void

loadFromStream() public method

public loadFromStream ( Stream stream ) : void
stream Stream
return void

Property Details

dispatches public static property

public static string[] dispatches
return string[]

meta public property

public Dictionary meta
return object>.Dictionary

name public property

public string name
return string

size public property

public long size
return long

type public property

public string type
return string

width public property

public int width
return int