LayerAlpha.md 3.9 KB
Newer Older
W
wenjun 已提交
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
# LayerAlpha<a name="ZH-CN_TOPIC_0000001054799607"></a>

## **Overview**<a name="section1479819863093531"></a>

**Related Modules:**

[Display](Display.md)

**Description:**

Defines alpha operations on a layer. 

## **Summary**<a name="section447853269093531"></a>

## Data Fields<a name="pub-attribs"></a>

<a name="table1889467583093531"></a>
<table><thead align="left"><tr id="row827704295093531"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p230203053093531"><a name="p230203053093531"></a><a name="p230203053093531"></a>Variable Name</p>
</th>
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p989389359093531"><a name="p989389359093531"></a><a name="p989389359093531"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row1098399517093531"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p770758695093531"><a name="p770758695093531"></a><a name="p770758695093531"></a><a href="LayerAlpha.md#adcf7ccbaaabb8180fcc896bf251f56db">enAlpha</a></p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p215650092093531"><a name="p215650092093531"></a><a name="p215650092093531"></a>bool&nbsp;</p>
</td>
</tr>
<tr id="row236914974093531"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1943081786093531"><a name="p1943081786093531"></a><a name="p1943081786093531"></a><a href="LayerAlpha.md#a079f3b69885e57b552016ba3c748522d">enChnAlpha</a></p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p234973294093531"><a name="p234973294093531"></a><a name="p234973294093531"></a>bool&nbsp;</p>
</td>
</tr>
<tr id="row1968592530093531"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p313011815093531"><a name="p313011815093531"></a><a name="p313011815093531"></a><a href="LayerAlpha.md#a3353553145a2a896ceaeef3b16149612">alpha0</a></p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p169760281093531"><a name="p169760281093531"></a><a name="p169760281093531"></a>uint8_t&nbsp;</p>
</td>
</tr>
<tr id="row1686479036093531"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1898633630093531"><a name="p1898633630093531"></a><a name="p1898633630093531"></a><a href="LayerAlpha.md#a2b1d0f73d9ab9a17b2b41ef93c003e62">alpha1</a></p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p333849069093531"><a name="p333849069093531"></a><a name="p333849069093531"></a>uint8_t&nbsp;</p>
</td>
</tr>
<tr id="row347928912093531"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1033740751093531"><a name="p1033740751093531"></a><a name="p1033740751093531"></a><a href="LayerAlpha.md#a4ad49522585efedeb70e86de72d84dc0">gAlpha</a></p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1432038802093531"><a name="p1432038802093531"></a><a name="p1432038802093531"></a>uint8_t&nbsp;</p>
</td>
</tr>
</tbody>
</table>

## **Details**<a name="section237350690093531"></a>

## **Field Documentation**<a name="section1268277531093531"></a>

## alpha0<a name="a3353553145a2a896ceaeef3b16149612"></a>

```
uint8_t LayerAlpha::alpha0
```

 **Description:**

Alpha0 value, ranging from 0 to 255 

## alpha1<a name="a2b1d0f73d9ab9a17b2b41ef93c003e62"></a>

```
uint8_t LayerAlpha::alpha1
```

 **Description:**

Alpha1 value, ranging from 0 to 255 

## enAlpha<a name="adcf7ccbaaabb8180fcc896bf251f56db"></a>

```
bool LayerAlpha::enAlpha
```

 **Description:**

Pixel alpha enable bit 

## enChnAlpha<a name="a079f3b69885e57b552016ba3c748522d"></a>

```
bool LayerAlpha::enChnAlpha
```

 **Description:**

Channel alpha enable bit 

## gAlpha<a name="a4ad49522585efedeb70e86de72d84dc0"></a>

```
uint8_t LayerAlpha::gAlpha
```

 **Description:**

Global alpha value, ranging from 0 to 255