提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.structure; |
H |
2 |
|
|
3 |
import com.iailab.netsdk.lib.NetSDKLib; |
|
4 |
|
|
5 |
/** |
|
6 |
* 颜色RGBA |
|
7 |
* |
|
8 |
* @author 47040 |
|
9 |
* @version 1.0.0 |
|
10 |
* @since Created in 2021/3/8 20:11 |
|
11 |
*/ |
|
12 |
public class NET_COLOR_RGBA extends NetSDKLib.SdkStructure { |
|
13 |
/** |
|
14 |
* 红 |
|
15 |
*/ |
|
16 |
public int nRed; |
|
17 |
/** |
|
18 |
* 绿 |
|
19 |
*/ |
|
20 |
public int nGreen; |
|
21 |
/** |
|
22 |
* 蓝 |
|
23 |
*/ |
|
24 |
public int nBlue; |
|
25 |
/** |
|
26 |
* 透明 |
|
27 |
*/ |
|
28 |
public int nAlpha; |
|
29 |
|
|
30 |
public void setRGBA(int R, int G, int B, int A) { |
|
31 |
nRed = R; |
|
32 |
nGreen = G; |
|
33 |
nBlue = B; |
|
34 |
nAlpha = A; |
|
35 |
} |
|
36 |
@Override |
|
37 |
public String toString() { |
|
38 |
return String.format("RGBN ( %03d, %03d, %03d, %03d )", nRed, nGreen, nBlue, nAlpha); |
|
39 |
} |
|
40 |
} |