Telogis.GeoBase.Canvas.Shapes.Image |
Image inherits from Canvas.Shapes.AbstractShape.
Represents an image, as displayed in a Canvas renderer. This should not be constructed explicitly, but rather generated as the result of a call to Canvas.image.
Name | Description |
---|---|
Image(canvas) | Arguments
|
Name | Description |
---|---|
setSrc () | Sets the source for the image. Calling setSrc will set the size of the image if none was specified. |
Name | Type | Description |
---|---|---|
anchor | Point | The anchor point of the object. The coordinates of this point are proportions of the object's width and height, relative to its top-left corner. The default value, (0.5, 0.5), anchors the image at its center. |
height | Number | Sets the height of the image in pixels. |
point | Point | Either the pixel coordinates of the images's top left, relative to the upper-left corner of the canvas area, or a LatLon. |
width | Number | Sets the width of the image in pixels. |