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
37
38
39
40
| package com.netsdk.lib.structure;
|
| import com.netsdk.lib.NetSDKLib;
|
| /**
| * 颜色RGBA
| *
| * @author 47040
| * @version 1.0.0
| * @since Created in 2021/3/8 20:11
| */
| public class NET_COLOR_RGBA extends NetSDKLib.SdkStructure {
| /**
| * 红
| */
| public int nRed;
| /**
| * 绿
| */
| public int nGreen;
| /**
| * 蓝
| */
| public int nBlue;
| /**
| * 透明
| */
| public int nAlpha;
|
| public void setRGBA(int R, int G, int B, int A) {
| nRed = R;
| nGreen = G;
| nBlue = B;
| nAlpha = A;
| }
| @Override
| public String toString() {
| return String.format("RGBN ( %03d, %03d, %03d, %03d )", nRed, nGreen, nBlue, nAlpha);
| }
| }
|
|