Пример #1
0
 /** @since Available in iOS 6.0 and later. */
 public double getMinFeatureSize() {
   if (has(Keys.MinFeatureSize())) {
     NSNumber val = (NSNumber) get(Keys.MinFeatureSize());
     return val.doubleValue();
   }
   return 0;
 }
Пример #2
0
 /** @since Available in iOS 8.0 and later. */
 public boolean requestsLowPriority() {
   if (has(Keys.PriorityRequestLow())) {
     NSNumber val = (NSNumber) get(Keys.PriorityRequestLow());
     return val.booleanValue();
   }
   return false;
 }
Пример #3
0
 public boolean usesSoftwareRenderer() {
   if (has(Keys.UseSoftwareRenderer())) {
     NSNumber val = (NSNumber) get(Keys.UseSoftwareRenderer());
     return val.booleanValue();
   }
   return false;
 }
Пример #4
0
 /** @since Available in iOS 8.0 and later. */
 public CIFormat getWorkingFormat() {
   if (has(Keys.WorkingFormat())) {
     NSNumber val = (NSNumber) get(Keys.WorkingFormat());
     return CIFormat.valueOf(val.intValue());
   }
   return null;
 }
Пример #5
0
 public CGColorSpace getWorkingColorSpace() {
   if (has(Keys.WorkingColorSpace())) {
     CGColorSpace val = get(Keys.WorkingColorSpace()).as(CGColorSpace.class);
     return val;
   }
   return null;
 }
Пример #6
0
 public CGColorSpace getOutputColorSpace() {
   if (has(Keys.OutputColorSpace())) {
     CGColorSpace val = get(Keys.OutputColorSpace()).as(CGColorSpace.class);
     return val;
   }
   return null;
 }
Пример #7
0
 /** @since Available in iOS 6.0 and later. */
 public boolean isTracking() {
   if (has(Keys.Tracking())) {
     NSNumber val = (NSNumber) get(Keys.Tracking());
     return val.booleanValue();
   }
   return false;
 }
Пример #8
0
 /** @since Available in iOS 5.0 and later. */
 public CIDetectorAccuracy getAccuracy() {
   if (has(Keys.Accuracy())) {
     NSString val = (NSString) get(Keys.Accuracy());
     return CIDetectorAccuracy.valueOf(val);
   }
   return null;
 }
Пример #9
0
 /** @since Available in iOS 8.0 and later. */
 public CIContextOptions setRequestsLowPriority(boolean requestsLowPriority) {
   set(Keys.PriorityRequestLow(), NSNumber.valueOf(requestsLowPriority));
   return this;
 }
Пример #10
0
 public CIContextOptions setUsesSoftwareRenderer(boolean usesSoftwareRenderer) {
   set(Keys.UseSoftwareRenderer(), NSNumber.valueOf(usesSoftwareRenderer));
   return this;
 }
Пример #11
0
 /** @since Available in iOS 8.0 and later. */
 public CIContextOptions setWorkingFormat(CIFormat workingFormat) {
   set(Keys.WorkingFormat(), NSNumber.valueOf(workingFormat.value()));
   return this;
 }
Пример #12
0
 public CIContextOptions setWorkingColorSpace(CGColorSpace workingColorSpace) {
   set(Keys.WorkingColorSpace(), workingColorSpace.as(NSObject.class));
   return this;
 }
Пример #13
0
 public CIContextOptions setOutputColorSpace(CGColorSpace outputColorSpace) {
   set(Keys.OutputColorSpace(), outputColorSpace.as(NSObject.class));
   return this;
 }
Пример #14
0
 /** @since Available in iOS 6.0 and later. */
 public CIDetectorOptions setMinFeatureSize(double minFeatureSize) {
   set(Keys.MinFeatureSize(), NSNumber.valueOf(minFeatureSize));
   return this;
 }
Пример #15
0
 /** @since Available in iOS 6.0 and later. */
 public CIDetectorOptions setTracking(boolean tracking) {
   set(Keys.Tracking(), NSNumber.valueOf(tracking));
   return this;
 }
Пример #16
0
 /** @since Available in iOS 5.0 and later. */
 public CIDetectorOptions setAccuracy(CIDetectorAccuracy accuracy) {
   set(Keys.Accuracy(), accuracy.value());
   return this;
 }