0

私は Android が初めてで、キャンバスまたはビットマップでズームアウトおよびズームインしたいと考えています。私は描画アプリを作成しましたが、描画した画像をズームアウトおよびズームインしたいと考えています。誰でも私に提案できますか?

ズームしたい:

private Bitmap mBitmap;
private Canvas mCanvas;

「レイヤー描画」はどうやって作るの?

4

1 に答える 1

0

CanvasAPIを使用する

scale(float sx, float sy)
    Preconcat the current matrix with the specified scale.

drawBitmap(int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, Paint paint)
    Treat the specified array of colors as a bitmap, and draw it.
于 2012-09-19T09:02:41.723 に答える