public void AddImage(CGImageSource source, int index, NSDictionary properties) { if (source == null) { throw new ArgumentNullException("source"); } CGImageDestinationAddImageFromSource(handle, source.Handle, index, properties == null ? IntPtr.Zero : properties.Handle); }
public bool CopyImageSource(CGImageSource image, NSDictionary options, out NSError error) { if (image == null) { throw new ArgumentNullException("image"); } IntPtr err; IntPtr o = options == null ? IntPtr.Zero : options.Handle; bool result = CGImageDestinationCopyImageSource(handle, image.Handle, o, out err); error = err == IntPtr.Zero ? null : new NSError(err); return(result); }
public void AddImage(CGImageSource source, int index, CGImageDestinationOptions options = null) { if (source == null) { throw new ArgumentNullException("source"); } var dict = options == null ? null : options.ToDictionary(); CGImageDestinationAddImageFromSource(handle, source.Handle, index, dict == null ? IntPtr.Zero : dict.Handle); if (dict != null) { dict.Dispose(); } }
public bool CopyImageSource(CGImageSource image, CGImageDestinationOptions options, out NSError error) #endif { NSDictionary o = null; if (options != null) { o = options.ToDictionary(); } try { return(CopyImageSource(image, o, out error)); } finally { if (options != null) { o.Dispose(); } } }
public bool CopyImageSource(CGImageSource image, CGCopyImageSourceOptions options, out NSError error)
public bool CopyImageSource (CGImageSource image, CGImageDestinationOptions options, out NSError error) #endif { NSDictionary o = null; if (options != null) o = options.ToDictionary (); try { return CopyImageSource (image, o, out error); } finally { if (options != null) o.Dispose (); } }
public bool CopyImageSource (CGImageSource image, CGCopyImageSourceOptions options, out NSError error)
public bool CopyImageSource (CGImageSource image, NSDictionary options, out NSError error) { if (image == null) throw new ArgumentNullException ("image"); IntPtr err; IntPtr o = options == null ? IntPtr.Zero : options.Handle; bool result = CGImageDestinationCopyImageSource (handle, image.Handle, o, out err); error = err == IntPtr.Zero ? null : new NSError (err); return result; }
public void AddImage (CGImageSource source, int index, NSDictionary properties) { if (source == null) throw new ArgumentNullException ("source"); CGImageDestinationAddImageFromSource (handle, source.Handle, index, properties == null ? IntPtr.Zero : properties.Handle); }
public void AddImage (CGImageSource source, int index, CGImageDestinationOptions options = null) { if (source == null) throw new ArgumentNullException ("source"); var dict = options == null ? null : options.ToDictionary (); CGImageDestinationAddImageFromSource (handle, source.Handle, index, dict == null ? IntPtr.Zero : dict.Handle); if (dict != null) dict.Dispose (); }