ImageFormat_PNG.h
Go to the documentation of this file.00001 00011 #ifndef __ImageFormat_PNG_H__ 00012 #define __ImageFormat_PNG_H__ 00013 00014 // Includes 00015 #include "ImageFormat.h" 00016 00017 // Forward declares 00018 00019 00020 // ImageFormat_PNG 00021 class ImageFormat_PNG:public ImageFormat 00022 { 00023 public: 00024 static void Register(); 00025 static bool TestAsset(const Asset& asset); 00026 static ImageFormat* Create(const Asset& asset); 00027 00031 ImageFormat_PNG( 00032 const Asset& asset 00033 ); 00034 00035 ImageFormat_PNG( 00036 int width, 00037 int height, 00038 void* data 00039 ); 00040 00044 virtual ~ImageFormat_PNG(); 00045 00046 virtual int GetWidth(); 00047 00048 virtual int GetHeight(); 00049 00050 virtual int GetCelCount(); 00051 00052 virtual void CopyPixels(unsigned int* destination); 00053 00054 virtual float GetCelDelay(int celIndex); 00055 00056 static void Save(const Filename& filename, int width, int height, void* data); 00057 private: 00058 void* png_ptr_; 00059 void* info_ptr_; 00060 }; 00061 00062 #endif /* __ImageFormat_PNG_H__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
