freeImage.py
This definition converts None to a real NULL pointer to work around bugs in how ctypes handles None on 64-bit platforms.
Parameters: | data – Data . ( Object ) |
---|---|
Returns: | Pointer. ( POINTER ) |
This definition ensures that all callbacks return primitive datatypes.
As of ctypes 1.0, ctypes does not support custom error-checking functions on callbacks, nor does it support custom datatypes on callbacks, so we must ensure that all callbacks return primitive datatypes. Non-primitive return values wrapped with unchecked won’t be typechecked, and will be converted to c_void_p.
Parameters: | type – Type . ( Object ) |
---|---|
Returns: | Type. ( Object ) |
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage FIBITMAP C / C++ object.
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage FIMULTIBITMAP C / C++ object.
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage tagRGBQUAD C / C++ object.
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage tagRGBTRIPLE C / C++ object.
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage tagBITMAPINFOHEADER C / C++ object.
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage tagBITMAPINFO C / C++ object.
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage tagFIRGB16 C / C++ object.
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage tagFIRGBA16 C / C++ object.
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage tagFIRGBF C / C++ object.
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage tagFIRGBAF C / C++ object.
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage tagFICOMPLEX C / C++ object.
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage FIICCPROFILE C / C++ object.
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage FIMETADATA C / C++ object.
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage FITAG C / C++ object.
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage FreeImageIO C / C++ object.
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage FIMEMORY C / C++ object.
Bases: _ctypes.Structure
This class is a ctypes.Structure subclass representing FreeImage Plugin C / C++ object.
Bases: foundations.dataStructures.Structure
This class represents a storage object for image informations header.
Parameters: | kwargs – path, width, height, bpp, osStats. ( Key / Value pairs ) |
---|
Bases: object
This class provides various methods to manipulate images files.
Parameters: | imagePath – Image path. ( String ) |
---|
This method is the property for self.__library attribute.
Returns: | self.__library. ( Library ) |
---|
This method is the property for self.__errorsCallback attribute.
Returns: | self.__errorsCallback. ( Object ) |
---|
This method is the property for self.__imagePath attribute.
Returns: | self.__imagePath. ( String ) |
---|
This method is the property for self.__bitmap attribute.
Returns: | self.__bitmap. ( Object ) |
---|
This method gets the file format.
Parameters: | imagePath – Image path. ( String ) |
---|---|
Returns: | File format. ( FREE_IMAGE_FORMAT ) |
This method loads the file.
Parameters: | imagePath – Image path. ( String ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method saves the image to the given file.
Parameters: |
|
---|---|
Returns: | Method success. ( Boolean ) |
This method converts the bitmap to given type.
Parameters: |
|
---|---|
Returns: | Method success. ( Boolean ) |