eschao / android-PageFlip

3D Style Page Flip on Android
Apache License 2.0
1.74k stars 262 forks source link

Dynamic bitmaps #56

Open maikabo opened 4 years ago

maikabo commented 4 years ago

How can I implement dynamic bitmaps using this library

eschao commented 4 years ago

What do you mean bout dynamic bitmaps? Can you make it clear?

maikabo commented 4 years ago

I want to get bitmaps from PDF using android pdfrenderer and flip them using your library. How do I do that?

eschao commented 4 years ago

I just took a look PdfRender from android official doc: https://developer.android.com/reference/android/graphics/pdf/PdfRenderer, I think the PdfRender can draw a pdf page on a Bitmap, you can use the similar codes to replace the image drawing codes in our sample project: https://github.com/eschao/android-PageFlip/blob/adf677e156fd83c8a6eaea650e493e82c876f8c2/Sample/src/main/java/com/eschao/android/widget/sample/pageflip/SinglePageRender.java#L174 The drawPage will be replaced to your codes by using PdfRender to draw pdf page.

maikabo commented 4 years ago

Let me try. Do you have any suggestion on how I can achieve that.

eschao commented 4 years ago

No, that is only way I can think of now.