PNMFileType

class PNMFileType

Bases: TypedWritable

This is the base class of a family of classes that represent particular image file types that PNMImage supports.

Inheritance diagram

Inheritance diagram of PNMFileType

static TypeHandle get_class_type(void)
virtual std::string get_extension(int n) const

Returns the nth possible filename extension associated with this particular file type, without a leading dot.

virtual std::string get_name(void) const = 0
virtual int get_num_extensions(void) const

Returns the number of different possible filename extensions associated with this particular file type.

virtual std::string get_suggested_extension(void) const

Returns a suitable filename extension (without a leading dot) to suggest for files of this type, or empty string if no suggestions are available.