Show on Gradation 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

void Main::draw(tia::flash::display::IP_Sprite sprite)
{
vuint red = 0xFF0000;
vuint green = 0x00FF00;
vuint blue = 0x0000FF; vint32 size = 300;
 
 ArrayInt gradColors;
 gradColors.push_back(red);
 gradColors.push_back(blue);
 gradColors.push_back(green);
 
 ArrayDouble gradAlphas;
 gradAlphas.push_back(1.0);
 gradAlphas.push_back(0.5);
 gradAlphas.push_back(1.0);
 
 ArrayInt gradRatios;
 gradRatios.push_back(0);
 gradRatios.push_back(200);
 gradRatios.push_back(255);
 
 tia::flash::geom::IP_Matrix    ipMatrix = new tia::flash::geom::Matrix();
 //ipMatrix->createGradientBox(50, 40, 45, 100, 30);
 ipMatrix->createBox(0.40.5452060);
 
 //    void Matrix::createBox  ( const vdouble64  a_dScaleX,  
                         // const vdouble64  a_dScaleY,  
                         // const vdouble64  a_dRotation = 0,  
                         // const vdouble64  a_dTx = 0,  
                         // const vdouble64  a_dTy = 0   
                         //) 
 
 sprite->m_ipGraphics->beginGradientFill(GRADIENT_TYPE_RADIAL, gradColors,
 gradAlphas, gradRatios, ipMatrix);
 sprite->m_ipGraphics->drawRect(00sizesize);
}
cs


 

 

 

 

Before 

After 


저작자 표시
신고

'기타 > C++ GUI' 카테고리의 다른 글

Billboarding Code  (0) 2015.11.03
C++ 예제 이벤트 클래스  (0) 2015.10.28
Good Class code using C++  (0) 2015.10.28
Image Transform(get,set)  (0) 2015.10.27

WRITTEN BY
Profile
비타오백
Enjoy your stage!

받은 트랙백이 없고 , 댓글이 없습니다.
secret