Class: GraphicImage

GraphicImage()

new GraphicImage()

Source:

Methods

(async, static) createObj() → {Promise.<GraphicImage>}

构造一个新的 GraphicImage 对象。
Source:
Returns:
Type
Promise.<GraphicImage>

(async, static) getAlpha() → {Promise.<Number>}

获取透明度
Source:
Returns:
Type
Promise.<Number>

(async, static) getAnchorPoint() → {Promise.<PointF>}

获取锚点
Source:
Returns:
Type
Promise.<PointF>

(async, static) getImage() → {Promise.<Image>}

获取图片
Source:
Returns:
Type
Promise.<Image>

(async, static) getImageHeight() → {Promise.<Number>}

获取图片高度
Source:
Returns:
Type
Promise.<Number>

(async, static) getImageWidth() → {Promise.<Number>}

获取图片宽度
Source:
Returns:
Type
Promise.<Number>

(async, static) getPoint() → {Promise.<Dot>}

获取位置
Source:
Returns:
Type
Promise.<Dot>

(async, static) getRotateAngle() → {Promise.<Number>}

获取旋转角度
Source:
Returns:
Type
Promise.<Number>

(async, static) isSlope() → {Promise.<boolean>}

获取是否随地图倾斜
Source:
Returns:
Type
Promise.<boolean>

(async, static) setAlpha(alpha) → {Promise.<void>}

设置透明度
Parameters:
Name Type Description
alpha Number 透明度:0(透明)-255(不透明)
Source:
Returns:
Type
Promise.<void>

(async, static) setAnchorPoint(anchorPoint) → {Promise.<void>}

设置锚点
Parameters:
Name Type Description
anchorPoint PointF 图片锚点的位置:左下角为(0,0),右上角为(1,1)
Source:
Returns:
Type
Promise.<void>

(async, static) setImage(image) → {Promise.<void>}

设置图片
Parameters:
Name Type Description
image Image
Source:
Returns:
Type
Promise.<void>

(async, static) setImageByFilePath(filePath) → {Promise.<void>}

通过文件路径设置图片
Parameters:
Name Type Description
filePath String
Source:
Returns:
Type
Promise.<void>

(async, static) setPoint(point) → {Promise.<void>}

设置位置
Parameters:
Name Type Description
point Dot
Source:
Returns:
Type
Promise.<void>

(async, static) setRotateAngle(rotateAngle) → {Promise.<void>}

设置旋转角度
Parameters:
Name Type Description
rotateAngle Number
Source:
Returns:
Type
Promise.<void>

(async, static) setSlope(IsSlope) → {Promise.<void>}

设置是否随地图倾斜
Parameters:
Name Type Description
IsSlope Boolean
Source:
Returns:
Type
Promise.<void>