D3DX10_IMAGE_FILE_FORMAT enumeration

Image file formats supported by D3DXCreatexxx and D3DX10Savexxx functions.

Syntax


typedef enum D3DX10_IMAGE_FILE_FORMAT { 
  D3DX10_IFF_BMP          = 0,
  D3DX10_IFF_JPG          = 1,
  D3DX10_IFF_PNG          = 3,
  D3DX10_IFF_DDS          = 4,
  D3DX10_IFF_TIFF         = 10,
  D3DX10_IFF_GIF          = 11,
  D3DX10_IFF_WMP          = 12,
  D3DX10_IFF_FORCE_DWORD  = 0x7fffffff
} D3DX10_IMAGE_FILE_FORMAT, *LPD3DX10_IMAGE_FILE_FORMAT;

Constants

D3DX10_IFF_BMP

Windows bitmap (BMP) file format. Contains a header that describes the resolution of the device on which the rectangle of pixels was created, the dimensions of the rectangle, the size of the array of bits, a logical palette, and an array of bits that defines the relationship between pixels in the bitmapped image and entries in the logical palette. The file extension for this format is .bmp.

D3DX10_IFF_JPG

Joint Photographic Experts Group (JPEG) compressed file format. Specifies variable compression of 24-bit RGB color and 8-bit gray-scale Tagged Image File Format (TIFF) image document files. The file extension for this format is .jpg.

D3DX10_IFF_PNG

Portable Network Graphics (PNG) file format. A non-proprietary bitmap format using lossless compression. The file extension for this format is .png.

D3DX10_IFF_DDS

DirectDraw surface (DDS) file format. Stores textures, volume textures, and cubic environment maps, with or without mipmap levels, and with or without pixel compression. The file extension for this format is .dds.

D3DX10_IFF_TIFF

Tagged Image File Format (TIFF). The file extensions for this format are .tif and .tiff.

D3DX10_IFF_GIF

Graphics Interchange Format (GIF).The file extension for this format is .gif.

D3DX10_IFF_WMP

Windows Media Photo format (WMP). This format is also known as HD Photo and JPEG XR. The file extensions for this format are .hdp, .jxr, and .wdp.

To work properly, D3DX10_IFF_WMP requires that you initialize COM. Therefore, call CoInitialize or CoInitializeEx in your application before you call D3DX.

D3DX10_IFF_FORCE_DWORD

Forces this enumeration to compile to 32 bits in size. Without this value, some compilers would allow this enumeration to compile to a size other than 32 bits. This value is not used.

Remarks

See Types of Bitmaps (GDI+) for more information on some of these formats.

D3DX10 makes use of the Windows Imaging Component to implement the majority of the supported bitmap file types. See Windows Imaging Component Overview for additional information.

Requirements

Header

D3DX10Tex.h

See also

D3DX Enumerations

 

 

Community Additions

ADD
Show:
© 2014 Microsoft