cplussharp / graph-studio-next

GraphStudioNext is a tool for developers to build and test DirectShow Graphs
355 stars 94 forks source link

Save PNG 8 Bit instead of 32 Bit #247

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'd like to have this feature in the program:

The ability (or rather the replacement) to save a screenshot in 8 Bit instead 
of 32 Bit.
The feature is important for me because:

32 Bit isn't needed as far as i can tell, as it's just simple Gray,Red,Green 
etc.
It will just waste space for no reason.

The feature is important for other users because:

Waste of space, quite a bit actually, it's about half the size depending on 
content, and to no loss as the compatibility should be the same.

Original issue reported on code.google.com by 24levit...@gmail.com on 30 Aug 2014 at 12:53

GoogleCodeExporter commented 9 years ago
Thanks for the report.

The PNG file size isn't a big concern for me as the png is smaller than the GRF 
and GRFX but I've added it to the list.

Original comment by mike.cop...@gmail.com on 5 Nov 2014 at 4:38

GoogleCodeExporter commented 9 years ago
Unfortunately this is nothing the gdiplus api can do out of the box. The 
program needs to create a color table with the used colors and then create and 
fill a new bitmap with this color table.

The good thing would be, that this color table can then be used not only for 
PNG output but also for the GIF and BMP output.

Original comment by cgraef...@gmail.com on 6 Nov 2014 at 8:59

GoogleCodeExporter commented 9 years ago
It reduces size even further. Not That much, but still it's one of those, "Why 
not?".

I simply used PNGOUT - http://advsys.net/ken/utils.htm
It would make them 8 bit, and that's how i realized it. Not sure if that's of 
any help.

Thanks for just accepting it, a nice bonus:)

Original comment by 24levit...@gmail.com on 6 Nov 2014 at 1:21