UIImageRenderingMode enum

Images are created with UIImageRenderingModeAutomatic by default. An image with this mode is interpreted as a template image or an original image based on the context in which it is rendered. For example, navigation bars, tab bars, toolbars, and segmented controls automatically treat their foreground images as templates, while image views and web views treat their images as originals. You can use UIImageRenderingModeAlwaysTemplate to force your image to always be rendered as a template or UIImageRenderingModeAlwaysOriginal to force your image to always be rendered as an original.

Inheritance
Available extensions

Values

UIImageRenderingModeAutomatic → const UIImageRenderingMode

Use the default rendering mode for the context where the image is used

const UIImageRenderingMode(0)
UIImageRenderingModeAlwaysOriginal → const UIImageRenderingMode

Always draw the original image, without treating it as a template

const UIImageRenderingMode(1)
UIImageRenderingModeAlwaysTemplate → const UIImageRenderingMode

Always draw the image as a template image, ignoring its color information

const UIImageRenderingMode(2)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromValue(int value) UIImageRenderingMode

Constants

values → const List<UIImageRenderingMode>
A constant List of the values in this enum, in order of their declaration.