home *** CD-ROM | disk | FTP | other *** search
- #include "PictureFormatManager.h"
- #include "PictureFormatBMP.h"
- //#include "PictureFormatGIF.h"
- //#include "PictureFormatJPEG.h"
- #include "PictureFormatTwin.h"
- #include <safe_new.h>
-
- PictureFormat * PictureFormatManager::create_format(const String & name)
- {
- PictureFormatTwin * twinf = new PictureFormatTwin( name );
- if( twinf->colors() )
- return twinf;
- delete twinf; twinf = 0;
-
- PictureFormatBMP * bmpf = new PictureFormatBMP( name );
- if( bmpf->colors() )
- return bmpf;
- delete bmpf; bmpf = 0;
-
- /* PictureFormatGIF * giff = new PictureFormatGIF( name );
- if( giff->colors() )
- return giff;
- delete giff; giff = 0;
-
- PictureFormatJPEG * jpegf = new PictureFormatJPEG( name );
- if( jpegf->colors() )
- return jpegf;
- delete jpegf; jpegf = 0;*/
-
- return 0;
- }
-