www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Zhangzqs on July 27, 2018, 05:16:05 pm

Title: How to convert a texture to a bitmap?
Post by: Zhangzqs on July 27, 2018, 05:16:05 pm
How to convert a texture to a bitmap?
Title: Re: How to convert a texture to a bitmap?
Post by: EgonOlsen on July 30, 2018, 09:44:38 am
I'm not sure what you mean? Which texture?
Title: Re: How to convert a texture to a bitmap?
Post by: AeroShark333 on July 30, 2018, 09:09:34 pm
I think he means a jPCT Texture instance...

I think blitting the Texture to a clear FrameBuffer and then using FrameBuffer.getPixels(..) would be one solution :)
Title: Re: How to convert a texture to a bitmap?
Post by: EgonOlsen on July 31, 2018, 09:14:04 am
Yes...but...why? If you have created a texture, you already have a bitmap...???