Texture2D.PixelFormat 枚举

模块: cc 父模块: cc

The texture pixel format, default value is RGBA8888, you should note that textures loaded by normal image files (png, jpg) can only support RGBA8888 format, other formats are supported by compressed file types or raw data.

索引

  • RGB565
  • RGB5A1
  • RGBA4444
  • RGB888
  • RGBA8888
  • RGBA32F
  • A8
  • I8
  • AI88
  • RGB_PVRTC_2BPPV1
  • RGBA_PVRTC_2BPPV1
  • RGB_A_PVRTC_2BPPV1
  • RGB_PVRTC_4BPPV1
  • RGBA_PVRTC_4BPPV1
  • RGB_A_PVRTC_4BPPV1
  • RGB_ETC1
  • RGBA_ETC1
  • RGB_ETC2
  • RGBA_ETC2

Details

RGB565

16-bit texture without Alpha channel

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:71
RGB5A1

16-bit textures: RGB5A1

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:78
RGBA4444

16-bit textures: RGBA4444

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:85
RGB888

24-bit texture: RGB888

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:92
RGBA8888

32-bit texture: RGBA8888

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:99
RGBA32F

32-bit float texture: RGBA32F

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:106
A8

8-bit textures used as masks

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:113
I8

8-bit intensity texture

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:120
AI88

16-bit textures used as masks

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:127
RGB_PVRTC_2BPPV1

rgb 2 bpp pvrtc

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:135
RGBA_PVRTC_2BPPV1

rgba 2 bpp pvrtc

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:142
RGB_A_PVRTC_2BPPV1

rgb separate a 2 bpp pvrtc RGB_A_PVRTC_2BPPV1 texture is a 2x height RGB_PVRTC_2BPPV1 format texture. It separate the origin alpha channel to the bottom half atlas, the origin rgb channel to the top half atlas

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:149
RGB_PVRTC_4BPPV1

rgb 4 bpp pvrtc

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:158
RGBA_PVRTC_4BPPV1

rgba 4 bpp pvrtc

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:165
RGB_A_PVRTC_4BPPV1

rgb a 4 bpp pvrtc RGB_A_PVRTC_4BPPV1 texture is a 2x height RGB_PVRTC_4BPPV1 format texture. It separate the origin alpha channel to the bottom half atlas, the origin rgb channel to the top half atlas

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:172
RGB_ETC1

rgb etc1

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:181
RGBA_ETC1

rgba etc1

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:188
RGB_ETC2

rgb etc2

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:196
RGBA_ETC2

rgba etc2

meta description
类型 Number
定义于 cocos2d/core/assets/CCTexture2D.js:203

条与 "" 相匹配的结果

    没有与 "" 匹配的结果