TImageFileFormat.MakeCompatible Method
TImageFileFormat Class

Makes Image compatible with this file format (that means it is in one of data formats in Supported formats set).

Class
Pascal
public function MakeCompatible(const Image: TImageData; 
                               var Compatible: TImageData; 
                               out MustBeFreed: Boolean): Boolean;
Description

If input is already in supported format then Compatible just use value from input (Compatible := Image) so must not free it after you are done with it (image bits pointer points to input image's bits). If input is not in supported format then it is cloned to Compatible and concerted to one of supported formats (which one dependeds on this file format). If image is cloned MustBeFreed is set to True to indicated that you must free Compatible after you are done with it.

Related Information
You are here: Symbol Reference > Classes > TImageFileFormat Class > Methods > MakeCompatible Method