ImageFormat_JPG.h
Go to the documentation of this file.00001 00011 #ifndef __ImageFormat_JPG_H__ 00012 #define __ImageFormat_JPG_H__ 00013 00014 // Includes 00015 #include "ImageFormat.h" 00016 00017 // Forward declares 00018 00019 00020 // ImageFormat_JPG 00021 class ImageFormat_JPG: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_JPG( 00032 const Asset& asset 00033 ); 00034 00035 ImageFormat_JPG( 00036 int width, 00037 int height, 00038 void* data 00039 ); 00040 00044 virtual ~ImageFormat_JPG(); 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 unsigned int* image_; 00059 int width_; 00060 int height_; 00061 }; 00062 00063 #endif /* __ImageFormat_JPG_H__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
