Closed OleksandrGrument closed 7 years ago
OpenGL use bitmap as texture to draw screen. For zoom in/out, you can do: 1) Zoom your bitmap which is used as texture to draw screen 2) Set the zoomed bitmap as texture of OpenGL, e.g:
page.setFirstTexture(mBitmap);
3) Call drawPageFrame()
of PageFlip class to draw bitmap on screen
Hope it can help you.
Big thanks!
how to navigate zoomed bitmap like google maps
how to navigate zoomed bitmap like google maps
I think there are many code examples for your request on internet. Please try google first. thanks!
OpenGL use bitmap as texture to draw screen. For zoom in/out, you can do:
- Zoom your bitmap which is used as texture to draw screen
- Set the zoomed bitmap as texture of OpenGL, e.g:
page.setFirstTexture(mBitmap);
- Call
drawPageFrame()
of PageFlip class to draw bitmap on screenHope it can help you.
public void changeBitmap(final Bitmap bitmap){
final Page page = mPageFlip.getFirstPage();
/// if (!page.isFirstTextureSet()) {
drawPage(mPageNo);
page.setFirstTexture(bitmap);
// }
mPageFlip.drawPageFrame();
}
// Not Working
Hi i'm a newbie with open gl. I use your example and want to zoom with two fingers a picture. I have add in code ScaleGestureDetector and Listener. Where should i change scale ? Thanks.