C# Class Stampsy.ImageSource.ImageHelper

Datei anzeigen Open project: stampsy/Stampsy.ImageSource

Public Methods

Method Description
FromExifOrientation ( int o ) : UIImageOrientation
Measure ( CGImageSource source ) : Size?
Measure ( NSData data ) : Size?
Measure ( string file ) : Size?
Scale ( CGImage image, Rectangle drawRect, Size size ) : CGImage
ToExifOrientation ( UIImageOrientation o ) : int

Private Methods

Method Description
ApplyOrientation ( Size size, UIImageOrientation orientation ) : Size
NeedsRotate ( UIImageOrientation orientation ) : bool
ReadOrientation ( NSDictionary props ) : UIImageOrientation

Method Details

FromExifOrientation() public static method

public static FromExifOrientation ( int o ) : UIImageOrientation
o int
return UIImageOrientation

Measure() public static method

public static Measure ( CGImageSource source ) : Size?
source CGImageSource
return Size?

Measure() public static method

public static Measure ( NSData data ) : Size?
data NSData
return Size?

Measure() public static method

public static Measure ( string file ) : Size?
file string
return Size?

Scale() public static method

public static Scale ( CGImage image, Rectangle drawRect, Size size ) : CGImage
image CGImage
drawRect System.Drawing.Rectangle
size System.Drawing.Size
return CGImage

ToExifOrientation() public static method

public static ToExifOrientation ( UIImageOrientation o ) : int
o UIImageOrientation
return int