Microsoft SDK for Java

DirectDrawPalette Class

Applications use the methods of the DirectDrawPalette Class of the com.ms.directX package to create Microsoft® DirectDraw® palette objects and work with system-level variables.

public class DirectDrawPalette implements IDirectDrawPalette
{
  // Methods
  public int getCaps();
  public Color[] getColorEntries(int flags, int start, int count);
  public void getEntries(int flags, int start, int count,
        byte[] val);
  public PaletteEntry[] getPaletteEntries(int flags, int start, int
        count);
  public void setEntries(int flags, int start, int count,
        byte[] val);
  public void setEntries(int flags, int start, int count,
        Color c[]);
  public void setEntries(int flags, int start, int count,
        PaletteEntry pe[]);
  public void setEntriesHalftone(int start, int count);
  public void setEntriesSystemPalette(int start, int count);
}

Note   This class does not provide an initialize method. Use the DirectDraw.createPalette method to create and initialize DirectDrawPalette objects.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.