NAME
MputColourPalette - put the colour palette
SYNOPSIS
#include "csf.h"
int MputColourPalette
(
MAP *m,
UINT2 *pal,
size_t nrTupels
);
PARAMETERS
-
MAP *m
-
the map to get it from
-
UINT2 *pal
-
the new palette
-
size_t nrTupels
-
the number of 3 UINT2 words tupels of pal
DESCRIPTION
MputColourPalette writes the pal argument that is filled
with a number of rgb tupels
of the colour palette to the map. Each tupel is a sequence of 3 UINT2
words describing red, green and blue. Thus if the map has 8
colour palette entries it puts 24 UINT2 values in map palette.
An existing colour palette is overwritten.
RETURNS
0 if not available or in case of error,
nonzero otherwise
SEE ALSO
MgetHistorySize
,
MgetDescriptionSize
,
MgetNrColourPaletteEntries
,
MgetNrGreyPaletteEntries
,
MgetDescription
,
MgetHistory
,
MgetColourPalette
,
MgetGreyPalette
,
MputDescription
,
MputHistory
,
MputGreyPalette