Package com.ms.com.directX Previous
Previous
Microsoft Packages
Microsoft Packages
Index
Index
Next
Next

Class d3drmImage

public final class d3drmImage {
  public int width;
  public int height;
  public int aspectx;
  public int aspecty;
  public int depth;
  public int rgb;
  public int bytes_per_line;
  public byte[] buffer1;
  public byte[] buffer2;
  public int red_mask;
  public int green_mask;
  public int blue_mask;
  public int alpha_mask;
  public int palette_size;
  public byte[] palette;
}

Describes an image that is attached to a texture by the CreateTexture method. GetImage returns this image.

See also d3drm, d3drmTexture.

Fields

width and height
Width and height of the image, in pixels.
aspectx and aspecty
Aspect ratio for nonsquare pixels.
depth
Bits per pixel.
rgb
If this field FALSE, pixels are indices into a palette. Otherwise, pixels encode RGB values.
bytes_per_line
Number of bytes of memory for a scanline. This value must be a multiple of four.
buffer1
Memory to render into (first buffer).
buffer2
Second rendering buffer for double buffering. Set this field to null for single buffering.
red_mask, green_mask, blue_mask, and alpha_mask
If rgb is TRUE, these fields are masks for the red, green, and blue parts of a pixel. Otherwise, they are masks for the significant bits of the red, green, and blue elements in the palette. For example, most SVGA displays use 64 intensities of red, green, and blue, so the masks should all be set to 0xfc.
palette_size
Number of entries in the palette.
palette
If rgb is FALSE, this field describes the palette entry.


Top© 1996 Microsoft Corporation. All rights reserved.