Package com.google.gwt.resources.client
Annotation Type ImageResource.ImageOptions
- Enclosing interface:
ImageResource
Specifies additional options to control how an image is bundled.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
int
Set to a positive value to override the image's intrinsic height.boolean
Set totrue
to require the ImageResource to be downloaded as a separate resource at runtime.This option affects the image bundling optimization to allow the image to be used with theCssResource
@sprite
rule where repetition of the image is desired.int
Set to a positive value to override the image's intrinsic width.
-
Element Details
-
flipRtl
boolean flipRtlIftrue
, the image will be flipped about the y-axis whenLocaleInfo.isRTL()
returnstrue
. This is intended to be used by graphics that are sensitive to layout direction, such as arrows and disclosure indicators.- Default:
false
-
height
int heightSet to a positive value to override the image's intrinsic height. The image bundling code will scale the image to the desired height. If only one ofwidth
orheight
are set, the aspect ratio of the image will be maintained.- Default:
-1
-
preventInlining
boolean preventInliningSet totrue
to require the ImageResource to be downloaded as a separate resource at runtime. Specifically, this will disable the use ofdata:
URLs or other bundling optimizations for the image. This can be used for infrequently-displayed images.- Default:
false
-
repeatStyle
ImageResource.RepeatStyle repeatStyleThis option affects the image bundling optimization to allow the image to be used with theCssResource
@sprite
rule where repetition of the image is desired.- See Also:
- Default:
None
-
width
int widthSet to a positive value to override the image's intrinsic width. The image bundling code will scale the image to the desired width. If only one ofwidth
orheight
are set, the aspect ratio of the image will be maintained.- Default:
-1
-