Sprite.SizeMode Enum

Module: cc

Sprite Size can track trimmed size, raw size or none.

Index

  • CUSTOM
  • TRIMMED
  • RAW
  • NORMAL
  • GRAY

Details

CUSTOM

Use the customized node size.

meta description
Type Number
Defined in cocos2d/core/components/CCSprite.js:108
TRIMMED

Match the trimmed size of the sprite frame automatically.

meta description
Type Number
Defined in cocos2d/core/components/CCSprite.js:114
RAW

Match the raw size of the sprite frame automatically.

meta description
Type Number
Defined in cocos2d/core/components/CCSprite.js:120
NORMAL

The normal state

meta description
Type Number
Defined in cocos2d/core/components/CCSprite.js:129
GRAY

The gray state, all color will be modified to grayscale value.

meta description
Type Number
Defined in cocos2d/core/components/CCSprite.js:135

results matching ""

    No results matching ""