|
◆ drawBitmap()
bool GiShapeAdapter::drawBitmap |
( |
const char * |
name, |
|
|
float |
xc, |
|
|
float |
yc, |
|
|
float |
w, |
|
|
float |
h, |
|
|
float |
angle |
|
) |
| |
|
virtual |
Draw a image whose center will at (xc, yc).
- 参数
-
name | The image's identify which is usually a filename without path. |
xc | The center X position of the image. |
yc | The center Y position of the image. |
w | Display width of the image. |
h | Display height of the image. |
angle | Rotate angle in radians, it's positive direction is CCW in the world coordinate system. |
- 返回
- true if successful
实现了 GiCanvas.
|