Author Topic: (F12) screendumps in .png format https:// forum support for .bmp ?  (Read 16200 times)

Volutar

  • Guest
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #15 on: September 04, 2012, 11:14:20 am »
Daiky, there is an alternative to libpng, without any dll/so and zlib... https://lodev.org/lodepng/

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #16 on: September 04, 2012, 11:50:39 am »
+1  ;D

Offline luke83

  • Commander
  • *****
  • Posts: 1558
    • View Profile
    • openxcommods
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #17 on: September 05, 2012, 10:16:11 am »
Doesn't UFO2000 use PNG ? Will Openxcom be compatible with Ufo2000 Items ?  What Program do they use to save it all ( someone here must of used UFO2000 before )?

Volutar

  • Guest
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #18 on: September 06, 2012, 09:34:29 am »
LodePNG library work like a charm. Just tested it.

Offline Daiky

  • Battlescape Programmer
  • Administrator
  • Commander
  • *****
  • Posts: 904
    • View Profile
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #19 on: September 06, 2012, 12:18:27 pm »
LodePNG library work like a charm. Just tested it.
Interesting, the developer seems to be from Belgium even :) But I don't know him :p

Volutar

  • Guest
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #20 on: September 06, 2012, 04:01:42 pm »
It's quite easy to use. The only thing I was puzzled with is... getting png info on alpha channel before loading, in order to load in in proper form - RGB or RGBA. Of course it was solved.

Volutar

  • Guest
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #21 on: September 07, 2012, 06:13:34 pm »
I've added PNG functionality into my dead project. Textures are in PNG, and screenshots are in PNG as well. With quite an ease...
« Last Edit: September 07, 2012, 06:20:19 pm by Volutar »

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2159
    • View Profile
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #22 on: September 07, 2012, 07:26:19 pm »
Daiky, there is an alternative to libpng, without any dll/so and zlib... https://lodev.org/lodepng/
Wow that was surprisingly handy, I implemented PNG screenshots with just a few lines. :)

And once the required libraries are linked into openxcom (I thought it was only zlib and libpng?) then it's only a small step to load sprites from PNG  8)
Loading the graphics into OpenXcom isn't the hard part (SDL_image can do loading fine, it just can't save for some reason), it's just externalizing all the resource loading stuff, and you saw how long that took just for the ruleset. :P