panda3d.core.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

getName() → str
getNumExtensions() → int

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

getExtension(n: int) → str

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

getSuggestedExtension() → str

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

static getClassType() → TypeHandle
Return type

TypeHandle

getExtensions() → list
property name
Return type

string

property extensions

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

Return type

Sequence[string]

property suggested_extension

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

Return type

string