示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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();
            }
        }
示例#4
0
        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();
                }
            }
        }
示例#5
0
 public bool CopyImageSource(CGImageSource image, CGCopyImageSourceOptions options, out NSError error)
示例#6
0
		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 ();
			}
		}
示例#7
0
		public bool CopyImageSource (CGImageSource image, CGCopyImageSourceOptions options, out NSError error)
示例#8
0
		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;
		}
示例#9
0
		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);
		}
示例#10
0
		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 ();
		}