안드로이드 개발 질문/답변
(글 수 45,052)
2인용 게임을 만들려고 하는데 화면을 반으로 나누어서
위에는 자신, 아래는 상대방, 이렇게 따로 출력을 하고 싶습니다.
방법을 아시는 분은 답변 부탁드립니다.
그리고 APIDemo, graphic에 있는 PolyToPoly 완전히 이해하신분
계신가요? 정확히 어떻게 적용되는 것인지 감이 안오네요.
위에는 자신, 아래는 상대방, 이렇게 따로 출력을 하고 싶습니다.
방법을 아시는 분은 답변 부탁드립니다.
그리고 APIDemo, graphic에 있는 PolyToPoly 완전히 이해하신분
계신가요? 정확히 어떻게 적용되는 것인지 감이 안오네요.
2010.01.12 09:33:50
boolean
android.graphics.Matrix.setPolyToPoly(float[]
src, int srcIndex, float[] dst, int dstIndex, int pointCount)
해석은 다음분이...
public boolean setPolyToPoly (float[] src, int srcIndex, float[] dst, int dstIndex, int pointCount)
Since: API Level 1
Set the matrix such that the specified src points would map to the specified dst points. The "points" are represented as an array of floats, order [x0, y0, x1, y1, ...], where each "point" is 2 float values.
Parameters
src | The array of src [x,y] pairs (points) |
---|---|
srcIndex | Index of the first pair of src values |
dst | The array of dst [x,y] pairs (points) |
dstIndex | Index of the first pair of dst values |
pointCount | The number of pairs/points to be used. Must be [0..4] |
Returns
- true if the matrix was set to the specified transformation
해석은 다음분이...
농담이거 아시죠 ^^;
답변은 다음분이...