コード例 #1
0
 /** @since Available in iOS 7.0 and later. */
 public CGImagePropertyOrientation getOrientation() {
   if (has(Keys.DestinationOrientation())) {
     CFNumber val = get(Keys.DestinationOrientation(), CFNumber.class);
     return CGImagePropertyOrientation.valueOf(val.longValue());
   }
   return null;
 }
コード例 #2
0
 /** @since Available in iOS 7.0 and later. */
 public CGImageDestinationCopySourceOptions setOrientation(
     CGImagePropertyOrientation orientation) {
   set(Keys.DestinationOrientation(), CFNumber.valueOf(orientation.value()));
   return this;
 }