コード例 #1
0
 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));
     }
 }
コード例 #2
0
		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);
			}
		}