@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만 출력되는걸 봐서 뭔가가 잘못된것 같은대....