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 8868647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:19:07+00:00 2026-06-14T17:19:07+00:00

Documents in about Canvas.setMatrix() say: Completely replace the current matrix with the specified matrix.

  • 0

Documents in about Canvas.setMatrix() say:

Completely replace the current matrix with the specified matrix. If
the matrix parameter is null, then the current matrix is reset to
identity.

And about Canvas.concat() say:

Preconcat the current matrix with the specified matrix.

But It seems surd.When I tried this code:

Matrix matrix = new Matrix();
mCamera = new Camera();
canvas.save();

mCamera.rotateY(y_rotate_angle);
mCamera.getMatrix(matrix);
canvas.concat(matrix);
canvas.drawText(text, 30, 100, redPaint);

//      canvas.restore();
canvas.setMatrix(null);
canvas.setMatrix(matrix);
canvas.drawText(text, 30, 100, greenPaint);

In result,second text will drawn at (60,100) instead of drawing at (30,100)(even when I tried canvas.restore() and comment canvas.setMatrix).

  • 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-14T17:19:08+00:00Added an answer on June 14, 2026 at 5:19 pm

    It is strange!I get matrix of canvas before saving it and then print it’s members.I guessed that it be IDENTITY matrix,but it was not!So when I did setMatrix(null),the matrix of canvas was set by a matrix that was not equal to original matrix of canvas and this caused problems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm reading some documents about both Servlets and PHP. These document have the same
I am making app about google documents. but I don't know How to save
So, i have some question about xml Documents in Java. Can i get all
We have a system were we would like to store about 100M documents. We
I have about 100 Word documents which include transliteration of foreign names. The author
I was learning about property, I read various documents but still not clear about
I'm using Aspose to handle PDFs and Word documents. Each time I'm about to
when I read document about asyntask , they say that: should not update UI
I run it on: @Html.ActionLink(TEST, About, Home, null, new { @class = openDialog, data_dialog_id
i red a lot of documents about, but i can't consume this .svc file.

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.