DirectX9 像素格式

The format of a pixel is defined byspecifying a member of the D3DFORMATenumerated type. Some formats are:

D3DFMT_R8G8B8—Specifies a 24-bitpixel format where, starting

from the leftmost bit, 8 bits areallocated for red, 8 bits are allocated for green, and 8 bits are allocated forblue

D3DFMT_X8R8G8B8—Specifies a 32-bitpixel format where, starting from the leftmost bit, 8 bits are not used, 8 bitsare allocated for

red, 8 bits are allocated for green,and 8 bits are allocated for blue

D3DFMT_A8R8G8B8—Specifies a 32-bitpixel format where, starting from the leftmost bit, 8 bits are allocated foralpha, 8 bits are

allocated for red, 8 bits are allocatedfor green, and 8 bits are allocated for blue

D3DFMT_A16B16G16R16F—Specifies a 64-bit,floating-point pixel

format. Starting from the leftmost bit,16 bits are allocated for

alpha, 16 bits are allocated for blue,16 bits are allocated for green,

and 16 bits are allocated for red.

D3DFMT_A32B32G32R32F—Specifies a 128-bit, floating-point
pixel format. Starting from the leftmost bit, 32 bits are allocated for
alpha, 32 bits are allocated for blue, 32 bits are allocated for green,
and 32 bits are allocated for red.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值