Creates a global palette for the GIF image, intialized with all entries of the current local palette. The property UseGlobalPalette will be set to true when invoking this method. This effectively enables the newly created global palette.

Namespace:  FreeImageAPI.Metadata
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public void CreateGlobalPalette()
Visual Basic (Declaration)
Public Sub CreateGlobalPalette
Visual C++
public:
void CreateGlobalPalette()

Exceptions

ExceptionCondition
System..::.InvalidOperationException The image does not have a palette.

Version Information

FreeImage.NET

Supported in: 3.12.0, 3.13.0, 3.13.1

See Also