@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public static @interface ImageResource.ImageOptions
Modifier and Type | Optional Element and Description |
---|---|
boolean |
flipRtl
|
int |
height
Set to a positive value to override the image's intrinsic height.
|
boolean |
preventInlining
Set to
true to require the ImageResource to be downloaded as a
separate resource at runtime. |
ImageResource.RepeatStyle |
repeatStyle
This option affects the image bundling optimization to allow the image to
be used with the
CssResource @sprite rule where
repetition of the image is desired. |
int |
width
Set to a positive value to override the image's intrinsic width.
|
public abstract boolean flipRtl
true
, the image will be flipped about the y-axis when
LocaleInfo.isRTL()
returns
true
. This is intended to be used by graphics that are
sensitive to layout direction, such as arrows and disclosure indicators.public abstract int height
width
or height
are set, the aspect
ratio of the image will be maintained.public abstract boolean preventInlining
true
to require the ImageResource to be downloaded as a
separate resource at runtime. Specifically, this will disable the use of
data:
URLs or other bundling optimizations for the image. This
can be used for infrequently-displayed images.public abstract ImageResource.RepeatStyle repeatStyle
CssResource
@sprite
rule where
repetition of the image is desired.Copyright © 2018. All rights reserved.