1# ImageData<a name="EN-US_TOPIC_0000001115814838"></a> 2 3- [Attribute](#en-us_topic_0000001058340509_section661391987) 4 5**ImageData** stores pixel data rendered on a canvas. 6 7## Attribute<a name="en-us_topic_0000001058340509_section661391987"></a> 8 9<a name="en-us_topic_0000001058340509_table67211828124016"></a> 10<table><thead align="left"><tr id="en-us_topic_0000001058340509_row108577289405"><th class="cellrowborder" valign="top" width="22.872287228722872%" id="mcps1.1.4.1.1"><p id="en-us_topic_0000001058340509_p385742814403"><a name="en-us_topic_0000001058340509_p385742814403"></a><a name="en-us_topic_0000001058340509_p385742814403"></a>Attribute</p> 11</th> 12<th class="cellrowborder" valign="top" width="29.352935293529352%" id="mcps1.1.4.1.2"><p id="en-us_topic_0000001058340509_p19857192816408"><a name="en-us_topic_0000001058340509_p19857192816408"></a><a name="en-us_topic_0000001058340509_p19857192816408"></a>Type</p> 13</th> 14<th class="cellrowborder" valign="top" width="47.774777477747776%" id="mcps1.1.4.1.3"><p id="en-us_topic_0000001058340509_p18573288402"><a name="en-us_topic_0000001058340509_p18573288402"></a><a name="en-us_topic_0000001058340509_p18573288402"></a>Description</p> 15</th> 16</tr> 17</thead> 18<tbody><tr id="en-us_topic_0000001058340509_row1085792824019"><td class="cellrowborder" valign="top" width="22.872287228722872%" headers="mcps1.1.4.1.1 "><p id="en-us_topic_0000001058340509_p1485792815404"><a name="en-us_topic_0000001058340509_p1485792815404"></a><a name="en-us_topic_0000001058340509_p1485792815404"></a>width</p> 19</td> 20<td class="cellrowborder" valign="top" width="29.352935293529352%" headers="mcps1.1.4.1.2 "><p id="en-us_topic_0000001058340509_p11857182804010"><a name="en-us_topic_0000001058340509_p11857182804010"></a><a name="en-us_topic_0000001058340509_p11857182804010"></a>number</p> 21</td> 22<td class="cellrowborder" valign="top" width="47.774777477747776%" headers="mcps1.1.4.1.3 "><p id="en-us_topic_0000001058340509_p1785711281405"><a name="en-us_topic_0000001058340509_p1785711281405"></a><a name="en-us_topic_0000001058340509_p1785711281405"></a>Actual width of the rectangle on the canvas, in pixels.</p> 23</td> 24</tr> 25<tr id="en-us_topic_0000001058340509_row3857132812406"><td class="cellrowborder" valign="top" width="22.872287228722872%" headers="mcps1.1.4.1.1 "><p id="en-us_topic_0000001058340509_p88572283404"><a name="en-us_topic_0000001058340509_p88572283404"></a><a name="en-us_topic_0000001058340509_p88572283404"></a>height</p> 26</td> 27<td class="cellrowborder" valign="top" width="29.352935293529352%" headers="mcps1.1.4.1.2 "><p id="en-us_topic_0000001058340509_p198571828114017"><a name="en-us_topic_0000001058340509_p198571828114017"></a><a name="en-us_topic_0000001058340509_p198571828114017"></a>number</p> 28</td> 29<td class="cellrowborder" valign="top" width="47.774777477747776%" headers="mcps1.1.4.1.3 "><p id="en-us_topic_0000001058340509_p3857192844012"><a name="en-us_topic_0000001058340509_p3857192844012"></a><a name="en-us_topic_0000001058340509_p3857192844012"></a>Actual height of the rectangle on the canvas, in pixels.</p> 30</td> 31</tr> 32<tr id="en-us_topic_0000001058340509_row178581628194020"><td class="cellrowborder" valign="top" width="22.872287228722872%" headers="mcps1.1.4.1.1 "><p id="en-us_topic_0000001058340509_p38582289408"><a name="en-us_topic_0000001058340509_p38582289408"></a><a name="en-us_topic_0000001058340509_p38582289408"></a>data</p> 33</td> 34<td class="cellrowborder" valign="top" width="29.352935293529352%" headers="mcps1.1.4.1.2 "><p id="en-us_topic_0000001058340509_p28581328104010"><a name="en-us_topic_0000001058340509_p28581328104010"></a><a name="en-us_topic_0000001058340509_p28581328104010"></a><Uint8ClampedArray></p> 35</td> 36<td class="cellrowborder" valign="top" width="47.774777477747776%" headers="mcps1.1.4.1.3 "><p id="en-us_topic_0000001058340509_p085802844017"><a name="en-us_topic_0000001058340509_p085802844017"></a><a name="en-us_topic_0000001058340509_p085802844017"></a>A one-dimensional array of color values. The values range from 0 to 255.</p> 37</td> 38</tr> 39</tbody> 40</table> 41 42