분류 | 게시판 |
베스트 |
|
유머 |
|
이야기 |
|
이슈 |
|
생활 |
|
취미 |
|
학술 |
|
방송연예 |
|
방송프로그램 |
|
디지털 |
|
스포츠 |
|
야구팀 |
|
게임1 |
|
게임2 |
|
기타 |
|
운영 |
|
임시게시판 |
|
@Override
public void surfaceCreated(SurfaceHolder holder) {
android.graphics.Canvas c = null;
try
{
c = getHolder().lockCanvas(null);
synchronized(getHolder())
{
Resources res = getResources();
BitmapDrawable bd = (BitmapDrawable)res.getDrawable(R.mipmap.bg1);
Bitmap bit = bd.getBitmap();
BitmapDrawable spead_button00 = (BitmapDrawable)res.getDrawable(R.mipmap.spead);
Bitmap spead_button = spead_button00.getBitmap();
c.drawBitmap(bit, null, new Rect(BGx, BGy, 100, 100), null);
c.drawBitmap(spead_button, null, new Rect(100, 300, 200, 200), null);
}
}
finally
{
if(c != null) getHolder().unlockCanvasAndPost(c);
}
분명 방법이 있을탠대 bg1 이미지만 나오고 어떻게 해야할지 모르겠내요 ㄷ;
그리는 순서를 바꿔봐도 bg1만 출력되는걸 봐서 뭔가가 잘못된것 같은대....
죄송합니다. 댓글 작성은 회원만 가능합니다.