示例#1
0
 public void AddMenuItem(UIImage image, string title, Action action)
 {
     var mi = GetMethodInfo (action);
     var sel = GetUniqueSelector ();
     AddMenuItem (image, title, sel);
     Runtime.ConnectMethod (mi, sel);
 }
示例#2
0
 public UIBarButtonItem(UIImage image, UIBarButtonItemStyle style, EventHandler handler)
     : this(image, style, new Callback () , actionSel)
 {
     callback = (Callback) Target;
     callback.container = this;
     clicked += handler;
     MarkDirty ();
 }
示例#3
0
        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;
            }
        }
示例#4
0
 public unsafe virtual void WriteImageToSavedPhotosAlbum(UIImage imageData, ALAssetOrientation orientation, ALAssetsLibraryWriteCompletionDelegate completionBlock)
 {
     WriteImageToSavedPhotosAlbum (imageData.CGImage, orientation, completionBlock);
 }
示例#5
0
 public unsafe virtual void WriteImageToSavedPhotosAlbum(UIImage imageData, NSDictionary metadata, ALAssetsLibraryWriteCompletionDelegate completionBlock)
 {
     WriteImageToSavedPhotosAlbum (imageData.CGImage, metadata, completionBlock);
 }
示例#6
0
 public void Callback(UIImage image, NSError err, IntPtr ctx)
 {
     status (image, err);
     DangerousRelease ();
 }
示例#7
0
 public UIImageStatusDispatcher(UIImage.SaveStatus status)
 {
     IsDirectBinding = false;
     this.status = status;
     DangerousRetain ();
 }
示例#8
0
 public static UIImage CreateAnimatedImage(UIImage [] images, UIEdgeInsets capInsets, double duration)
 {
     return null;
 }