12 #ifndef ROOT_TImagePlugin
13 #define ROOT_TImagePlugin
22 class TImagePlugin :
public TObject {
28 TImagePlugin(
const char *ext) { fExtension = ext; }
29 virtual ~TImagePlugin()
32 ROOT::CallRecursiveRemoveIfNeeded(*
this);
35 virtual unsigned char *ReadFile(
const char *filename, UInt_t &w, UInt_t &h) = 0;
36 virtual Bool_t WriteFile(
const char *filename,
unsigned char *argb, UInt_t w, UInt_t h) = 0;
37 ULong_t Hash()
const {
return fExtension.Hash(); }
39 ClassDef(TImagePlugin, 0)