Class UIImageRenderingMode


  • public final class UIImageRenderingMode
    extends java.lang.Object
    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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long AlwaysOriginal
      Always draw the original image, without treating it as a template
      static long AlwaysTemplate
      Always draw the image as a template image, ignoring its color information
      static long Automatic
      Use the default rendering mode for the context where the image is used
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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