Author Topic: How to convert a texture to a bitmap?  (Read 482 times)

Offline Zhangzqs

  • byte
  • *
  • Posts: 2
    • View Profile
How to convert a texture to a bitmap?
« on: July 27, 2018, 05:16:05 pm »
How to convert a texture to a bitmap?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11929
    • View Profile
    • http://www.jpct.net
Re: How to convert a texture to a bitmap?
« Reply #1 on: July 30, 2018, 09:44:38 am »
I'm not sure what you mean? Which texture?

Offline AeroShark333

  • long
  • ***
  • Posts: 196
    • View Profile
Re: How to convert a texture to a bitmap?
« Reply #2 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 :)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11929
    • View Profile
    • http://www.jpct.net
Re: How to convert a texture to a bitmap?
« Reply #3 on: July 31, 2018, 09:14:04 am »
Yes...but...why? If you have created a texture, you already have a bitmap...???