getScale() Returns, whether the image content should be scaled to fit the complete image element
bounds.
public void
setKeepAspectRatio(Boolean keepAspectRatio) Defines whether the generated image element should preserve the original aspect ratio
of the image content during scaling.
public void
setScale(Boolean scale) Defines, whether the image content should be scaled to fit the complete image element
bounds.
Returns whether the generated image element should preserve the original aspect ratio
of the image content during scaling. This property has no effect if the image content
is not scaled.
the keep aspect ratio flag.
Returns, whether the image content should be scaled to fit the complete image element
bounds.
the scale flag of the image element.
setKeepAspectRatio
public void setKeepAspectRatio(Boolean keepAspectRatio)(Code)
Defines whether the generated image element should preserve the original aspect ratio
of the image content during scaling. This property has no effect if the image content
is not scaled.
Parameters: keepAspectRatio - whether to keep the aspect ratio of the image content duringthe scaling.