setProperty(_:withValue:)
Sets the specified property of the bitmap image representation to the specified value.
Declaration
func setProperty(_ property: NSBitmapImageRep.PropertyKey, withValue value: Any?)Parameters
- property:
A string constant used as a key for an image property. These properties are described in Propertykey.
- value:
A value specific to
property. Ifvalueisnil, the value of the property is cleared.
Discussion
The properties can affect how the image is read in and saved to file.