public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CGImageProperties set(CFString key, NativeObject value) {
/** * @since Available in iOS 4.0 and later. */ public CFDictionary getMakerOlympusData() { if (has(Keys.MakerOlympusDictionary())) { CFDictionary val = get(Keys.MakerOlympusDictionary(), CFDictionary.class); return val; } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CGImagePropertyTIFFData getTIFFData() { if (has(Keys.TIFFDictionary())) { CFDictionary val = get(Keys.TIFFDictionary(), CFDictionary.class); return new CGImagePropertyTIFFData(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CGImagePropertyPNGData getPNGData() { if (has(Keys.PNGDictionary())) { CFDictionary val = get(Keys.PNGDictionary(), CFDictionary.class); return new CGImagePropertyPNGData(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CGImagePropertyGIFData getGIFData() { if (has(Keys.GIFDictionary())) { CFDictionary val = get(Keys.GIFDictionary(), CFDictionary.class); return new CGImagePropertyGIFData(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CGImagePropertyJFIFData getJFIFData() { if (has(Keys.JFIFDictionary())) { CFDictionary val = get(Keys.JFIFDictionary(), CFDictionary.class); return new CGImagePropertyJFIFData(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CGImagePropertyExifData getExifData() { if (has(Keys.ExifDictionary())) { CFDictionary val = get(Keys.ExifDictionary(), CFDictionary.class); return new CGImagePropertyExifData(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public long getPixelHeight() { if (has(Keys.PixelHeight())) { CFNumber val = get(Keys.PixelHeight(), CFNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public long getDPIWidth() { if (has(Keys.DPIWidth())) { CFNumber val = get(Keys.DPIWidth(), CFNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean isIndexed() { if (has(Keys.IsIndexed())) { CFBoolean val = get(Keys.IsIndexed(), CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 4.0 and later. */ public CGImagePropertyIPTCData getIPTCData() { if (has(Keys.IPTCDictionary())) { CFDictionary val = get(Keys.IPTCDictionary(), CFDictionary.class); return new CGImagePropertyIPTCData(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CGImagePropertyCIFFData getCIFFData() { if (has(Keys.CIFFDictionary())) { CFDictionary val = get(Keys.CIFFDictionary(), CFDictionary.class); return new CGImagePropertyCIFFData(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CGImagePropertyDNGData getDNGData() { if (has(Keys.DNGDictionary())) { CFDictionary val = get(Keys.DNGDictionary(), CFDictionary.class); return new CGImagePropertyDNGData(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CGImagePropertyExifAuxData getExifAuxData() { if (has(Keys.ExifAuxDictionary())) { CFDictionary val = get(Keys.ExifAuxDictionary(), CFDictionary.class); return new CGImagePropertyExifAuxData(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public long getPixelWidth() { if (has(Keys.PixelWidth())) { CFNumber val = get(Keys.PixelWidth(), CFNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public int getDepth() { if (has(Keys.Depth())) { CFNumber val = get(Keys.Depth(), CFNumber.class); return val.intValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean hasAlphaChannel() { if (has(Keys.HasAlpha())) { CFBoolean val = get(Keys.HasAlpha(), CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 4.0 and later. */ public CGImagePropertyCanonData getMakerCanonData() { if (has(Keys.MakerCanonDictionary())) { CFDictionary val = get(Keys.MakerCanonDictionary(), CFDictionary.class); return new CGImagePropertyCanonData(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CGImagePropertyColorModel getColorModel() { if (has(Keys.ColorModel())) { CFString val = get(Keys.ColorModel(), CFString.class); return CGImagePropertyColorModel.valueOf(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CGImagePropertyOrientation getOrientation() { if (has(Keys.Orientation())) { CFNumber val = get(Keys.Orientation(), CFNumber.class); return CGImagePropertyOrientation.valueOf(val.longValue()); } return null; } /**