The createPalette method of the DirectDraw Class contains the following signatures:
createPalette(int flags, byte[] pe)
createPalette(int flags)
createPalette(int flags, Color[] pe)
createPalette(int flags, PaletteEntry[] pe)
Creates a DirectDrawPalette object for this DirectDraw object.
public DirectDrawPalette createPalette(int flags, byte[] pe);
Returns the DirectDrawPalette object if successful; otherwise, returns null.
flags | One or more values of the DDPCAPS_ type. |
pe | The array variable that contains the data describing the initial value for each palette entry. |
Creates a palette and fills it with standard halftone entries.
public DirectDrawPalette createPalette(int flags);
Returns the DirectDrawPalette object if successful; otherwise, returns null. Currently, only DDPCAPS_8BIT and DDPCAPS_INITIALIZE are valid arguments for the flags parameter.
flags | One or more values of DDPCAPS_ type. |
Creates a DirectDrawPalette object for this DirectDraw object.
public DirectDrawPalette createPalette(int flags, Color[] pe);
Returns the DirectDrawPalette object if successful; otherwise, returns null.
flags | One or more values of the DDPCAPS_ type. |
pe | The array variable that contains the data describing the initial color value for each palette entry. |
Creates a DirectDrawPalette object for this DirectDraw object.
public DirectDrawPalette createPalette(int flags, PaletteEntry[] pe);
Returns the DirectDrawPalette object if successful; otherwise, returns null.
flags | One or more values of DDPCAPS_ type. |
pe | The array variable that contains a PaletteEntry object describing each palette entry. |