public static CGImage CreateImageAtIndex(CGImageSource isrc, int index, NSDictionary options) { if (isrc == null) throw new ArgumentNullException ("isrc"); return new CGImage(CGImageSourceCreateImageAtIndex(isrc.Handle, index, options == null ? IntPtr.Zero : options.Handle)); }
public static CGImageSource CreateIncremental(CGImageOptions options) { var dict = options == null ? null : options.ToDictionary(); var ret = new CGImageSource(CGImageSourceCreateIncremental(dict == null ? IntPtr.Zero : dict.Handle), true); dict.Dispose(); return(ret); }
public void AddImage(CGImageSource source, int index, NSDictionary properties) { if (source == null) { throw new ArgumentNullException("source"); } CGImageDestinationAddImageFromSource(handle, source.Handle, (IntPtr)index, properties == null ? IntPtr.Zero : properties.Handle); }
public static CGImageSource FromDataProvider(CGDataProvider provider, CGImageOptions options) { if (provider == null) { throw new ArgumentNullException("provider"); } var dict = options == null ? null : options.ToDictionary(); var ret = new CGImageSource(CGImageSourceCreateWithDataProvider(provider.Handle, dict == null ? IntPtr.Zero : dict.Handle), true); dict.Dispose(); return(ret); }
public static CGImageSource FromData(NSData data, CGImageOptions options) { if (data == null) { throw new ArgumentNullException("data"); } var dict = options == null ? null : options.ToDictionary(); var ret = new CGImageSource(CGImageSourceCreateWithData(data.Handle, dict == null ? IntPtr.Zero : dict.Handle), true); dict.Dispose(); return(ret); }
public static CGImageSource FromUrl(NSUrl url, CGImageOptions options) { if (url == null) { throw new ArgumentNullException("url"); } var dict = options == null ? null : options.ToDictionary(); var ret = new CGImageSource(CGImageSourceCreateWithURL(url.Handle, dict == null ? IntPtr.Zero : dict.Handle), true); dict.Dispose(); return(ret); }
public void AddImage (CGImageSource source, int index, NSDictionary properties) { if (source == null) throw new ArgumentNullException ("source"); CGImageDestinationAddImageFromSource (Handle, source.Handle, (IntPtr) index, properties == null ? IntPtr.Zero : properties.Handle); }
public static CGImageSource FromUrl(NSUrl url, CGImageOptions options) { if (url == null) throw new ArgumentNullException ("url"); var dict = options == null ? null : options.ToDictionary (); var ret = new CGImageSource (CGImageSourceCreateWithURL (url.Handle, dict == null ? IntPtr.Zero : dict.Handle), true); dict.Dispose (); return ret; }
public static CGImageSource FromDataProvider(CGDataProvider provider, CGImageOptions options) { if (provider == null) throw new ArgumentNullException ("provider"); var dict = options == null ? null : options.ToDictionary (); var ret = new CGImageSource (CGImageSourceCreateWithDataProvider (provider.Handle, dict == null ? IntPtr.Zero : dict.Handle), true); dict.Dispose (); return ret; }
public static CGImageSource FromData(NSData data, CGImageOptions options) { if (data == null) throw new ArgumentNullException ("data"); var dict = options == null ? null : options.ToDictionary (); var ret = new CGImageSource (CGImageSourceCreateWithData (data.Handle, dict == null ? IntPtr.Zero : dict.Handle), true); dict.Dispose (); return ret; }
public static CGImageSource CreateIncremental(CGImageOptions options) { var dict = options == null ? null : options.ToDictionary (); var ret = new CGImageSource (CGImageSourceCreateIncremental (dict == null ? IntPtr.Zero : dict.Handle), true); dict.Dispose (); return ret; }