Image
Represents an image (see example).
Definition
Package:@progress/kendo-drawing
Methods
Returns the bounding box of the element with applied transformations.
An optional parent transformation to apply when calculating the bounding box.
Returns:- The bounding box of the element with transformations applied.
Gets the class attribute of the element. The class will be rendered only for SVG output.
string
the value of the class attribute of the element.
Sets the class attribute of the element. The class will be rendered only for SVG output.
The value of the class attribute.
Sets the clipping path for this element. The Path instance will be monitored for changes. Can be replaced by calling the clip method.
The following example demonstrates how to set a clipping path on a Circle.
The following example demonstrates how to clear a clipping path.
The element clipping path.
Returns the bounding box of the element with clipping and transformations applied. This is the rectangle that will fit around the actual rendered element.
An optional parent transformation to apply when calculating the bounding box.
Returns:- The bounding box of the element with clipping and transformations applied.
Returns true if the shape contains the specified point.
The point that should be checked.
Returns:boolean
value indicating if the shape contains the point.
Gets the element opacity.
number
The current element opacity.
Sets the opacity of the element.
The element opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).
Returns the bounding box of the element geometry without transformations, clipping, or stroke expansion applied.
- The raw bounding box of the element.
Gets the rectangle which defines the position and size of the image.
- The rectangle which defines the position and size of the image.
Sets the rectangle which defines the position and size of the image.
The rectangle which defines the position and size of the image.
Gets the source URL of the image.
string
- The source URL of the image.
Sets the source URL of the image.
The source URL of the image.
Gets the transformation of the element.
- The current transformation on the element.
Sets the transformation of the element.
The transformation to apply to the element.
Gets the visibility of the element.
boolean
true if the element is visible. Otherwise, returns false.
Sets the visibility of the element.
A flag which indicates if the element will be visible.
Properties
The configuration of this element.