Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9124885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:40:13+00:00 2026-06-17T06:40:13+00:00

How to rotate android.graphics.Picture 90 degrees? *Note: No its not in Bitmap form

  • 0

How to rotate android.graphics.Picture 90 degrees?

*Note: No its not in Bitmap form

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T06:40:14+00:00Added an answer on June 17, 2026 at 6:40 am

    If you are overriding onDraw() then you can do the following:

    canvas.save();
    canvas.rotate(90f, picture.getWidth()/2, picture.getHeight/2);
    canvas.drawPicture(picture);
    canvas.restore();
    

    If you only want to rotate the image itself then you could use this method:

    public Picture rotatePicture(float degrees, Picture picture) {
        int width = picture.getWidth();
        int height = picture.getHeight();
    
        Picture rotatedPicture = new Picture();
        Canvas canvas = rotatedPicture.beginRecording(width, height);
        canvas.save();
        canvas.rotate(degrees, width/2, height/2);
        picture.draw(canvas);
        canvas.restore();
        rotatedPicture.endRecording();
    
        return rotatedPicture;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My question is in about rotate methods in android.graphics.Camera .In Docs,I saw these comments:
I wrote an Android application, which I used android.graphics.Matrix to zoom/rotate/move images. The most
Is it possible in Android to capture screen rotate events but not actually have
I'm trying to rotate and then scale an image using android.graphics.Matrix. The code is
I want to rotate imageview with continuously looping on android.my code rotate is working
in my android application I have a socket, but when I rotate the screen,
I am making a virtual speedometer in android. I use the RotateAnimation() to rotate
I want to be able to rotate, zoom and move an image in android
Possible Duplicate: How to rotate the Android emulator display? I have created an emulator
I want to Rotate Image according to a specific angle in android ,some thing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.