delete_entry


Description:

[ Version ( since = "2.2" ) ]
public bool delete_entry (int entry_num)

Deletes an entry from the palette.

This function will fail and return false if the index is out or range or if the palette is not editable. Additionally if the palette belongs to an indexed image, it will only be possible to delete palette colors not in use in the image.

Parameters:

this

The palette.

entry_num

The index of the entry to delete.

Returns:

TRUE on success.