Packages
 In this topic

*Fields

 

Packages   PreviousThis PackageNext
Package com.ms.directX   Previous This
Package
Next

 


Class D3dRMImage

public final class D3dRMImage
{
  // Fields
  public int alpha_mask;
  public int aspectX;
  public int aspectY;
  public int blue_mask;
  public int bytes_per_line;
  public int depth;
  public int green_mask;
  public int height;
  public int palette_size;
  public int red_mask;
  public int rgb;
  public int width;
}

Describes an image that is attached to a texture by the Direct3dRM.createTexture method. The Direct3dRMTexture.getImage method returns this image.

See also Direct3dRM, Direct3dRMTexture.

Fields

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.
aspectX
X aspect ratio for nonsquare pixels.
aspectY
Y aspect ratio for nonsquare pixels.
blue_mask
Bitmask dependant on rgb.
bytes_per_line
Number of bytes of memory for a scanline. This value must be a multiple of four.
depth
Bits per pixel.
green_mask
Bitmask dependant on rgb.
height
Height of the image, in pixels.
palette_size
Number of entries in the palette.
red_mask
Bitmask dependant on rgb.
rgb
If this field false, pixels are indices into a palette. Otherwise, pixels encode RGB values.
width
Width of the image, in pixels.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.