コード例 #1
0
ファイル: AVVideoSettings.java プロジェクト: kxlcn/robovm
 /** @since Available in iOS 4.0 and later. */
 public AVVideoSettings setPixelAspectRatio(AVPixelAspectRatio pixelAspectRatio) {
   NSDictionary<NSString, NSObject> val = new NSMutableDictionary<>();
   val.put(AVPixelAspectRatio.HorizontalSpacing(), pixelAspectRatio.getHorizontalSpacing());
   val.put(AVPixelAspectRatio.VerticalSpacing(), pixelAspectRatio.getVerticalSpacing());
   set(Keys.PixelAspectRatio(), val);
   return this;
 }
コード例 #2
0
ファイル: AVVideoSettings.java プロジェクト: kxlcn/robovm
 /** @since Available in iOS 4.0 and later. */
 public AVPixelAspectRatio getPixelAspectRatio() {
   if (has(Keys.PixelAspectRatio())) {
     NSDictionary<NSString, NSObject> val =
         (NSDictionary<NSString, NSObject>) get(Keys.PixelAspectRatio());
     AVPixelAspectRatio result =
         new AVPixelAspectRatio(
             val.getLong(AVPixelAspectRatio.HorizontalSpacing(), 0),
             val.getLong(AVPixelAspectRatio.VerticalSpacing(), 0));
     return result;
   }
   return null;
 }