public void AddMenuItem(UIImage image, string title, Action action) { var mi = GetMethodInfo (action); var sel = GetUniqueSelector (); AddMenuItem (image, title, sel); Runtime.ConnectMethod (mi, sel); }
public UIBarButtonItem(UIImage image, UIBarButtonItemStyle style, EventHandler handler) : this(image, style, new Callback () , actionSel) { callback = (Callback) Target; callback.container = this; clicked += handler; MarkDirty (); }
UIImage[] GetImageArray(IntPtr handle) { using (var array = new NSArray (handle)) { var ret = new UIImage [array.Count]; for (uint i = 0; i < ret.Length; i++) { var obj = Runtime.GetNSObject (array.ValueAt (i)); var data = obj as NSData; UIImage img; if (data != null) { img = new UIImage (data); } else { img = (UIImage) obj; } ret [i] = img; } return ret; } }
public unsafe virtual void WriteImageToSavedPhotosAlbum(UIImage imageData, ALAssetOrientation orientation, ALAssetsLibraryWriteCompletionDelegate completionBlock) { WriteImageToSavedPhotosAlbum (imageData.CGImage, orientation, completionBlock); }
public unsafe virtual void WriteImageToSavedPhotosAlbum(UIImage imageData, NSDictionary metadata, ALAssetsLibraryWriteCompletionDelegate completionBlock) { WriteImageToSavedPhotosAlbum (imageData.CGImage, metadata, completionBlock); }
public void Callback(UIImage image, NSError err, IntPtr ctx) { status (image, err); DangerousRelease (); }
public UIImageStatusDispatcher(UIImage.SaveStatus status) { IsDirectBinding = false; this.status = status; DangerousRetain (); }
public static UIImage CreateAnimatedImage(UIImage [] images, UIEdgeInsets capInsets, double duration) { return null; }