eschao / android-PageFlip

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

What About loading image remotely #8

Closed mohittanwar94 closed 7 years ago

mohittanwar94 commented 7 years ago

Hii eschao, thanks for wonderful library .but what about loading image from server not from local can we do this. if we can then how to do please provide some directions.

thanks

eschao commented 7 years ago

@mohittanwar94 Sorry for late. The key point you should know is that any content the PageFlip presented is bitmap resource whatever it is decoded from local file or network. So, I think you can use other library to load the image from server and decode it as bitmap resource, and then set it through setFirstTexture or setSecondTexture APIs to let PageFlip show it on screen.

mohittanwar94 commented 7 years ago

it will be great. if you can make a sample loading images from server ?

mohittanwar94 commented 7 years ago

Problem is that suppose I am loading bitmap through Picasso than I have to call Picasso on main method and set texture method is opengl draw thread both are different so how to draw it.

Thanks

On Dec 24, 2016 8:45 PM, "eschao" notifications@github.com wrote:

@mohittanwar94 https://github.com/mohittanwar94 Sorry for late. The key point you should know is that any content the PageFlip presented is bitmap resource whatever it is decoded from local file or network. So, I think you can use other library to load the image from server and decode it as bitmap resource, and then set it through setFirstTexture or setSecondTexture APIs to let PageFlip show it on screen.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eschao/android-PageFlip/issues/8#issuecomment-269088185, or mute the thread https://github.com/notifications/unsubscribe-auth/ASgirpDhlyQvHQGBYb9bHGibtBFbf5g6ks5rLTb3gaJpZM4LUBly .