예제 #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;
 }