value(forProperty:)
Returns the value for the specified property.
Declaration
func value(forProperty property: NSBitmapImageRep.PropertyKey) -> Any?Parameters
- property:
A string constant used as a key for an image property. These properties are described in Propertykey.
Return Value
A value specific to property, or nil if the property is not set for the bitmap.
Discussion
Image properties can affect how an image is read in and saved to file. When retrieving the bitmap image properties defined in NSBitmapImageRep.PropertyKey, be sure to check the return value of this method for a nil value. If a particular value is not set for the image, this method may return nil.