Hello,

I am drawing an image `canvas.drawBitmap(bg,0,0,null);` of size 480 x
320, but I am not getting the correct size image on the screen. It's
showing a zoomed out image & only part of the Image is visible.

I have remove the title and status bar from the window.

    requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow().setFlags(
        WindowManager.LayoutParams.FLAG_FULLSCREEN,
        WindowManager.LayoutParams.FLAG_FULLSCREEN
    );

I have set the view as

    setContentView( new gamePanel(this));
    class gamePanel extends View
    {
    ...
      public void onDraw(Canvas canvas)
      {
        // -> Here I am calling the draw function.
      }
    ...
    }

I am getting the canvas height and width as 231x320(but I should get
320x480),
which less than the android emulator size 320X480.

I am not understanding, how can I solve this issue so that, I can get
proper size image on the screen.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to