ActionComponents  04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
UIKit.UIImage Class Reference

Simulates several features of an iOS UIImage to make porting UI code from iOS to Android easier. A UIImage can be implicitly converted to or from an Android Bitmap. NOTE: Only a small percentage of UIImage has ported to support the Action Components. More...

Public Member Functions

 UIImage ()
 Initializes a new instance of the T:UIKit.UIImage class. More...
 
 UIImage (Bitmap image)
 Initializes a new instance of the T:UIKit.UIImage class. More...
 
 UIImage (Android.Content.Res.Resources resources, int resourceID)
 Initializes a new instance of the T:UIKit.UIImage class. More...
 
void Draw (CGRect rect)
 Draws the image into the currently active canvas as specified in the global UIGraphics class. More...
 

Static Public Member Functions

static implicit operator Bitmap (UIImage image)
 Converts the UIImage to a Bitmap. More...
 
static implicit operator UIImage (Bitmap image)
 Converts the Bitmap to a UIImage. More...
 
static UIImage FromResources (Android.Content.Res.Resources resources, int resourceID)
 Loads the given image from the Resources > Drawable folder. More...
 

Properties

Bitmap Image [get, set]
 Gets or sets the image bitmap. More...
 
Paint ImagePaint = null [get, set]
 Gets or sets the default image paint used to draw the image. More...
 
CGSize Size = new Paint() [get]
 Gets the image size. More...
 

Detailed Description

Simulates several features of an iOS UIImage to make porting UI code from iOS to Android easier. A UIImage can be implicitly converted to or from an Android Bitmap. NOTE: Only a small percentage of UIImage has ported to support the Action Components.

Constructor & Destructor Documentation

UIKit.UIImage.UIImage ( )

Initializes a new instance of the T:UIKit.UIImage class.

Here is the caller graph for this function:

UIKit.UIImage.UIImage ( Bitmap  image)

Initializes a new instance of the T:UIKit.UIImage class.

Parameters
imageImage.
UIKit.UIImage.UIImage ( Android.Content.Res.Resources  resources,
int  resourceID 
)

Initializes a new instance of the T:UIKit.UIImage class.

Parameters
resourcesResources.
resourceIDResource identifier.

Member Function Documentation

void UIKit.UIImage.Draw ( CGRect  rect)

Draws the image into the currently active canvas as specified in the global UIGraphics class.

Parameters
rectThe location and size to draw the image.

Here is the caller graph for this function:

static UIImage UIKit.UIImage.FromResources ( Android.Content.Res.Resources  resources,
int  resourceID 
)
static

Loads the given image from the Resources > Drawable folder.

Returns
The requested UIImage.
Parameters
resourcesResources.
resourceIDResource identifier.

Here is the call graph for this function:

static implicit UIKit.UIImage.operator Bitmap ( UIImage  image)
static

Converts the UIImage to a Bitmap.

Returns
The implicitly converted Bitmap.
Parameters
imageImage.
static implicit UIKit.UIImage.operator UIImage ( Bitmap  image)
static

Converts the Bitmap to a UIImage.

Returns
The implicitly converted UIImage.
Parameters
imageImage.

Here is the call graph for this function:

Property Documentation

Bitmap UIKit.UIImage.Image
getset

Gets or sets the image bitmap.

The image bitmap.

Paint UIKit.UIImage.ImagePaint = null
getset

Gets or sets the default image paint used to draw the image.

The image paint.

CGSize UIKit.UIImage.Size = new Paint()
get

Gets the image size.

The size.