Click or drag to resize

Telogis.GeoBase.Canvas.Shapes.Image

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Image Class

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.

Constructor
NameDescription
Image(canvas)

Arguments

Functions
NameDescription
setSrc ()

Sets the source for the image. Calling setSrc will set the size of the image if none was specified.

Properties
NameTypeDescription
anchorPoint

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.

heightNumber

Sets the height of the image in pixels.

pointPoint

Either the pixel coordinates of the images's top left, relative to the upper-left corner of the canvas area, or a LatLon.

widthNumber

Sets the width of the image in pixels.