[SDL] SDL_Image + PNG saving?
David Olofson
david at olofson.net
Fri Apr 23 04:05:12 PDT 2004
On Friday 23 April 2004 12.01, Milan Babuskov wrote:
[...]
> > But what about the API? For formats with destructive compression
> > (such as JPG) one would need some form of "quality" interface...
> > And there's the compression level for PNG as well, which affects
> > processing time a great deal with large images.
>
> Formats that have quality can have many parameters for functions
> that use them. I.e. I think there sould be different functions to
> save in different formats:
>
> SaveBMP();
> SaveGIF(bool OptimizePalette);
> SaveJPG(int CompressionLevel, whatever);
> SavePNG(bool SaveAlpha, ...);
Yeah... If you want an IMGW_Save() function, it's pretty easy to
implement anyway - with whatever compression parameters you like. All
that function can do anyway is look at the extension. (Unlike
IMG_Load() which looks at the data instead, whenever possible.)
//David Olofson - Programmer, Composer, Open Source Advocate
.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,... |
`-----------------------------------> http://audiality.org -'
--- http://olofson.net --- http://www.reologica.se ---
More information about the SDL
mailing list