Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Android Devices > Android Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-07-2011, 03:11 PM   #1
Mark.Vasconcelos
Junior Member
Mark.Vasconcelos began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2011
Device: Galaxy Tab
Renderer resolution with RMSDK

PS: Actually, I tried to post this message on Adobe Reader forums, but when submiting all my message get blank and a alert tell me "You canno't post a blank message", I wroted this message 3 times and tried from another browser, not sucesfully, I come to post here.



Hi, I'm developing an Reader application for Android using the RMSDK. I already get this working to render the contents on device, but when using a PDF file theres a lot of yellow pixels that made the image not readable.


This is my code to render the file to the buffer.


Code:
    thisHost->setDPI(169.0);
    m_renderer->setViewport(600, 1024, false);
    dpdoc::Matrix environmentMatrix(1, 0, 0, 1, 0, 0);
    m_renderer->setEnvironmentMatrix(environmentMatrix);
    emh::PNGSurface * surface = thisHost->renderPage(600, 1024, 600, 1024, NULL);
PS: 600x1024 is the dimension of the Galaxy Tab wich I'm testing for.


If any more information is needed I'm able to give, so any tip can help me, I cannot get this done.



I already read the specification, specially Design Principles and Coordinates System, but I still don't get the solution to my problem.


When rendering EPUB files this problem is almost not perceptible, so I keep to develop the apk with it, but I need to get the PDF to render too.



The result when executing my code with a EPUB file is the following:


And the result when executing my code with a PDF file is the following:



Regards,
Marcos Vasconcelos
Mark.Vasconcelos is offline   Reply With Quote
Old 10-05-2011, 04:38 AM   #2
zoubiock
Junior Member
zoubiock began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2011
Device: Xoom
Hi Marcos,

I'm facing exactly the same problem as you.
As this thread is quite old, you probably found a solution to get images render correctly, did you ?
Do you have any tips that could help me ?

Thanks !
zoubiock is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Screen Resolution lustyd Sony Reader 4 12-25-2010 03:51 AM
RMSDK-based viewer for Linux Nathanael ePub 6 09-28-2010 08:12 AM
Classic Nook as an ePub renderer: review kjk Barnes & Noble NOOK 1 12-11-2009 01:36 PM
Bug - with book or with Sony ePub renderer? HarryT ePub 21 10-15-2009 12:52 PM
In-Device PDF Renderer Modification Conrad Sony Reader Dev Corner 3 05-12-2009 05:21 AM


All times are GMT -4. The time now is 05:14 AM.


MobileRead.com is a privately owned, operated and funded community.