Is there some better documentation somewhere? I have no idea what the parameters are supposed to mean. I have seen some example with something like (scalex, -scalex, 0, h) but I am still not sure what this represents. I have tried with (1, -1, 0, m_doc.GetPageHeight(m_pageno) - height) and I get a Bitmap which seems to have the right size and scale but it is not the section of the page that I am expecting. It is a bit too high and too much on the left.

Does someone know what the Matrix parameters mean and maybe have some idea what is missing or wrong in the way I am trying this?

Here is a code sample.
- rect is the part of the page that I would like to get in the Bitmap.
- m_view is a com.radaee.view.PDFView.
- m_doc is a com.radaee.pdf.Document.
- m_pageno is the number of the displayed page.

This extracts the part of the page defined by rect and renders it into an Android Bitmap which is returned to the caller.

- getPageSize() returns the current size of the page on display in pixels.
- the argument rect represents the portion of it that should be extracted to a Bitmap.
- m_view is a com.radaee.view.PDFView.
- m_doc is a com.radaee.pdf.Document.
- m_pageno is the number of the displayed page.

Best Regards,
Will

Check this box to be notified of replies to this topic.Note: BBcode and smileys are still usable.