Inheritance: INativeObject, IDisposable
Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
        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);
        }
Exemplo n.º 7
0
		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);
		}
Exemplo n.º 8
0
        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;
        }
Exemplo n.º 9
0
        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;
        }
Exemplo n.º 10
0
        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;
        }
Exemplo n.º 11
0
 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;
 }