public CGImage CreateThumbnail(int index, CGImageThumbnailOptions options) { using (var dict = options == null ? null : options.ToDictionary()) { var ret = CGImageSourceCreateThumbnailAtIndex(handle, new IntPtr(index), dict == null ? IntPtr.Zero : dict.Handle); return(new CGImage(ret, true)); } }
public CGImage CreateThumbnail (int index, CGImageThumbnailOptions options) { using (var dict = options == null ? null : options.ToDictionary ()) { var ret = CGImageSourceCreateThumbnailAtIndex (handle, index, dict == null ? IntPtr.Zero : dict.Handle); return new CGImage (ret, true); } }