Package apple.uikit.enums
Class UIImageRenderingMode
- java.lang.Object
-
- apple.uikit.enums.UIImageRenderingMode
-
public final class UIImageRenderingMode extends java.lang.ObjectImages 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.
-
-
Field Summary
Fields Modifier and Type Field Description static longAlwaysOriginalAlways draw the original image, without treating it as a templatestatic longAlwaysTemplateAlways draw the image as a template image, ignoring its color informationstatic longAutomaticUse the default rendering mode for the context where the image is used
-
-
-
Field Detail
-
Automatic
public static final long Automatic
Use the default rendering mode for the context where the image is used- See Also:
- Constant Field Values
-
AlwaysOriginal
public static final long AlwaysOriginal
Always draw the original image, without treating it as a template- See Also:
- Constant Field Values
-
AlwaysTemplate
public static final long AlwaysTemplate
Always draw the image as a template image, ignoring its color information- See Also:
- Constant Field Values
-
-