Lines Matching full:a
5 <a name='SkBitmap'></a>
10 class <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> {
12 <a href='#SkBitmap_empty_constructor'>SkBitmap()</a>;
13 …<a href='#SkBitmap_copy_const_SkBitmap'>SkBitmap</a>(const <a href='SkBitmap_Reference#SkBitmap'>S…
14 …<a href='#SkBitmap_move_SkBitmap'>SkBitmap</a>(<a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>&…
15 <a href='#SkBitmap_destructor'>~SkBitmap()</a>;
16 …a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>& <a href='#SkBitmap_copy_operator'>operator=</a>…
17 …<a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>& <a href='#SkBitmap_move_operator'>operator=</a…
18 … void <a href='#SkBitmap_swap'>swap</a>(<a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>& other);
19 …const <a href='SkPixmap_Reference#SkPixmap'>SkPixmap</a>& <a href='#SkBitmap_pixmap'>pixmap()</a> …
20 …const <a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a>& <a href='#SkBitmap_info'>info()…
21 int <a href='#SkBitmap_width'>width()</a> const;
22 int <a href='#SkBitmap_height'>height()</a> const;
23 …<a href='SkImageInfo_Reference#SkColorType'>SkColorType</a> <a href='#SkBitmap_colorType'>colorTyp…
24 …<a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a> <a href='#SkBitmap_alphaType'>alphaTyp…
25 …<a href='undocumented#SkColorSpace'>SkColorSpace</a>* <a href='#SkBitmap_colorSpace'>colorSpace</a…
26 …<a href='undocumented#sk_sp'>sk_sp</a><<a href='undocumented#SkColorSpace'>SkColorSpace</a>> <a hr…
27 int <a href='#SkBitmap_bytesPerPixel'>bytesPerPixel</a>() const;
28 int <a href='#SkBitmap_rowBytesAsPixels'>rowBytesAsPixels</a>() const;
29 int <a href='#SkBitmap_shiftPerPixel'>shiftPerPixel</a>() const;
30 bool <a href='#SkBitmap_empty'>empty()</a> const;
31 bool <a href='#SkBitmap_isNull'>isNull</a>() const;
32 bool <a href='#SkBitmap_drawsNothing'>drawsNothing</a>() const;
33 size_t <a href='#SkBitmap_rowBytes'>rowBytes</a>() const;
34 …<a href='#SkBitmap_setAlphaType'>setAlphaType</a>(<a href='SkImageInfo_Reference#SkAlphaType'>SkAl…
35 void* <a href='#SkBitmap_getPixels'>getPixels</a>() const;
36 size_t <a href='#SkBitmap_computeByteSize'>computeByteSize</a>() const;
37 bool <a href='#SkBitmap_isImmutable'>isImmutable</a>() const;
38 void <a href='#SkBitmap_setImmutable'>setImmutable</a>();
39 bool <a href='#SkBitmap_isOpaque'>isOpaque</a>() const;
40 bool <a href='#SkBitmap_isVolatile'>isVolatile</a>() const;
41 …void <a href='#SkBitmap_setIsVolatile'>setIsVolatile</a>(bool <a href='#SkBitmap_isVolatile'>isVol…
42 void <a href='#SkBitmap_reset'>reset()</a>;
43 …static bool <a href='#SkBitmap_ComputeIsOpaque'>ComputeIsOpaque</a>(const <a href='SkBitmap_Refere…
44 …void <a href='#SkBitmap_getBounds'>getBounds</a>(<a href='SkRect_Reference#SkRect'>SkRect</a>* bou…
45 …void <a href='#SkBitmap_getBounds'>getBounds</a>(<a href='SkIRect_Reference#SkIRect'>SkIRect</a>* …
46 <a href='SkIRect_Reference#SkIRect'>SkIRect</a> <a href='#SkBitmap_bounds'>bounds()</a> const;
47 … <a href='undocumented#SkISize'>SkISize</a> <a href='#SkBitmap_dimensions'>dimensions()</a> const;
48 …<a href='SkIRect_Reference#SkIRect'>SkIRect</a> <a href='#SkBitmap_getSubset'>getSubset</a>() cons…
49 …a href='#SkBitmap_setInfo'>setInfo</a>(const <a href='SkImageInfo_Reference#SkImageInfo'>SkImageIn…
51 enum <a href='#SkBitmap_AllocFlags'>AllocFlags</a> {
52 <a href='#SkBitmap_kZeroPixels_AllocFlag'>kZeroPixels_AllocFlag</a> = 1 << 0,
55 …bool <a href='#SkBitmap_tryAllocPixelsFlags'>tryAllocPixelsFlags</a>(const <a href='SkImageInfo_Re…
56 …void <a href='#SkBitmap_allocPixelsFlags'>allocPixelsFlags</a>(const <a href='SkImageInfo_Referenc…
57 …a href='#SkBitmap_tryAllocPixels'>tryAllocPixels</a>(const <a href='SkImageInfo_Reference#SkImageI…
58 …a href='#SkBitmap_allocPixels'>allocPixels</a>(const <a href='SkImageInfo_Reference#SkImageInfo'>S…
59 …bool <a href='#SkBitmap_tryAllocPixels'>tryAllocPixels</a>(const <a href='SkImageInfo_Reference#Sk…
60 …void <a href='#SkBitmap_allocPixels'>allocPixels</a>(const <a href='SkImageInfo_Reference#SkImageI…
61 …bool <a href='#SkBitmap_tryAllocN32Pixels'>tryAllocN32Pixels</a>(int width, int height, bool <a hr…
62 …void <a href='#SkBitmap_allocN32Pixels'>allocN32Pixels</a>(int width, int height, bool <a href='#S…
63 …a href='#SkBitmap_installPixels'>installPixels</a>(const <a href='SkImageInfo_Reference#SkImageInf…
65 …a href='#SkBitmap_installPixels'>installPixels</a>(const <a href='SkImageInfo_Reference#SkImageInf…
66 …a href='#SkBitmap_installPixels'>installPixels</a>(const <a href='SkPixmap_Reference#SkPixmap'>SkP…
67 void <a href='#SkBitmap_setPixels'>setPixels</a>(void* pixels);
68 bool <a href='#SkBitmap_tryAllocPixels'>tryAllocPixels</a>();
69 void <a href='#SkBitmap_allocPixels'>allocPixels</a>();
70 …bool <a href='#SkBitmap_tryAllocPixels'>tryAllocPixels</a>(<a href='#SkBitmap_Allocator'>Allocator…
71 …void <a href='#SkBitmap_allocPixels'>allocPixels</a>(<a href='#SkBitmap_Allocator'>Allocator</a>* …
72 …<a href='undocumented#SkPixelRef'>SkPixelRef</a>* <a href='#SkBitmap_pixelRef'>pixelRef</a>() cons…
73 …<a href='SkIPoint_Reference#SkIPoint'>SkIPoint</a> <a href='#SkBitmap_pixelRefOrigin'>pixelRefOrig…
74 …a href='#SkBitmap_setPixelRef'>setPixelRef</a>(<a href='undocumented#sk_sp'>sk_sp</a><<a href='und…
75 bool <a href='#SkBitmap_readyToDraw'>readyToDraw</a>() const;
76 uint32_t <a href='#SkBitmap_getGenerationID'>getGenerationID</a>() const;
77 void <a href='#SkBitmap_notifyPixelsChanged'>notifyPixelsChanged</a>() const;
78 …void <a href='#SkBitmap_eraseColor'>eraseColor</a>(<a href='SkColor_Reference#SkColor'>SkColor</a>…
79 …a href='#SkBitmap_eraseARGB'>eraseARGB</a>(<a href='undocumented#U8CPU'>U8CPU</a> a, <a href='undo…
80 …void <a href='#SkBitmap_erase'>erase</a>(<a href='SkColor_Reference#SkColor'>SkColor</a> c, const …
81 …<a href='SkColor_Reference#SkColor'>SkColor</a> <a href='#SkBitmap_getColor'>getColor</a>(int x, i…
82 float <a href='#SkBitmap_getAlphaf'>getAlphaf</a>(int x, int y) const;
83 void* <a href='#SkBitmap_getAddr'>getAddr</a>(int x, int y) const;
84 uint32_t* <a href='#SkBitmap_getAddr32'>getAddr32</a>(int x, int y) const;
85 uint16_t* <a href='#SkBitmap_getAddr16'>getAddr16</a>(int x, int y) const;
86 uint8_t* <a href='#SkBitmap_getAddr8'>getAddr8</a>(int x, int y) const;
87 …a href='#SkBitmap_extractSubset'>extractSubset</a>(<a href='SkBitmap_Reference#SkBitmap'>SkBitmap<…
88 …bool <a href='#SkBitmap_readPixels'>readPixels</a>(const <a href='SkImageInfo_Reference#SkImageInf…
90 …bool <a href='#SkBitmap_readPixels'>readPixels</a>(const <a href='SkPixmap_Reference#SkPixmap'>SkP…
91 …bool <a href='#SkBitmap_readPixels'>readPixels</a>(const <a href='SkPixmap_Reference#SkPixmap'>SkP…
92 …bool <a href='#SkBitmap_writePixels'>writePixels</a>(const <a href='SkPixmap_Reference#SkPixmap'>S…
93 …bool <a href='#SkBitmap_writePixels'>writePixels</a>(const <a href='SkPixmap_Reference#SkPixmap'>S…
94 …bool <a href='#SkBitmap_extractAlpha'>extractAlpha</a>(<a href='SkBitmap_Reference#SkBitmap'>SkBit…
95 …a href='#SkBitmap_extractAlpha'>extractAlpha</a>(<a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a…
96 <a href='SkIPoint_Reference#SkIPoint'>SkIPoint</a>* offset) const;
97 …a href='#SkBitmap_extractAlpha'>extractAlpha</a>(<a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a…
98 <a href='SkIPoint_Reference#SkIPoint'>SkIPoint</a>* offset) const;
99 …ool <a href='#SkBitmap_peekPixels'>peekPixels</a>(<a href='SkPixmap_Reference#SkPixmap'>SkPixmap</…
100 void <a href='#SkBitmap_validate'>validate()</a> const;
105 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> describes a two-dimensional raster <a href='undocume…
106 …a href='#Image_Info'>Image_Info</a>, containing integer width and height, <a href='#Image_Info_Col…
107 describing the <a href='undocumented#Pixel'>pixel</a> format, and <a href='#Color_Space'>Color_Spac…
108 <a href='SkBitmap_Reference#Bitmap'>Bitmap</a> <a href='SkPoint_Reference#Point'>points</a> to <a h…
109 <a href='#Image_Info'>Image_Info</a> bounds may be located anywhere fully inside <a href='#Pixel_Re…
111 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> can be drawn using <a href='SkCanvas_Reference#Canva…
112 draw member functions. <a href='SkBitmap_Reference#Bitmap'>Bitmap</a> flexibility as a <a href='und…
115 If <a href='undocumented#Pixel'>pixel</a> array is primarily read-only, use <a href='SkImage_Refere…
116 If <a href='undocumented#Pixel'>pixel</a> array is primarily written to, use <a href='SkSurface_Ref…
118 …a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> const prevents altering <a href='#Image_Info'>Im…
119 and so on cannot change. It does not affect <a href='#Pixel_Ref'>Pixel_Ref</a>: a caller may write …
120 pixels. Declaring <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> const affects <a href='SkBitma…
122 <a href='SkBitmap_Reference#Bitmap'>Bitmap</a> is not thread safe. Each thread must have its own co…
123 although threads may share the underlying <a href='undocumented#Pixel'>pixel</a> array.
125 <a name='Row_Bytes'></a>
127 <a href='SkBitmap_Reference#Bitmap'>Bitmap</a> pixels may be contiguous, or may have a gap at the e…
128 <a href='#Bitmap_Row_Bytes'>Row_Bytes</a> is the interval from one row to the next. <a href='#Bitma…
129 sometimes passing zero will compute the <a href='#Bitmap_Row_Bytes'>Row_Bytes</a> from the row widt…
130 number of bytes in a <a href='undocumented#Pixel'>pixel</a>. <a href='#Bitmap_Row_Bytes'>Row_Bytes<…
131 … to position one or more <a href='SkBitmap_Reference#Bitmap'>Bitmaps</a> within a shared <a href='…
133 <a name='SkBitmap_Allocator'></a>
138 …class <a href='#SkBitmap_Allocator'>Allocator</a> : public <a href='undocumented#SkRefCnt'>SkRefCn…
140 …a href='#SkBitmap_Allocator_allocPixelRef'>allocPixelRef</a>(<a href='SkBitmap_Reference#SkBitmap'…
145 Abstract subclass of <a href='#SkBitmap_HeapAllocator'>HeapAllocator</a>.
147 <a name='SkBitmap_Allocator_allocPixelRef'></a>
152 …a href='#SkBitmap_Allocator_allocPixelRef'>allocPixelRef</a>(<a href='SkBitmap_Reference#SkBitmap'…
155 Allocates the <a href='undocumented#Pixel'>pixel</a> memory for the <a href='#SkBitmap_Allocator_al…
156 …a href='SkImageInfo_Reference#SkColorType'>SkColorType</a>. Returns true on success, where success…
157 or <a href='#SkBitmap_setPixelRef'>setPixelRef</a>() was called.
161 <table> <tr> <td><a name='SkBitmap_Allocator_allocPixelRef_bitmap'><code><strong>bitmap</strong…
162 …a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> containing <a href='SkImageInfo_Reference#SkImag…
168 true if <a href='undocumented#SkPixelRef'>SkPixelRef</a> was allocated
172 <a href='#SkBitmap_HeapAllocator'>HeapAllocator</a>
174 <a name='SkBitmap_HeapAllocator'></a>
179 …class <a href='#SkBitmap_HeapAllocator'>HeapAllocator</a> : public <a href='#SkBitmap_Allocator'>A…
181 …a href='#SkBitmap_HeapAllocator_allocPixelRef'>allocPixelRef</a>(<a href='SkBitmap_Reference#SkBit…
186 …a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>::<a href='#SkBitmap_Allocator'>Allocator</a> tha…
187 …he heap. This is the default <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>::<a href='#SkBitma…
188 <a href='#SkBitmap_allocPixels'>allocPixels</a>.
190 <a name='SkBitmap_HeapAllocator_allocPixelRef'></a>
195 …a href='#SkBitmap_HeapAllocator_allocPixelRef'>allocPixelRef</a>(<a href='SkBitmap_Reference#SkBit…
198 Allocates the <a href='undocumented#Pixel'>pixel</a> memory for the <a href='#SkBitmap_HeapAllocato…
199 …a href='SkImageInfo_Reference#SkColorType'>SkColorType</a>. Returns true on success, where success…
200 or <a href='#SkBitmap_setPixelRef'>setPixelRef</a>() was called.
204 <table> <tr> <td><a name='SkBitmap_HeapAllocator_allocPixelRef_bitmap'><code><strong>bitmap</st…
205 …a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> containing <a href='SkImageInfo_Reference#SkImag…
229 <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>::<a href='#SkBitmap_Allocator'>Allocator</a> <a …
231 <a name='SkBitmap_empty_constructor'></a>
236 <a href='#SkBitmap_empty_constructor'>SkBitmap()</a>
239 …y <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> without pixels, with <a href='SkImageInfo_Ref…
240 …a href='SkImageInfo_Reference#kUnknown_SkAlphaType'>kUnknown_SkAlphaType</a>, and with a width and…
241 set to (0, 0). <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> is not volatile.
243 …a href='#SkBitmap_setInfo'>setInfo</a>() to associate <a href='SkImageInfo_Reference#SkColorType'>…
244 after <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> has been created.
248 empty <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>
265 <a href='#SkBitmap_setInfo'>setInfo</a>
267 <a name='SkBitmap_copy_const_SkBitmap'></a>
272 <a href='#SkBitmap_copy_const_SkBitmap'>SkBitmap</a>(const <a href='SkBitmap_Reference#SkBitmap'>Sk…
275 …a href='#SkBitmap_copy_const_SkBitmap_src'>src</a> to returned <a href='SkBitmap_Reference#SkBitma…
276 allocated, so both <a href='SkBitmap_Reference#Bitmap'>bitmaps</a> reference the same pixels.
280 <table> <tr> <td><a name='SkBitmap_copy_const_SkBitmap_src'><code><strong>src</strong></code></…
281 …a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> to copy <a href='SkImageInfo_Reference#SkImageIn…
287 copy of <a href='#SkBitmap_copy_const_SkBitmap_src'>src</a>
305 …a href='#SkBitmap_setInfo'>setInfo</a> <a href='#SkBitmap_setPixelRef'>setPixelRef</a> <a href='#S…
307 <a name='SkBitmap_move_SkBitmap'></a>
312 <a href='#SkBitmap_move_SkBitmap'>SkBitmap</a>(<a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>&&…
315 …a href='#SkBitmap_move_SkBitmap_src'>src</a> to returned <a href='SkBitmap_Reference#SkBitmap'>SkB…
316 <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>.
320 <table> <tr> <td><a name='SkBitmap_move_SkBitmap_src'><code><strong>src</strong></code></a></td>
321 …a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> to copy <a href='SkImageInfo_Reference#SkImageIn…
327 copy of <a href='#SkBitmap_move_SkBitmap_src'>src</a>
345 …a href='#SkBitmap_setInfo'>setInfo</a> <a href='#SkBitmap_setPixelRef'>setPixelRef</a> <a href='#S…
347 <a name='SkBitmap_destructor'></a>
352 <a href='#SkBitmap_destructor'>~SkBitmap()</a>
355 Decrements <a href='undocumented#SkPixelRef'>SkPixelRef</a> reference count, if <a href='undocument…
359 <a href='#Pixel_Ref'>Pixel_Ref</a>
361 <a name='SkBitmap_copy_operator'></a>
366 …a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>& <a href='#SkBitmap_copy_operator'>operator=</a>…
369 …a href='#SkBitmap_copy_operator_src'>src</a> to returned <a href='SkBitmap_Reference#SkBitmap'>SkB…
370 allocated, so both <a href='SkBitmap_Reference#Bitmap'>bitmaps</a> reference the same pixels.
374 <table> <tr> <td><a name='SkBitmap_copy_operator_src'><code><strong>src</strong></code></a></td>
375 …a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> to copy <a href='SkImageInfo_Reference#SkImageIn…
381 copy of <a href='#SkBitmap_copy_operator_src'>src</a>
399 …a href='#SkBitmap_setInfo'>setInfo</a> <a href='#SkBitmap_setPixelRef'>setPixelRef</a> <a href='#S…
401 <a name='SkBitmap_move_operator'></a>
406 <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>& <a href='#SkBitmap_move_operator'>operator=</a>…
409 …a href='#SkBitmap_move_operator_src'>src</a> to returned <a href='SkBitmap_Reference#SkBitmap'>SkB…
410 <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>.
414 <table> <tr> <td><a name='SkBitmap_move_operator_src'><code><strong>src</strong></code></a></td>
415 …a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> to copy <a href='SkImageInfo_Reference#SkImageIn…
421 copy of <a href='#SkBitmap_move_operator_src'>src</a>
439 …a href='#SkBitmap_setInfo'>setInfo</a> <a href='#SkBitmap_setPixelRef'>setPixelRef</a> <a href='#S…
441 <a name='SkBitmap_swap'></a>
446 void <a href='#SkBitmap_swap'>swap</a>(<a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>& other)
449 Swaps the fields of the two <a href='SkBitmap_Reference#Bitmap'>bitmaps</a>.
453 <table> <tr> <td><a name='SkBitmap_swap_other'><code><strong>other</strong></code></a></td>
454 <td><a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> exchanged with original</td>
475 …a href='#SkBitmap_move_SkBitmap'>SkBitmap</a>(<a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>&&…
477 <a name='Property'></a>
479 <a name='SkBitmap_pixmap'></a>
484 const <a href='SkPixmap_Reference#SkPixmap'>SkPixmap</a>& <a href='#SkBitmap_pixmap'>pixmap()</a>co…
487 …a constant reference to the <a href='SkPixmap_Reference#SkPixmap'>SkPixmap</a> holding the <a href…
488 address, row bytes, and <a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a>.
492 reference to <a href='SkPixmap_Reference#SkPixmap'>SkPixmap</a> describing this <a href='SkBitmap_R…
518 …a href='#SkBitmap_peekPixels'>peekPixels</a> <a href='#SkBitmap_installPixels'>installPixels</a> <…
520 <a name='SkBitmap_info'></a>
525 const <a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a>& <a href='#SkBitmap_info'>info()<…
528 …a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a>, <a href='SkImageInfo_Reference#SkColor…
532 reference to <a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a>
548 <a href='#Image_Info'>Image_Info</a>
550 <a name='SkBitmap_width'></a>
555 int <a href='#SkBitmap_width'>width()</a>const
558 Returns <a href='undocumented#Pixel'>pixel</a> count in each row. Should be equal or less than
559 <code><a href='#SkBitmap_rowBytes'>rowBytes</a>() / <a href='#SkBitmap_info'>info()</a>.<a href='#S…
561 …a href='#SkBitmap_pixelRef'>pixelRef</a>().<a href='#SkPixelRef_width'>width()</a>. Will not excee…
562 <a href='#SkBitmap_pixelRefOrigin'>pixelRefOrigin</a>().<a href='#SkIPoint_fX'>fX</a>.
566 <a href='undocumented#Pixel'>pixel</a> width in <a href='#Image_Info'>Image_Info</a>
582 …a href='#SkBitmap_height'>height()</a> <a href='undocumented#SkPixelRef'>SkPixelRef</a>::<a href='…
584 <a name='SkBitmap_height'></a>
589 int <a href='#SkBitmap_height'>height()</a>const
592 Returns <a href='undocumented#Pixel'>pixel</a> row count.
594 …a href='#SkBitmap_pixelRef'>pixelRef</a>().<a href='#SkPixelRef_height'>height()</a>. Will not exc…
595 <a href='#SkBitmap_pixelRefOrigin'>pixelRefOrigin</a>().<a href='#SkIPoint_fY'>fY</a>.
599 <a href='undocumented#Pixel'>pixel</a> height in <a href='SkImageInfo_Reference#SkImageInfo'>SkImag…
615 …a href='#SkBitmap_width'>width()</a> <a href='undocumented#SkPixelRef'>SkPixelRef</a>::<a href='#S…
617 <a name='SkBitmap_colorType'></a>
622 <a href='SkImageInfo_Reference#SkColorType'>SkColorType</a> <a href='#SkBitmap_colorType'>colorType…
625 …a href='#Image_Info_Color_Type'>Color_Type</a>, one of: <a href='SkImageInfo_Reference#kUnknown_Sk…
626 …a href='SkImageInfo_Reference#kARGB_4444_SkColorType'>kARGB_4444_SkColorType</a>, <a href='SkImage…
627 …a href='SkImageInfo_Reference#kBGRA_8888_SkColorType'>kBGRA_8888_SkColorType</a>, <a href='SkImage…
628 …a href='SkImageInfo_Reference#kGray_8_SkColorType'>kGray_8_SkColorType</a>, <a href='SkImageInfo_R…
633 <a href='#Image_Info_Color_Type'>Color_Type</a> in <a href='#Image_Info'>Image_Info</a>
649 <a href='#SkBitmap_alphaType'>alphaType</a>() <a href='SkImageInfo_Reference#SkImageInfo'>SkImageIn…
651 <a name='SkBitmap_alphaType'></a>
656 <a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a> <a href='#SkBitmap_alphaType'>alphaType…
659 …a href='#Image_Info_Alpha_Type'>Alpha_Type</a>, one of: <a href='SkImageInfo_Reference#kUnknown_Sk…
660 <a href='SkImageInfo_Reference#kUnpremul_SkAlphaType'>kUnpremul_SkAlphaType</a>
665 <a href='#Image_Info_Alpha_Type'>Alpha_Type</a> in <a href='#Image_Info'>Image_Info</a>
681 <a href='#SkBitmap_colorType'>colorType</a>() <a href='SkImageInfo_Reference#SkImageInfo'>SkImageIn…
683 <a name='SkBitmap_colorSpace'></a>
688 <a href='undocumented#SkColorSpace'>SkColorSpace</a>* <a href='#SkBitmap_colorSpace'>colorSpace</a>…
691 … <a href='undocumented#SkColorSpace'>SkColorSpace</a>, the range of colors, associated with <a hre…
692 … count of <a href='undocumented#SkColorSpace'>SkColorSpace</a> is unchanged. The returned <a href=…
697 <a href='undocumented#SkColorSpace'>SkColorSpace</a> in <a href='SkImageInfo_Reference#SkImageInfo'…
701 …a href='undocumented#SkColorSpace'>SkColorSpace</a>::<a href='#SkColorSpace_MakeSRGBLinear'>MakeSR…
702 and an sRGB gamut. This <a href='#Color_Space'>Color_Space</a> gamma is not close to sRGB gamma.
715 <a href='#Color_Space'>Color_Space</a> <a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a>:…
717 <a name='SkBitmap_refColorSpace'></a>
722 <a href='undocumented#sk_sp'>sk_sp</a><<a href='undocumented#SkColorSpace'>SkColorSpace</a>> …
725 Returns smart pointer to <a href='undocumented#SkColorSpace'>SkColorSpace</a>, the range of colors,…
726 <a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a>. The smart pointer tracks the number of…
727 <a href='undocumented#SkColorSpace'>SkColorSpace</a> reference so the memory is released when the o…
729 The returned <a href='undocumented#SkColorSpace'>SkColorSpace</a> is immutable.
733 <a href='undocumented#SkColorSpace'>SkColorSpace</a> in <a href='SkImageInfo_Reference#SkImageInfo'…
749 <a href='#Color_Space'>Color_Space</a> <a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a>:…
751 <a name='SkBitmap_bytesPerPixel'></a>
756 int <a href='#SkBitmap_bytesPerPixel'>bytesPerPixel</a>()const
759 … number of bytes per <a href='undocumented#Pixel'>pixel</a> required by <a href='SkImageInfo_Refer…
760 …turns zero if <a href='#SkBitmap_colorType'>colorType</a>( is <a href='SkImageInfo_Reference#kUnkn…
764 bytes in <a href='undocumented#Pixel'>pixel</a>
768 …a href='SkImageInfo_Reference#kUnknown_SkColorType'>kUnknown_SkColorType</a>, <a href='SkImageInfo…
769 …a href='SkImageInfo_Reference#kARGB_4444_SkColorType'>kARGB_4444_SkColorType</a>, <a href='SkImage…
770 …a href='SkImageInfo_Reference#kBGRA_8888_SkColorType'>kBGRA_8888_SkColorType</a>, <a href='SkImage…
771 …a href='SkImageInfo_Reference#kGray_8_SkColorType'>kGray_8_SkColorType</a>, <a href='SkImageInfo_R…
793 …a href='#SkBitmap_rowBytes'>rowBytes</a> <a href='#SkBitmap_rowBytesAsPixels'>rowBytesAsPixels</a>…
795 <a name='SkBitmap_rowBytesAsPixels'></a>
800 int <a href='#SkBitmap_rowBytesAsPixels'>rowBytesAsPixels</a>()const
804 <a href='#SkBitmap_width'>width()</a>.
828 …a href='#SkBitmap_rowBytes'>rowBytes</a> <a href='#SkBitmap_shiftPerPixel'>shiftPerPixel</a> <a hr…
830 <a name='SkBitmap_shiftPerPixel'></a>
835 int <a href='#SkBitmap_shiftPerPixel'>shiftPerPixel</a>()const
839 Returns zero for <a href='SkImageInfo_Reference#kUnknown_SkColorType'>kUnknown_SkColorType</a>.
847 …a href='SkImageInfo_Reference#kUnknown_SkColorType'>kUnknown_SkColorType</a>, <a href='SkImageInfo…
848 …a href='SkImageInfo_Reference#kARGB_4444_SkColorType'>kARGB_4444_SkColorType</a>, <a href='SkImage…
849 …a href='SkImageInfo_Reference#kBGRA_8888_SkColorType'>kBGRA_8888_SkColorType</a>, <a href='SkImage…
850 …a href='SkImageInfo_Reference#kGray_8_SkColorType'>kGray_8_SkColorType</a>, <a href='SkImageInfo_R…
872 …a href='#SkBitmap_rowBytes'>rowBytes</a> <a href='#SkBitmap_rowBytesAsPixels'>rowBytesAsPixels</a>…
874 <a name='SkBitmap_empty'></a>
879 bool <a href='#SkBitmap_empty'>empty()</a>const
882 Returns true if either <a href='#SkBitmap_width'>width()</a> or <a href='#SkBitmap_height'>height()…
884 …a href='undocumented#SkPixelRef'>SkPixelRef</a> is nullptr; call <a href='#SkBitmap_drawsNothing'>…
885 <a href='#SkBitmap_height'>height()</a>, and <a href='undocumented#SkPixelRef'>SkPixelRef</a>.
908 <a href='#SkBitmap_height'>height()</a> <a href='#SkBitmap_width'>width()</a> <a href='#SkBitmap_dr…
910 <a name='SkBitmap_isNull'></a>
915 bool <a href='#SkBitmap_isNull'>isNull</a>()const
918 Returns true if <a href='undocumented#SkPixelRef'>SkPixelRef</a> is nullptr.
920 … if <a href='#SkBitmap_width'>width()</a> or <a href='#SkBitmap_height'>height()</a> are zero; cal…
921 <a href='#SkBitmap_width'>width()</a>, <a href='#SkBitmap_height'>height()</a>, and <a href='undocu…
925 true if no <a href='undocumented#SkPixelRef'>SkPixelRef</a> is associated
943 <a href='#SkBitmap_empty'>empty()</a> <a href='#SkBitmap_drawsNothing'>drawsNothing</a> <a href='#S…
945 <a name='SkBitmap_drawsNothing'></a>
950 bool <a href='#SkBitmap_drawsNothing'>drawsNothing</a>()const
953 … if <a href='#SkBitmap_width'>width()</a> or <a href='#SkBitmap_height'>height()</a> are zero, or …
954 If true, <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> has no effect when drawn or drawn into.
977 <a href='#SkBitmap_empty'>empty()</a> <a href='#SkBitmap_isNull'>isNull</a> <a href='#SkBitmap_pixe…
979 <a name='SkBitmap_rowBytes'></a>
984 size_t <a href='#SkBitmap_rowBytes'>rowBytes</a>()const
987 Returns row bytes, the interval from one <a href='undocumented#Pixel'>pixel</a> row to the next. Ro…
988 … as: <code><a href='#SkBitmap_width'>width()</a> * <a href='#SkBitmap_info'>info()</a>.<a href='#S…
990 …turns zero if <a href='#SkBitmap_colorType'>colorType</a> is <a href='SkImageInfo_Reference#kUnkno…
991 <a href='#SkBitmap_setInfo'>setInfo</a> is not large enough to hold a row of pixels.
995 byte length of <a href='undocumented#Pixel'>pixel</a> row
1012 …a href='#SkBitmap_info'>info()</a> <a href='#SkBitmap_setInfo'>setInfo</a> <a href='SkImageInfo_Re…
1014 <a name='SkBitmap_setAlphaType'></a>
1019 …<a href='#SkBitmap_setAlphaType'>setAlphaType</a>(<a href='SkImageInfo_Reference#SkAlphaType'>SkAl…
1022 …a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a>, if <a href='#SkBitmap_setAlphaType_alp…
1023 …a href='#SkBitmap_setAlphaType_alphaType'>alphaType</a> is <a href='SkImageInfo_Reference#kUnknown…
1024 is not <a href='SkImageInfo_Reference#kUnknown_SkAlphaType'>kUnknown_SkAlphaType</a>.
1026 …a href='SkImageInfo_Reference#SkColorType'>SkColorType</a> is <a href='SkImageInfo_Reference#kUnkn…
1027 <a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a> remains <a href='SkImageInfo_Reference#…
1029 …a href='SkImageInfo_Reference#SkColorType'>SkColorType</a> is <a href='SkImageInfo_Reference#kRGB_…
1030 …a href='#SkBitmap_setAlphaType_alphaType'>alphaType</a> is ignored, and <a href='SkImageInfo_Refer…
1032 …a href='SkImageInfo_Reference#SkColorType'>SkColorType</a> is <a href='SkImageInfo_Reference#kARGB…
1033 …a href='SkImageInfo_Reference#kBGRA_8888_SkColorType'>kBGRA_8888_SkColorType</a>, or <a href='SkIm…
1034 …a href='#SkBitmap_setAlphaType_alphaType'>alphaType</a> is <a href='SkImageInfo_Reference#kUnknown…
1035 …a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a> is <a href='SkImageInfo_Reference#kUnkn…
1037 If <a href='SkImageInfo_Reference#SkColorType'>SkColorType</a> is <a href='SkImageInfo_Reference#kA…
1038 …a href='#SkBitmap_setAlphaType_alphaType'>alphaType</a> is <a href='SkImageInfo_Reference#kUnknown…
1039 …a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a> is <a href='SkImageInfo_Reference#kUnkn…
1040 …a href='SkImageInfo_Reference#kUnpremul_SkAlphaType'>kUnpremul_SkAlphaType</a>, it is treated as <…
1042 …a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a> in <a href='undocumented#SkPixelRef'>Sk…
1047 <table> <tr> <td><a name='SkBitmap_setAlphaType_alphaType'><code><strong>alphaType</strong></co…
1052 …a href='SkImageInfo_Reference#kUnknown_SkAlphaType'>kUnknown_SkAlphaType</a>, <a href='SkImageInfo…
1053 <a href='SkImageInfo_Reference#kUnpremul_SkAlphaType'>kUnpremul_SkAlphaType</a>
1057 true if <a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a> is set
1061 …a href='SkImageInfo_Reference#kUnknown_SkAlphaType'>kUnknown_SkAlphaType</a>, <a href='SkImageInfo…
1062 <a href='SkImageInfo_Reference#kUnpremul_SkAlphaType'>kUnpremul_SkAlphaType</a>
1063 …a href='SkImageInfo_Reference#kUnknown_SkColorType'>kUnknown_SkColorType</a>, <a href='SkImageInfo…
1064 …a href='SkImageInfo_Reference#kARGB_4444_SkColorType'>kARGB_4444_SkColorType</a>, <a href='SkImage…
1065 …a href='SkImageInfo_Reference#kBGRA_8888_SkColorType'>kBGRA_8888_SkColorType</a>, <a href='SkImage…
1066 …a href='SkImageInfo_Reference#kGray_8_SkColorType'>kGray_8_SkColorType</a>, <a href='SkImageInfo_R…
1071 …a href='#Image_Info_Alpha_Type'>Alpha_Type</a> <a href='#Image_Info_Color_Type'>Color_Type</a> <a …
1073 <a name='SkBitmap_getPixels'></a>
1078 void* <a href='#SkBitmap_getPixels'>getPixels</a>()const
1081 Returns <a href='undocumented#Pixel'>pixel</a> address, the base address corresponding to the <a hr…
1085 <a href='undocumented#Pixel'>pixel</a> address
1102 <a href='#SkBitmap_isNull'>isNull</a> <a href='#SkBitmap_drawsNothing'>drawsNothing</a>
1104 <a name='SkBitmap_computeByteSize'></a>
1109 size_t <a href='#SkBitmap_computeByteSize'>computeByteSize</a>()const
1112 Returns minimum memory required for <a href='undocumented#Pixel'>pixel</a> storage.
1113 …memory on last row when <a href='#SkBitmap_rowBytesAsPixels'>rowBytesAsPixels</a>() exceeds <a hre…
1115 Returns zero if <a href='#SkBitmap_height'>height()</a> or <a href='#SkBitmap_width'>width()</a> is…
1116 …a href='#SkBitmap_height'>height()</a> times <a href='#SkBitmap_rowBytes'>rowBytes</a>() if <a hre…
1120 <a href='undocumented#Size'>size</a> in bytes of <a href='SkImage_Reference#Image'>image</a> buffer
1144 <a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a>::<a href='#SkImageInfo_computeByteSize'…
1146 <a name='SkBitmap_isImmutable'></a>
1151 bool <a href='#SkBitmap_isImmutable'>isImmutable</a>()const
1156 Most immutable <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> checks trigger an assert only on …
1177 …a href='#SkBitmap_setImmutable'>setImmutable</a> <a href='undocumented#SkPixelRef'>SkPixelRef</a>:…
1179 <a name='SkBitmap_setImmutable'></a>
1184 void <a href='#SkBitmap_setImmutable'>setImmutable</a>()
1187 Sets internal flag to mark <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> as immutable. Once se…
1188 Any other <a href='SkBitmap_Reference#Bitmap'>bitmap</a> sharing the same <a href='undocumented#SkP…
1189 Once <a href='undocumented#SkPixelRef'>SkPixelRef</a> is marked immutable, the setting cannot be cl…
1191 Writing to immutable <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> pixels triggers an assert o…
1200 …a href='#SkBitmap_isImmutable'>isImmutable</a> <a href='undocumented#SkPixelRef'>SkPixelRef</a>::<…
1202 <a name='SkBitmap_isOpaque'></a>
1207 bool <a href='#SkBitmap_isOpaque'>isOpaque</a>()const
1210 Returns true if <a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a> is set to hint that all…
1211 <a href='SkColor_Reference#Alpha'>alpha</a> value is implicitly or explicitly 1.0. If true, and all…
1214 …a href='SkImageInfo_Reference#SkColorType'>SkColorType</a> allows <a href='SkColor_Reference#Alpha…
1219 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> <a href='SkImageInfo_Reference#SkAlphaT…
1223 …ddle-embed name="5e76b68bb46d54315eb0c12d83bd6949"><div><a href='#SkBitmap_isOpaque'>isOpaque</a> …
1239 …a href='#SkBitmap_ComputeIsOpaque'>ComputeIsOpaque</a> <a href='SkImageInfo_Reference#SkImageInfo'…
1241 <a name='SkBitmap_isVolatile'></a>
1246 bool <a href='#SkBitmap_isVolatile'>isVolatile</a>()const
1249 Provides a hint to caller that pixels should not be cached. Only true if
1250 <a href='#SkBitmap_setIsVolatile'>setIsVolatile</a>() has been called to mark as volatile.
1252 …not shared by other <a href='SkBitmap_Reference#Bitmap'>bitmaps</a> sharing the same <a href='undo…
1273 <a href='#SkBitmap_setIsVolatile'>setIsVolatile</a>
1275 <a name='SkBitmap_setIsVolatile'></a>
1280 void <a href='#SkBitmap_setIsVolatile'>setIsVolatile</a>(bool <a href='#SkBitmap_isVolatile'>isVola…
1283 …ould be read from <a href='undocumented#SkPixelRef'>SkPixelRef</a> on every access. <a href='SkBit…
1284 volatile by default; a GPU back end may upload <a href='undocumented#Pixel'>pixel</a> values expect…
1285 accessed repeatedly. Marking temporary <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> as volati…
1286 <a href='undocumented#SkBaseDevice'>SkBaseDevice</a> that the <a href='SkBitmap_Reference#SkBitmap'…
1288 consumption on <a href='undocumented#SkBaseDevice'>SkBaseDevice</a>.
1292 <table> <tr> <td><a name='SkBitmap_setIsVolatile_isVolatile'><code><strong>isVolatile</strong><…
1303 <a href='#SkBitmap_setIsVolatile_isVolatile'>isVolatile</a>
1305 <a name='SkBitmap_reset'></a>
1310 void <a href='#SkBitmap_reset'>reset()</a>
1313 …s initial state; all fields are set to zero, as if <a href='SkBitmap_Reference#SkBitmap'>SkBitmap<…
1314 been initialized by <a href='#SkBitmap_empty_constructor'>SkBitmap()</a>.
1316 …w bytes to zero; <a href='undocumented#Pixel'>pixel</a> address to nullptr; <a href='SkImageInfo_R…
1317 …a href='SkImageInfo_Reference#kUnknown_SkColorType'>kUnknown_SkColorType</a>; and <a href='SkImage…
1319 If <a href='undocumented#SkPixelRef'>SkPixelRef</a> is allocated, its reference count is decreased …
1320 its memory if <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> is the sole owner.
1337 …a href='#SkBitmap_empty_constructor'>SkBitmap()</a> <a href='SkImageInfo_Reference#SkAlphaType'>Sk…
1339 <a name='SkBitmap_ComputeIsOpaque'></a>
1344 static bool <a href='#SkBitmap_ComputeIsOpaque'>ComputeIsOpaque</a>(const <a href='SkBitmap_Referen…
1347 Returns true if all pixels are opaque. <a href='SkImageInfo_Reference#SkColorType'>SkColorType</a> …
1348 …a href='undocumented#Pixel'>pixel</a> describes <a href='SkColor_Reference#Alpha'>alpha</a>. Retur…
1349 …a href='SkColor_Reference#Alpha'>alpha</a> in each <a href='undocumented#Pixel'>pixel</a>; for oth…
1350 pixels have <a href='SkColor_Reference#Alpha'>alpha</a> values equivalent to 1.0 or greater.
1352 …a href='SkImageInfo_Reference#SkColorType'>SkColorType</a> <a href='SkImageInfo_Reference#kRGB_565…
1353 …a href='SkImageInfo_Reference#SkColorType'>SkColorType</a> <a href='SkImageInfo_Reference#kAlpha_8…
1354 …a href='SkImageInfo_Reference#kRGBA_8888_SkColorType'>kRGBA_8888_SkColorType</a>: returns true if …
1355 …a href='SkImageInfo_Reference#SkColorType'>SkColorType</a> <a href='SkImageInfo_Reference#kARGB_44…
1356 …a href='SkImageInfo_Reference#kRGBA_F16_SkColorType'>kRGBA_F16_SkColorType</a>: returns true if al…
1359 Returns false for <a href='SkImageInfo_Reference#kUnknown_SkColorType'>kUnknown_SkColorType</a>.
1363 <table> <tr> <td><a name='SkBitmap_ComputeIsOpaque_bm'><code><strong>bm</strong></code></a></td>
1364 <td><a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> to check</td>
1370 true if all pixels have opaque values or <a href='SkImageInfo_Reference#SkColorType'>SkColorType</a…
1389 <a href='#SkBitmap_isOpaque'>isOpaque</a> <a href='#Image_Info_Color_Type'>Color_Type</a> <a href='…
1391 <a name='SkBitmap_getBounds'></a>
1396 void <a href='#SkBitmap_getBounds'>getBounds</a>(<a href='SkRect_Reference#SkRect'>SkRect</a>* boun…
1399 Returns <a href='SkRect_Reference#SkRect'>SkRect</a> { 0, 0, <a href='#SkBitmap_width'>width()</a>,…
1403 <table> <tr> <td><a name='SkBitmap_getBounds_bounds'><code><strong>bounds</strong></code></a></…
1404 <td>container for floating <a href='SkPoint_Reference#Point'>point</a> rectangle</td>
1414 <a href='#SkBitmap_bounds'>bounds()</a>
1416 <a name='SkBitmap_getBounds_2'></a>
1421 void <a href='#SkBitmap_getBounds'>getBounds</a>(<a href='SkIRect_Reference#SkIRect'>SkIRect</a>* b…
1424 Returns <a href='SkIRect_Reference#SkIRect'>SkIRect</a> { 0, 0, <a href='#SkBitmap_width'>width()</…
1428 <table> <tr> <td><a name='SkBitmap_getBounds_2_bounds'><code><strong>bounds</strong></code></a>…
1439 <a href='#SkBitmap_bounds'>bounds()</a>
1441 <a name='SkBitmap_bounds'></a>
1446 <a href='SkIRect_Reference#SkIRect'>SkIRect</a> <a href='#SkBitmap_bounds'>bounds()</a>const
1449 Returns <a href='SkIRect_Reference#SkIRect'>SkIRect</a> { 0, 0, <a href='#SkBitmap_width'>width()</…
1453 integral rectangle from origin to <a href='#SkBitmap_width'>width()</a> and <a href='#SkBitmap_heig…
1461 <a href='#SkBitmap_getBounds'>getBounds</a>
1463 <a name='SkBitmap_dimensions'></a>
1468 <a href='undocumented#SkISize'>SkISize</a> <a href='#SkBitmap_dimensions'>dimensions()</a>const
1471 Returns <a href='undocumented#SkISize'>SkISize</a> { <a href='#SkBitmap_width'>width()</a>, <a href…
1475 integral <a href='undocumented#Size'>size</a> of <a href='#SkBitmap_width'>width()</a> and <a href=…
1483 <a href='#SkBitmap_height'>height</a> <a href='#SkBitmap_width'>width</a>
1485 <a name='SkBitmap_getSubset'></a>
1490 <a href='SkIRect_Reference#SkIRect'>SkIRect</a> <a href='#SkBitmap_getSubset'>getSubset</a>()const
1493 …s the bounds of this <a href='SkBitmap_Reference#Bitmap'>bitmap</a>, offset by its <a href='undocu…
1497 bounds within <a href='undocumented#SkPixelRef'>SkPixelRef</a> bounds
1514 <a href='#SkBitmap_extractSubset'>extractSubset</a> <a href='#SkBitmap_getBounds'>getBounds</a>
1516 <a name='SkBitmap_setInfo'></a>
1521 …a href='#SkBitmap_setInfo'>setInfo</a>(const <a href='SkImageInfo_Reference#SkImageInfo'>SkImageIn…
1524 …height, <a href='#Image_Info_Alpha_Type'>Alpha_Type</a>, <a href='#Image_Info_Color_Type'>Color_Ty…
1525 <a href='#SkBitmap_setInfo_rowBytes'>rowBytes</a>. Frees pixels, and returns true if successful.
1527 …a href='#SkBitmap_setInfo_imageInfo'>imageInfo</a>.<a href='#SkImageInfo_alphaType'>alphaType</a>(…
1528 …a href='#SkBitmap_setInfo_imageInfo'>imageInfo</a>.<a href='#SkImageInfo_colorType'>colorType</a>(…
1529 set to <a href='SkImageInfo_Reference#kUnknown_SkAlphaType'>kUnknown_SkAlphaType</a>.
1530 …a href='#SkBitmap_setInfo_imageInfo'>imageInfo</a>.<a href='#SkImageInfo_colorType'>colorType</a>(…
1531 …a href='SkImageInfo_Reference#kUnpremul_SkAlphaType'>kUnpremul_SkAlphaType</a>, <a href='#SkBitmap…
1532 …a href='#SkBitmap_setInfo_imageInfo'>imageInfo</a>.<a href='#SkImageInfo_colorType'>colorType</a>(…
1533 …a href='#SkBitmap_setInfo_imageInfo'>imageInfo</a>.<a href='#SkImageInfo_alphaType'>alphaType</a>(…
1534 …a href='#SkBitmap_setInfo_imageInfo'>imageInfo</a>.<a href='#SkImageInfo_colorType'>colorType</a>(…
1535 …a href='SkImageInfo_Reference#kBGRA_8888_SkColorType'>kBGRA_8888_SkColorType</a>, or <a href='SkIm…
1538 …a href='#SkBitmap_setInfo_rowBytes'>rowBytes</a> must equal or exceed <a href='#SkBitmap_setInfo_i…
1539 <a href='SkImageInfo_Reference#kUnknown_SkColorType'>kUnknown_SkColorType</a>, <a href='#SkBitmap_s…
1540 …a href='#Color_Space'>Color_Space</a> values, <a href='#SkBitmap_setInfo_rowBytes'>rowBytes</a> of…
1542 Calls <a href='#SkBitmap_reset'>reset()</a> and returns false if:
1545 <td><a href='#SkBitmap_setInfo_rowBytes'>rowBytes</a> exceeds 31 bits</td>
1547 …<td><a href='#SkBitmap_setInfo_imageInfo'>imageInfo</a>.<a href='#SkImageInfo_width'>width()</a> i…
1549 …<td><a href='#SkBitmap_setInfo_imageInfo'>imageInfo</a>.<a href='#SkImageInfo_height'>height()</a>…
1551 …a href='#SkBitmap_setInfo_rowBytes'>rowBytes</a> is positive and less than <a href='#SkBitmap_setI…
1557 <table> <tr> <td><a name='SkBitmap_setInfo_imageInfo'><code><strong>imageInfo</strong></code></…
1558 …height, <a href='#Image_Info_Alpha_Type'>Alpha_Type</a>, <a href='#Image_Info_Color_Type'>Color_Ty…
1560 <tr> <td><a name='SkBitmap_setInfo_rowBytes'><code><strong>rowBytes</strong></code></a></td>
1561 …<td><a href='#SkBitmap_setInfo_imageInfo'>imageInfo</a>.<a href='#SkImageInfo_minRowBytes'>minRowB…
1567 true if <a href='#Image_Info'>Image_Info</a> set successfully
1575 …a href='#Image_Info_Alpha_Type'>Alpha_Type</a> <a href='#Image_Info_Color_Type'>Color_Type</a> <a …
1577 <a name='SkBitmap_AllocFlags'></a>
1582 enum <a href='#SkBitmap_AllocFlags'>AllocFlags</a> {
1583 <a href='#SkBitmap_kZeroPixels_AllocFlag'>kZeroPixels_AllocFlag</a> = 1 << 0,
1588 <a href='#SkBitmap_AllocFlags'>AllocFlags</a> provides the option to zero <a href='undocumented#Pix…
1597 … solid #dddddd; padding: 8px; '><a name='SkBitmap_kZeroPixels_AllocFlag'><code>SkBitmap::kZeroPixe…
1600 …a href='#SkBitmap_tryAllocPixelsFlags'>tryAllocPixelsFlags</a> and <a href='#SkBitmap_allocPixelsF…
1607 …a href='#SkBitmap_tryAllocPixelsFlags'>tryAllocPixelsFlags</a> <a href='#SkBitmap_allocPixelsFlags…
1609 <a name='Allocate'></a>
1611 <a name='SkBitmap_tryAllocPixelsFlags'></a>
1616 bool <a href='#SkBitmap_tryAllocPixelsFlags'>tryAllocPixelsFlags</a>(const <a href='SkImageInfo_Ref…
1619 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> to <a href='#SkBitmap_tryAllocPixelsFla…
1620 memory. If <a href='#SkBitmap_tryAllocPixelsFlags_flags'>flags</a> is <a href='#SkBitmap_kZeroPixel…
1622 Returns false and calls <a href='#SkBitmap_reset'>reset()</a> if <a href='SkImageInfo_Reference#SkI…
1625 On most platforms, allocating <a href='undocumented#Pixel'>pixel</a> memory may succeed even though…
1628 …c(), if <a href='#SkBitmap_tryAllocPixelsFlags_flags'>flags</a> is zero, and calloc(), if <a href=…
1629 <a href='#SkBitmap_kZeroPixels_AllocFlag'>kZeroPixels_AllocFlag</a>.
1631 <a href='#SkBitmap_tryAllocPixelsFlags_flags'>flags</a> set to <a href='#SkBitmap_kZeroPixels_Alloc…
1632 …ently calling <a href='#SkBitmap_eraseColor'>eraseColor</a>() with <a href='SkColor_Reference#SK_C…
1636 <table> <tr> <td><a name='SkBitmap_tryAllocPixelsFlags_info'><code><strong>info</strong></code>…
1637 …a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a>, <a href='SkImageInfo_Reference#SkColor…
1639 …<tr> <td><a name='SkBitmap_tryAllocPixelsFlags_flags'><code><strong>flags</strong></code></a></…
1640 <td><a href='#SkBitmap_kZeroPixels_AllocFlag'>kZeroPixels_AllocFlag</a>, or zero</td>
1662 …a href='#SkBitmap_allocPixelsFlags'>allocPixelsFlags</a> <a href='#SkBitmap_tryAllocPixels'>tryAll…
1664 <a name='SkBitmap_allocPixelsFlags'></a>
1669 void <a href='#SkBitmap_allocPixelsFlags'>allocPixelsFlags</a>(const <a href='SkImageInfo_Reference…
1672 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> to <a href='#SkBitmap_allocPixelsFlags_…
1673 memory. If <a href='#SkBitmap_allocPixelsFlags_flags'>flags</a> is <a href='#SkBitmap_kZeroPixels_A…
1675 Aborts execution if <a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> could not be set, o…
1680 On most platforms, allocating <a href='undocumented#Pixel'>pixel</a> memory may succeed even though…
1683 …lloc(), if <a href='#SkBitmap_allocPixelsFlags_flags'>flags</a> is zero, and calloc(), if <a href=…
1684 <a href='#SkBitmap_kZeroPixels_AllocFlag'>kZeroPixels_AllocFlag</a>.
1686 <a href='#SkBitmap_allocPixelsFlags_flags'>flags</a> set to <a href='#SkBitmap_kZeroPixels_AllocFla…
1687 …ently calling <a href='#SkBitmap_eraseColor'>eraseColor</a>() with <a href='SkColor_Reference#SK_C…
1691 <table> <tr> <td><a name='SkBitmap_allocPixelsFlags_info'><code><strong>info</strong></code></a…
1692 …a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a>, <a href='SkImageInfo_Reference#SkColor…
1694 <tr> <td><a name='SkBitmap_allocPixelsFlags_flags'><code><strong>flags</strong></code></a></td>
1695 <td><a href='#SkBitmap_kZeroPixels_AllocFlag'>kZeroPixels_AllocFlag</a>, or zero</td>
1701 …d"><div><a href='undocumented#Text'>Text</a> is drawn on a transparent background; drawing the <a …
1707 …a href='#SkBitmap_tryAllocPixelsFlags'>tryAllocPixelsFlags</a> <a href='#SkBitmap_allocPixels'>all…
1709 <a name='SkBitmap_tryAllocPixels'></a>
1714 …a href='#SkBitmap_tryAllocPixels'>tryAllocPixels</a>(const <a href='SkImageInfo_Reference#SkImageI…
1717 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> to <a href='#SkBitmap_tryAllocPixels_in…
1718 …a href='#SkBitmap_tryAllocPixels_rowBytes'>rowBytes</a> must equal or exceed <a href='#SkBitmap_tr…
1719 or equal zero. Pass in zero for <a href='#SkBitmap_tryAllocPixels_rowBytes'>rowBytes</a> to compute…
1721 Returns false and calls <a href='#SkBitmap_reset'>reset()</a> if <a href='SkImageInfo_Reference#SkI…
1724 On most platforms, allocating <a href='undocumented#Pixel'>pixel</a> memory may succeed even though…
1731 <table> <tr> <td><a name='SkBitmap_tryAllocPixels_info'><code><strong>info</strong></code></a><…
1732 …a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a>, <a href='SkImageInfo_Reference#SkColor…
1734 …<tr> <td><a name='SkBitmap_tryAllocPixels_rowBytes'><code><strong>rowBytes</strong></code></a><…
1735 …<td><a href='undocumented#Size'>size</a> of <a href='undocumented#Pixel'>pixel</a> row or larger; …
1741 true if <a href='undocumented#Pixel_Storage'>pixel storage</a> is allocated
1749 …a href='#SkBitmap_tryAllocPixelsFlags'>tryAllocPixelsFlags</a> <a href='#SkBitmap_allocPixels'>all…
1751 <a name='SkBitmap_allocPixels'></a>
1756 …a href='#SkBitmap_allocPixels'>allocPixels</a>(const <a href='SkImageInfo_Reference#SkImageInfo'>S…
1759 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> to <a href='#SkBitmap_allocPixels_info'…
1760 …a href='#SkBitmap_allocPixels_rowBytes'>rowBytes</a> must equal or exceed <a href='#SkBitmap_alloc…
1761 or equal zero. Pass in zero for <a href='#SkBitmap_allocPixels_rowBytes'>rowBytes</a> to compute th…
1763 Aborts execution if <a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> could not be set, o…
1767 On most platforms, allocating <a href='undocumented#Pixel'>pixel</a> memory may succeed even though…
1774 <table> <tr> <td><a name='SkBitmap_allocPixels_info'><code><strong>info</strong></code></a></td>
1775 …a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a>, <a href='SkImageInfo_Reference#SkColor…
1777 …<tr> <td><a name='SkBitmap_allocPixels_rowBytes'><code><strong>rowBytes</strong></code></a></td>
1778 …<td><a href='undocumented#Size'>size</a> of <a href='undocumented#Pixel'>pixel</a> row or larger; …
1788 …a href='#SkBitmap_tryAllocPixels'>tryAllocPixels</a> <a href='#SkBitmap_allocPixelsFlags'>allocPix…
1790 <a name='SkBitmap_tryAllocPixels_2'></a>
1795 bool <a href='#SkBitmap_tryAllocPixels'>tryAllocPixels</a>(const <a href='SkImageInfo_Reference#SkI…
1798 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> to <a href='#SkBitmap_tryAllocPixels_2_…
1801 Returns false and calls <a href='#SkBitmap_reset'>reset()</a> if <a href='SkImageInfo_Reference#SkI…
1804 On most platforms, allocating <a href='undocumented#Pixel'>pixel</a> memory may succeed even though…
1811 <table> <tr> <td><a name='SkBitmap_tryAllocPixels_2_info'><code><strong>info</strong></code></a…
1812 …a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a>, <a href='SkImageInfo_Reference#SkColor…
1818 true if <a href='undocumented#Pixel_Storage'>pixel storage</a> is allocated
1826 …a href='#SkBitmap_tryAllocPixelsFlags'>tryAllocPixelsFlags</a> <a href='#SkBitmap_allocPixels'>all…
1828 <a name='SkBitmap_allocPixels_2'></a>
1833 void <a href='#SkBitmap_allocPixels'>allocPixels</a>(const <a href='SkImageInfo_Reference#SkImageIn…
1836 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> to <a href='#SkBitmap_allocPixels_2_inf…
1839 Aborts execution if <a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> could not be set, o…
1843 On most platforms, allocating <a href='undocumented#Pixel'>pixel</a> memory may succeed even though…
1850 <table> <tr> <td><a name='SkBitmap_allocPixels_2_info'><code><strong>info</strong></code></a></…
1851 …a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a>, <a href='SkImageInfo_Reference#SkColor…
1861 …a href='#SkBitmap_tryAllocPixels'>tryAllocPixels</a> <a href='#SkBitmap_allocPixelsFlags'>allocPix…
1863 <a name='SkBitmap_tryAllocN32Pixels'></a>
1868 bool <a href='#SkBitmap_tryAllocN32Pixels'>tryAllocN32Pixels</a>(int width, int height, bool <a hre…
1871 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> to <a href='#SkBitmap_tryAllocN32Pixels…
1872 …a href='undocumented#Pixel'>pixel</a> memory. If <a href='#SkBitmap_tryAllocN32Pixels_isOpaque'>is…
1873 otherwise, sets to <a href='SkImageInfo_Reference#kPremul_SkAlphaType'>kPremul_SkAlphaType</a>.
1875 Calls <a href='#SkBitmap_reset'>reset()</a> and returns false if <a href='#SkBitmap_tryAllocN32Pixe…
1876 or <a href='#SkBitmap_tryAllocN32Pixels_height'>height</a> is negative.
1880 …a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> that matches <a href='SkColor_Reference#SkPMColo…
1881 …a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> drawn to output <a href='undocumented#Device'>de…
1885 <table> <tr> <td><a name='SkBitmap_tryAllocN32Pixels_width'><code><strong>width</strong></code>…
1886 <td><a href='undocumented#Pixel'>pixel</a> column count; must be zero or greater</td>
1888 …<tr> <td><a name='SkBitmap_tryAllocN32Pixels_height'><code><strong>height</strong></code></a></…
1889 <td><a href='undocumented#Pixel'>pixel</a> row count; must be zero or greater</td>
1891 …<tr> <td><a name='SkBitmap_tryAllocN32Pixels_isOpaque'><code><strong>isOpaque</strong></code></…
1898 true if <a href='undocumented#Pixel_Storage'>pixel storage</a> is allocated
1906 …a href='#SkBitmap_tryAllocPixels'>tryAllocPixels</a> <a href='#SkBitmap_allocN32Pixels'>allocN32Pi…
1908 <a name='SkBitmap_allocN32Pixels'></a>
1913 void <a href='#SkBitmap_allocN32Pixels'>allocN32Pixels</a>(int width, int height, bool <a href='#Sk…
1916 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> to <a href='#SkBitmap_allocN32Pixels_wi…
1917 …a href='undocumented#Pixel'>pixel</a> memory. If <a href='#SkBitmap_allocN32Pixels_isOpaque'>isOpa…
1918 otherwise, sets to <a href='SkImageInfo_Reference#kOpaque_SkAlphaType'>kOpaque_SkAlphaType</a>.
1920 …rts if <a href='#SkBitmap_allocN32Pixels_width'>width</a> exceeds 29 bits or is negative, or <a hr…
1924 …a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> that matches <a href='SkColor_Reference#SkPMColo…
1925 …a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> drawn to output <a href='undocumented#Device'>de…
1929 <table> <tr> <td><a name='SkBitmap_allocN32Pixels_width'><code><strong>width</strong></code></a…
1930 <td><a href='undocumented#Pixel'>pixel</a> column count; must be zero or greater</td>
1932 <tr> <td><a name='SkBitmap_allocN32Pixels_height'><code><strong>height</strong></code></a></td>
1933 <td><a href='undocumented#Pixel'>pixel</a> row count; must be zero or greater</td>
1935 …<tr> <td><a name='SkBitmap_allocN32Pixels_isOpaque'><code><strong>isOpaque</strong></code></a><…
1946 …a href='#SkBitmap_allocPixels'>allocPixels</a> <a href='#SkBitmap_tryAllocN32Pixels'>tryAllocN32Pi…
1948 <a name='SkBitmap_installPixels'></a>
1953 …a href='#SkBitmap_installPixels'>installPixels</a>(const <a href='SkImageInfo_Reference#SkImageInf…
1957 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> to <a href='#SkBitmap_installPixels_inf…
1958 …a href='#SkBitmap_installPixels_pixels'>pixels</a> and <a href='#SkBitmap_installPixels_rowBytes'>…
1959 …re or when <a href='#SkBitmap_installPixels_pixels'>pixels</a> are no longer referenced. <a href='…
1962 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> could not be set, or <a href='#SkBitmap…
1963 calls <a href='#SkBitmap_installPixels_releaseProc'>releaseProc</a> if present, calls <a href='#SkB…
1965 …a href='#SkBitmap_installPixels_pixels'>pixels</a> equals nullptr: sets <a href='SkImageInfo_Refer…
1968 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> is set, <a href='#SkBitmap_installPixel…
1969 …a href='#SkBitmap_installPixels_pixels'>pixels</a> are no longer referenced, calls <a href='#SkBit…
1974 <table> <tr> <td><a name='SkBitmap_installPixels_info'><code><strong>info</strong></code></a></…
1975 …a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a>, <a href='SkImageInfo_Reference#SkColor…
1977 <tr> <td><a name='SkBitmap_installPixels_pixels'><code><strong>pixels</strong></code></a></td>
1978 <td>address or <a href='undocumented#Pixel_Storage'>pixel storage</a>; may be nullptr</td>
1980 …<tr> <td><a name='SkBitmap_installPixels_rowBytes'><code><strong>rowBytes</strong></code></a></…
1981 …<td><a href='undocumented#Size'>size</a> of <a href='undocumented#Pixel'>pixel</a> row or larger</…
1983 …<tr> <td><a name='SkBitmap_installPixels_releaseProc'><code><strong>releaseProc</strong></code>…
1984 …<td>function called when <a href='#SkBitmap_installPixels_pixels'>pixels</a> can be deleted; may b…
1986 …<tr> <td><a name='SkBitmap_installPixels_context'><code><strong>context</strong></code></a></td>
1987 …<td>caller state passed to <a href='#SkBitmap_installPixels_releaseProc'>releaseProc</a>; may be n…
1993 true if <a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> is set to <a href='#SkBitmap_in…
1997 …a href='#SkBitmap_installPixels_releaseProc'>releaseProc</a> is called immediately because <a href…
2012 <a href='#SkBitmap_allocPixels'>allocPixels</a>
2014 <a name='SkBitmap_installPixels_2'></a>
2019 …a href='#SkBitmap_installPixels'>installPixels</a>(const <a href='SkImageInfo_Reference#SkImageInf…
2022 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> to <a href='#SkBitmap_installPixels_2_i…
2023 containing <a href='#SkBitmap_installPixels_2_pixels'>pixels</a> and <a href='#SkBitmap_installPixe…
2025 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> could not be set, or <a href='#SkBitmap…
2026 calls <a href='#SkBitmap_reset'>reset()</a>, and returns false.
2028 …wise, if <a href='#SkBitmap_installPixels_2_pixels'>pixels</a> equals nullptr: sets <a href='SkIma…
2030 …a href='#SkBitmap_installPixels_2_pixels'>pixels</a> are valid for the lifetime of <a href='SkBitm…
2034 <table> <tr> <td><a name='SkBitmap_installPixels_2_info'><code><strong>info</strong></code></a>…
2035 …a href='SkImageInfo_Reference#SkAlphaType'>SkAlphaType</a>, <a href='SkImageInfo_Reference#SkColor…
2037 …<tr> <td><a name='SkBitmap_installPixels_2_pixels'><code><strong>pixels</strong></code></a></td>
2038 <td>address or <a href='undocumented#Pixel_Storage'>pixel storage</a>; may be nullptr</td>
2040 …<tr> <td><a name='SkBitmap_installPixels_2_rowBytes'><code><strong>rowBytes</strong></code></a>…
2041 …<td><a href='undocumented#Size'>size</a> of <a href='undocumented#Pixel'>pixel</a> row or larger</…
2047 true if <a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> is set to <a href='#SkBitmap_in…
2051 …0e80a6bb2"><div>GPU does not support <a href='SkImageInfo_Reference#kUnpremul_SkAlphaType'>kUnprem…
2056 <a href='#SkBitmap_allocPixels'>allocPixels</a>
2058 <a name='SkBitmap_installPixels_3'></a>
2063 …a href='#SkBitmap_installPixels'>installPixels</a>(const <a href='SkPixmap_Reference#SkPixmap'>SkP…
2066 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> to <a href='#SkBitmap_installPixels_3_p…
2067 …a href='undocumented#SkPixelRef'>SkPixelRef</a> containing <a href='#SkBitmap_installPixels_3_pixm…
2069 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> could not be set, or <a href='#SkBitmap…
2070 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a>::<a href='#SkImageInfo_minRowBytes'>min…
2072 …a href='#SkBitmap_installPixels_3_pixmap'>pixmap</a>.<a href='#SkPixmap_addr'>addr()</a> equals nu…
2074 …a href='#SkBitmap_installPixels_3_pixmap'>pixmap</a> is valid for the lifetime of <a href='SkBitma…
2078 <table> <tr> <td><a name='SkBitmap_installPixels_3_pixmap'><code><strong>pixmap</strong></code>…
2079 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a>, <a href='undocumented#Pixel'>pixel</a>…
2085 …a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a> was set to <a href='#SkBitmap_installPi…
2089 …v>Draw a five by five <a href='SkBitmap_Reference#Bitmap'>bitmap</a>, and draw it again with a cen…
2094 <a href='#SkBitmap_allocPixels'>allocPixels</a>
2096 <a name='Pixels'></a>
2098 <a name='SkBitmap_setPixels'></a>
2103 void <a href='#SkBitmap_setPixels'>setPixels</a>(void* pixels)
2106 …a href='undocumented#SkPixelRef'>SkPixelRef</a> with <a href='#SkBitmap_setPixels_pixels'>pixels</…
2107 Sets <a href='undocumented#SkPixelRef'>SkPixelRef</a> origin to (0, 0).
2109 …a href='#SkBitmap_setPixels_pixels'>pixels</a> is nullptr, or if <a href='#SkBitmap_info'>info()</…
2110 release reference to <a href='undocumented#SkPixelRef'>SkPixelRef</a>, and set <a href='undocumente…
2112 Caller is responsible for handling ownership <a href='undocumented#Pixel'>pixel</a> memory for the …
2113 of <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> and <a href='undocumented#SkPixelRef'>SkPixel…
2117 <table> <tr> <td><a name='SkBitmap_setPixels_pixels'><code><strong>pixels</strong></code></a></…
2118 <td>address of <a href='undocumented#Pixel_Storage'>pixel storage</a>, managed by caller</td>
2128 <a href='#SkBitmap_installPixels'>installPixels</a> <a href='#SkBitmap_allocPixels'>allocPixels</a>
2130 <a name='SkBitmap_tryAllocPixels_3'></a>
2135 bool <a href='#SkBitmap_tryAllocPixels'>tryAllocPixels</a>()
2138 …a href='undocumented#Pixel'>pixel</a> memory with <a href='#SkBitmap_HeapAllocator'>HeapAllocator<…
2139 …a href='undocumented#Size'>size</a> is determined by <a href='SkImageInfo_Reference#SkImageInfo'>S…
2141 …a href='#SkBitmap_info'>info()</a>.<a href='#SkImageInfo_colorType'>colorType</a>() is <a href='Sk…
2149 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> hosts and draws gray values in set1. <a href='#SkBit…
2150 and erases it to black, but does not alter set1. <a href='#SkBitmap_setPixels'>setPixels</a> replac…
2151 <a href='#Pixel_Ref'>Pixel_Ref</a> with set1.
2156 <a href='#SkBitmap_allocPixels'>allocPixels</a> <a href='#SkBitmap_installPixels'>installPixels</a>…
2158 <a name='SkBitmap_allocPixels_3'></a>
2163 void <a href='#SkBitmap_allocPixels'>allocPixels</a>()
2166 …a href='undocumented#Pixel'>pixel</a> memory with <a href='#SkBitmap_HeapAllocator'>HeapAllocator<…
2167 …a href='undocumented#Size'>size</a> is determined by <a href='SkImageInfo_Reference#SkImageInfo'>S…
2169 …a href='#SkBitmap_info'>info()</a>.<a href='#SkImageInfo_colorType'>colorType</a>() is <a href='Sk…
2175 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> hosts and draws gray values in set1. <a href='#SkBit…
2176 and erases it to black, but does not alter set1. <a href='#SkBitmap_setPixels'>setPixels</a> replac…
2177 <a href='#Pixel_Ref'>Pixel_Ref</a> with set2.
2182 <a href='#SkBitmap_tryAllocPixels'>tryAllocPixels</a> <a href='#SkBitmap_installPixels'>installPixe…
2184 <a name='SkBitmap_tryAllocPixels_4'></a>
2189 bool <a href='#SkBitmap_tryAllocPixels'>tryAllocPixels</a>(<a href='#SkBitmap_Allocator'>Allocator<…
2192 …a href='undocumented#Pixel'>pixel</a> memory with <a href='#SkBitmap_tryAllocPixels_4_allocator'>a…
2193 …a href='undocumented#Size'>size</a> is determined by <a href='SkImageInfo_Reference#SkImageInfo'>S…
2194 If <a href='#SkBitmap_tryAllocPixels_4_allocator'>allocator</a> is nullptr, use <a href='#SkBitmap_…
2196 Returns false if <a href='#SkBitmap_Allocator'>Allocator</a>::<a href='#SkBitmap_Allocator_allocPix…
2200 <table> <tr> <td><a name='SkBitmap_tryAllocPixels_4_allocator'><code><strong>allocator</strong>…
2201 …<td>instance of <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>::<a href='#SkBitmap_Allocator'>…
2207 true if custom <a href='#SkBitmap_tryAllocPixels_4_allocator'>allocator</a> reports success
2211 …a href='#SkBitmap_HeapAllocator'>HeapAllocator</a> limits the maximum <a href='undocumented#Size'>…
2212 a custom <a href='#SkBitmap_tryAllocPixels_4_allocator'>allocator</a>, this limitation may be relax…
2213 modified to allocate an eight gigabyte <a href='SkBitmap_Reference#Bitmap'>Bitmap</a> on a 64-bit p…
2219 <a href='#SkBitmap_allocPixels'>allocPixels</a> <a href='#SkBitmap_Allocator'>Allocator</a> <a href…
2221 <a name='SkBitmap_allocPixels_4'></a>
2226 void <a href='#SkBitmap_allocPixels'>allocPixels</a>(<a href='#SkBitmap_Allocator'>Allocator</a>* a…
2229 …a href='undocumented#Pixel'>pixel</a> memory with <a href='#SkBitmap_allocPixels_4_allocator'>allo…
2230 …a href='undocumented#Size'>size</a> is determined by <a href='SkImageInfo_Reference#SkImageInfo'>S…
2231 If <a href='#SkBitmap_allocPixels_4_allocator'>allocator</a> is nullptr, use <a href='#SkBitmap_Hea…
2233 Aborts if <a href='#SkBitmap_Allocator'>Allocator</a>::<a href='#SkBitmap_Allocator_allocPixelRef'>…
2238 <table> <tr> <td><a name='SkBitmap_allocPixels_4_allocator'><code><strong>allocator</strong></c…
2239 …<td>instance of <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a>::<a href='#SkBitmap_Allocator'>…
2249 <a href='#SkBitmap_allocPixels'>allocPixels</a> <a href='#SkBitmap_Allocator'>Allocator</a> <a href…
2251 <a name='SkBitmap_pixelRef'></a>
2256 <a href='undocumented#SkPixelRef'>SkPixelRef</a>* <a href='#SkBitmap_pixelRef'>pixelRef</a>()const
2259 Returns <a href='undocumented#SkPixelRef'>SkPixelRef</a>, which contains: <a href='undocumented#Pix…
2260 <a href='#SkBitmap_rowBytes'>rowBytes</a>(), the interval from one row to the next. Does not change…
2261 …ference count. <a href='undocumented#SkPixelRef'>SkPixelRef</a> may be shared by multiple <a href=…
2262 If <a href='undocumented#SkPixelRef'>SkPixelRef</a> has not been set, returns nullptr.
2266 <a href='undocumented#SkPixelRef'>SkPixelRef</a>, or nullptr
2274 <a href='#SkBitmap_getPixels'>getPixels</a> <a href='#SkBitmap_getAddr'>getAddr</a>
2276 <a name='SkBitmap_pixelRefOrigin'></a>
2281 <a href='SkIPoint_Reference#SkIPoint'>SkIPoint</a> <a href='#SkBitmap_pixelRefOrigin'>pixelRefOrigi…
2284 …s origin of pixels within <a href='undocumented#SkPixelRef'>SkPixelRef</a>. <a href='SkBitmap_Refe…
2285 …a href='undocumented#SkPixelRef'>SkPixelRef</a> bounds, which may be the same <a href='undocumente…
2286 can share the same <a href='undocumented#SkPixelRef'>SkPixelRef</a>, where each <a href='SkBitmap_R…
2288 The returned origin added to <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> dimensions equals o…
2289 <a href='undocumented#SkPixelRef'>SkPixelRef</a> dimensions.
2291 Returns (0, 0) if <a href='undocumented#SkPixelRef'>SkPixelRef</a> is nullptr.
2295 <a href='undocumented#Pixel'>pixel</a> origin within <a href='undocumented#SkPixelRef'>SkPixelRef</…
2312 <a href='undocumented#SkPixelRef'>SkPixelRef</a> <a href='#SkBitmap_getSubset'>getSubset</a> <a hre…
2314 <a name='Set'></a>
2316 <a name='SkBitmap_setPixelRef'></a>
2321 …a href='#SkBitmap_setPixelRef'>setPixelRef</a>(<a href='undocumented#sk_sp'>sk_sp</a><<a href='…
2324 …a href='#SkBitmap_setPixelRef_pixelRef'>pixelRef</a> and origin in <a href='SkBitmap_Reference#SkB…
2325 …ithin the <a href='undocumented#SkPixelRef'>SkPixelRef</a> pixels for the top-left corner of the <…
2327 …a href='#SkBitmap_setPixelRef_dx'>dx</a> or <a href='#SkBitmap_setPixelRef_dy'>dy</a> are out of r…
2331 …a href='SkImageInfo_Reference#SkColorType'>SkColorType</a> and <a href='SkImageInfo_Reference#SkAl…
2335 <table> <tr> <td><a name='SkBitmap_setPixelRef_pixelRef'><code><strong>pixelRef</strong></code>…
2336 …<a href='undocumented#SkPixelRef'>SkPixelRef</a> describing <a href='undocumented#Pixel'>pixel</a>…
2338 <tr> <td><a name='SkBitmap_setPixelRef_dx'><code><strong>dx</strong></code></a></td>
2339 …<td>column offset in <a href='undocumented#SkPixelRef'>SkPixelRef</a> for <a href='SkBitmap_Refere…
2341 <tr> <td><a name='SkBitmap_setPixelRef_dy'><code><strong>dy</strong></code></a></td>
2342 …<td>row offset in <a href='undocumented#SkPixelRef'>SkPixelRef</a> for <a href='SkBitmap_Reference…
2348 …261c9a484c5f"><div>Treating 32-bit <a href='undocumented#Data'>data</a> as 8-bit <a href='undocume…
2353 <a href='#SkBitmap_setInfo'>setInfo</a>
2355 <a name='SkBitmap_readyToDraw'></a>
2360 bool <a href='#SkBitmap_readyToDraw'>readyToDraw</a>()const
2363 Returns true if <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> is can be drawn.
2367 true if <a href='#SkBitmap_getPixels'>getPixels</a>() is not nullptr
2375 <a href='#SkBitmap_getPixels'>getPixels</a> <a href='#SkBitmap_drawsNothing'>drawsNothing</a>
2377 <a name='SkBitmap_getGenerationID'></a>
2382 uint32_t <a href='#SkBitmap_getGenerationID'>getGenerationID</a>()const
2385 Returns a unique value corresponding to the pixels in <a href='undocumented#SkPixelRef'>SkPixelRef<…
2386 Returns a different value after <a href='#SkBitmap_notifyPixelsChanged'>notifyPixelsChanged</a>() h…
2387 Returns zero if <a href='undocumented#SkPixelRef'>SkPixelRef</a> is nullptr.
2393 unique value for pixels in <a href='undocumented#SkPixelRef'>SkPixelRef</a>
2412 <a href='#SkBitmap_notifyPixelsChanged'>notifyPixelsChanged</a> <a href='#Pixel_Ref'>Pixel_Ref</a>
2414 <a name='SkBitmap_notifyPixelsChanged'></a>
2419 void <a href='#SkBitmap_notifyPixelsChanged'>notifyPixelsChanged</a>()const
2422 Marks that pixels in <a href='undocumented#SkPixelRef'>SkPixelRef</a> have changed. Subsequent call…
2423 <a href='#SkBitmap_getGenerationID'>getGenerationID</a>() return a different value.
2431 <a href='#SkBitmap_getGenerationID'>getGenerationID</a> <a href='#SkBitmap_isVolatile'>isVolatile</…
2433 <a name='Draw'></a>
2435 <a name='SkBitmap_eraseColor'></a>
2440 void <a href='#SkBitmap_eraseColor'>eraseColor</a>(<a href='SkColor_Reference#SkColor'>SkColor</a> …
2443 …a href='undocumented#Pixel'>pixel</a> values with <a href='#SkBitmap_eraseColor_c'>c</a>. All pixe…
2444 …a href='#SkBitmap_colorType'>colorType</a>() is <a href='SkImageInfo_Reference#kGray_8_SkColorType…
2445 …s opaque. If <a href='#SkBitmap_colorType'>colorType</a>() is <a href='SkImageInfo_Reference#kAlph…
2450 <table> <tr> <td><a name='SkBitmap_eraseColor_c'><code><strong>c</strong></code></a></td>
2451 …<td><a href='undocumented#Unpremultiply'>unpremultiplied</a> <a href='SkColor_Reference#Color'>col…
2461 <a href='#SkBitmap_eraseARGB'>eraseARGB</a> <a href='#SkBitmap_erase'>erase</a>
2463 <a name='SkBitmap_eraseARGB'></a>
2468 …a href='#SkBitmap_eraseARGB'>eraseARGB</a>(<a href='undocumented#U8CPU'>U8CPU</a> a, <a href='undo…
2471 …a href='undocumented#Pixel'>pixel</a> values with <a href='undocumented#Unpremultiply'>unpremultip…
2472 All pixels contained by <a href='#SkBitmap_bounds'>bounds()</a> are affected.
2473 …a href='#SkBitmap_colorType'>colorType</a>() is <a href='SkImageInfo_Reference#kGray_8_SkColorType…
2474 …a href='#SkBitmap_eraseARGB_r'>r</a>, <a href='#SkBitmap_eraseARGB_g'>g</a>, and <a href='#SkBitma…
2475 then <a href='#SkBitmap_eraseARGB_r'>r</a>, <a href='#SkBitmap_eraseARGB_g'>g</a>, and <a href='#Sk…
2479 <table> <tr> <td><a name='SkBitmap_eraseARGB_a'><code><strong>a</strong></code></a></td>
2480 …<td>amount of <a href='SkColor_Reference#Alpha'>alpha</a>, from fully transparent (0) to fully opa…
2482 <tr> <td><a name='SkBitmap_eraseARGB_r'><code><strong>r</strong></code></a></td>
2485 <tr> <td><a name='SkBitmap_eraseARGB_g'><code><strong>g</strong></code></a></td>
2488 <tr> <td><a name='SkBitmap_eraseARGB_b'><code><strong>b</strong></code></a></td>
2499 <a href='#SkBitmap_eraseColor'>eraseColor</a> <a href='#SkBitmap_erase'>erase</a>
2501 <a name='SkBitmap_erase'></a>
2506 void <a href='#SkBitmap_erase'>erase</a>(<a href='SkColor_Reference#SkColor'>SkColor</a> c, const <…
2509 …a href='undocumented#Pixel'>pixel</a> values inside <a href='#SkBitmap_erase_area'>area</a> with <…
2512 …a href='#SkBitmap_colorType'>colorType</a>() is <a href='SkImageInfo_Reference#kGray_8_SkColorType…
2513 …s opaque. If <a href='#SkBitmap_colorType'>colorType</a>() is <a href='SkImageInfo_Reference#kAlph…
2518 <table> <tr> <td><a name='SkBitmap_erase_c'><code><strong>c</strong></code></a></td>
2519 …<td><a href='undocumented#Unpremultiply'>unpremultiplied</a> <a href='SkColor_Reference#Color'>col…
2521 <tr> <td><a name='SkBitmap_erase_area'><code><strong>area</strong></code></a></td>
2532 …a href='#SkBitmap_eraseColor'>eraseColor</a> <a href='#SkBitmap_eraseARGB'>eraseARGB</a> <a href='…
2534 <a name='SkBitmap_getColor'></a>
2539 <a href='SkColor_Reference#SkColor'>SkColor</a> <a href='#SkBitmap_getColor'>getColor</a>(int x, in…
2542 …a href='undocumented#Pixel'>pixel</a> at (<a href='#SkBitmap_getColor_x'>x</a>, <a href='#SkBitmap…
2543 …a href='SkColor_Reference#Alpha'>alpha</a> if <a href='SkImageInfo_Reference#SkColorType'>SkColorT…
2545 …ot validated: out of bounds values of <a href='#SkBitmap_getColor_x'>x</a> or <a href='#SkBitmap_g…
2547 …ls if <a href='SkImageInfo_Reference#SkColorType'>SkColorType</a> is <a href='SkImageInfo_Referenc…
2548 <a href='undocumented#Pixel'>pixel</a> address is nullptr.
2550 …a href='undocumented#SkColorSpace'>SkColorSpace</a> in <a href='SkImageInfo_Reference#SkImageInfo'…
2551 …a href='undocumented#Unpremultiply'>unpremultiplied</a> <a href='SkColor_Reference#Color'>color</a…
2556 <table> <tr> <td><a name='SkBitmap_getColor_x'><code><strong>x</strong></code></a></td>
2557 <td>column index, zero or greater, and less than <a href='#SkBitmap_width'>width()</a></td>
2559 <tr> <td><a name='SkBitmap_getColor_y'><code><strong>y</strong></code></a></td>
2560 <td>row index, zero or greater, and less than <a href='#SkBitmap_height'>height()</a></td>
2566 <a href='undocumented#Pixel'>pixel</a> converted to <a href='undocumented#Unpremultiply'>unpremulti…
2591 <a href='#SkBitmap_getAlphaf'>getAlphaf</a> <a href='#SkBitmap_getAddr'>getAddr</a> <a href='#SkBit…
2593 <a name='SkBitmap_getAlphaf'></a>
2598 float <a href='#SkBitmap_getAlphaf'>getAlphaf</a>(int x, int y)const
2601 …a href='undocumented#Pixel'>pixel</a> at (<a href='#SkBitmap_getAlphaf_x'>x</a>,<a href='#SkBitmap…
2602 This is roughly equivalent to <code>SkGetColorA(<a href='#SkBitmap_getColor'>getColor</a>())</code>…
2607 <table> <tr> <td><a name='SkBitmap_getAlphaf_x'><code><strong>x</strong></code></a></td>
2608 <td>column index, zero or greater, and less than <a href='#SkBitmap_width'>width()</a></td>
2610 <tr> <td><a name='SkBitmap_getAlphaf_y'><code><strong>y</strong></code></a></td>
2611 <td>row index, zero or greater, and less than <a href='#SkBitmap_height'>height()</a></td>
2617 <a href='SkColor_Reference#Alpha'>alpha</a> converted to normalized float
2621 <a href='#SkBitmap_getColor'>getColor</a>
2623 <a name='SkBitmap_getAddr'></a>
2628 void* <a href='#SkBitmap_getAddr'>getAddr</a>(int x, int y)const
2631 Returns <a href='undocumented#Pixel'>pixel</a> address at (<a href='#SkBitmap_getAddr_x'>x</a>, <a …
2633 …a href='#SkBitmap_getAddr_x'>x</a> or <a href='#SkBitmap_getAddr_y'>y</a>, or <a href='SkImageInfo…
2635 …a href='SkImageInfo_Reference#SkColorType'>SkColorType</a> is <a href='SkImageInfo_Reference#kUnkn…
2637 Performs a lookup of <a href='undocumented#Pixel'>pixel</a> <a href='undocumented#Size'>size</a>; f…
2638 …ne of: <a href='#SkBitmap_getAddr8'>getAddr8</a>(), <a href='#SkBitmap_getAddr16'>getAddr16</a>(),…
2642 <table> <tr> <td><a name='SkBitmap_getAddr_x'><code><strong>x</strong></code></a></td>
2643 <td>column index, zero or greater, and less than <a href='#SkBitmap_width'>width()</a></td>
2645 <tr> <td><a name='SkBitmap_getAddr_y'><code><strong>y</strong></code></a></td>
2646 <td>row index, zero or greater, and less than <a href='#SkBitmap_height'>height()</a></td>
2652 generic pointer to <a href='undocumented#Pixel'>pixel</a>
2668 …a href='#SkBitmap_getAddr8'>getAddr8</a> <a href='#SkBitmap_getAddr16'>getAddr16</a> <a href='#SkB…
2670 <a name='SkBitmap_getAddr32'></a>
2675 uint32_t* <a href='#SkBitmap_getAddr32'>getAddr32</a>(int x, int y)const
2678 Returns address at (<a href='#SkBitmap_getAddr32_x'>x</a>, <a href='#SkBitmap_getAddr32_y'>y</a>).
2683 <td><a href='#Pixel_Ref'>Pixel_Ref</a> is nullptr</td>
2685 <td><a href='#SkBitmap_bytesPerPixel'>bytesPerPixel</a>() is not four</td>
2687 …<td><a href='#SkBitmap_getAddr32_x'>x</a> is negative, or not less than <a href='#SkBitmap_width'>…
2689 …<td><a href='#SkBitmap_getAddr32_y'>y</a> is negative, or not less than <a href='#SkBitmap_height'…
2695 <table> <tr> <td><a name='SkBitmap_getAddr32_x'><code><strong>x</strong></code></a></td>
2696 <td>column index, zero or greater, and less than <a href='#SkBitmap_width'>width()</a></td>
2698 <tr> <td><a name='SkBitmap_getAddr32_y'><code><strong>y</strong></code></a></td>
2699 <td>row index, zero or greater, and less than <a href='#SkBitmap_height'>height()</a></td>
2705 …2-bit pointer to <a href='undocumented#Pixel'>pixel</a> at (<a href='#SkBitmap_getAddr32_x'>x</a>,…
2721 …a href='#SkBitmap_getAddr8'>getAddr8</a> <a href='#SkBitmap_getAddr16'>getAddr16</a> <a href='#SkB…
2723 <a name='SkBitmap_getAddr16'></a>
2728 uint16_t* <a href='#SkBitmap_getAddr16'>getAddr16</a>(int x, int y)const
2731 Returns address at (<a href='#SkBitmap_getAddr16_x'>x</a>, <a href='#SkBitmap_getAddr16_y'>y</a>).
2736 <td><a href='#Pixel_Ref'>Pixel_Ref</a> is nullptr</td>
2738 <td><a href='#SkBitmap_bytesPerPixel'>bytesPerPixel</a>() is not two</td>
2740 …<td><a href='#SkBitmap_getAddr16_x'>x</a> is negative, or not less than <a href='#SkBitmap_width'>…
2742 …<td><a href='#SkBitmap_getAddr16_y'>y</a> is negative, or not less than <a href='#SkBitmap_height'…
2748 <table> <tr> <td><a name='SkBitmap_getAddr16_x'><code><strong>x</strong></code></a></td>
2749 <td>column index, zero or greater, and less than <a href='#SkBitmap_width'>width()</a></td>
2751 <tr> <td><a name='SkBitmap_getAddr16_y'><code><strong>y</strong></code></a></td>
2752 <td>row index, zero or greater, and less than <a href='#SkBitmap_height'>height()</a></td>
2758 …6-bit pointer to <a href='undocumented#Pixel'>pixel</a> at (<a href='#SkBitmap_getAddr16_x'>x</a>,…
2774 …a href='#SkBitmap_getAddr8'>getAddr8</a> <a href='#SkBitmap_getAddr'>getAddr</a> <a href='#SkBitma…
2776 <a name='SkBitmap_getAddr8'></a>
2781 uint8_t* <a href='#SkBitmap_getAddr8'>getAddr8</a>(int x, int y)const
2784 Returns address at (<a href='#SkBitmap_getAddr8_x'>x</a>, <a href='#SkBitmap_getAddr8_y'>y</a>).
2789 <td><a href='#Pixel_Ref'>Pixel_Ref</a> is nullptr</td>
2791 <td><a href='#SkBitmap_bytesPerPixel'>bytesPerPixel</a>() is not one</td>
2793 …<td><a href='#SkBitmap_getAddr8_x'>x</a> is negative, or not less than <a href='#SkBitmap_width'>w…
2795 …<td><a href='#SkBitmap_getAddr8_y'>y</a> is negative, or not less than <a href='#SkBitmap_height'>…
2801 <table> <tr> <td><a name='SkBitmap_getAddr8_x'><code><strong>x</strong></code></a></td>
2802 <td>column index, zero or greater, and less than <a href='#SkBitmap_width'>width()</a></td>
2804 <tr> <td><a name='SkBitmap_getAddr8_y'><code><strong>y</strong></code></a></td>
2805 <td>row index, zero or greater, and less than <a href='#SkBitmap_height'>height()</a></td>
2811 … 8-bit pointer to <a href='undocumented#Pixel'>pixel</a> at (<a href='#SkBitmap_getAddr8_x'>x</a>,…
2827 …a href='#SkBitmap_getAddr'>getAddr</a> <a href='#SkBitmap_getAddr16'>getAddr16</a> <a href='#SkBit…
2829 <a name='SkBitmap_extractSubset'></a>
2834 …a href='#SkBitmap_extractSubset'>extractSubset</a>(<a href='SkBitmap_Reference#SkBitmap'>SkBitmap<…
2837 …a href='#Pixel_Ref'>Pixel_Ref</a> with <a href='#SkBitmap_extractSubset_dst'>dst</a>. Pixels are n…
2838 …a href='#SkBitmap_extractSubset_dst'>dst</a> <a href='#SkBitmap_bounds'>bounds()</a> are set to th…
2839 and the original <a href='#SkBitmap_bounds'>bounds()</a>.
2841 …a href='#SkBitmap_extractSubset_subset'>subset</a> may be larger than <a href='#SkBitmap_bounds'>b…
2843 …a href='#SkBitmap_extractSubset_dst'>dst</a> are discarded. <a href='#SkBitmap_isVolatile'>isVolat…
2844 …a href='#SkBitmap_extractSubset_dst'>dst</a> is set to <a href='#SkBitmap_colorType'>colorType</a>…
2849 <td><a href='#SkBitmap_extractSubset_dst'>dst</a> is nullptr</td>
2851 <td><a href='#Pixel_Ref'>Pixel_Ref</a> is nullptr</td>
2853 …<td><a href='#SkBitmap_extractSubset_subset'>subset</a> does not intersect <a href='#SkBitmap_boun…
2859 <table> <tr> <td><a name='SkBitmap_extractSubset_dst'><code><strong>dst</strong></code></a></td>
2860 …<td><a href='SkBitmap_Reference#Bitmap'>Bitmap</a> set to <a href='#SkBitmap_extractSubset_subset'…
2862 <tr> <td><a name='SkBitmap_extractSubset_subset'><code><strong>subset</strong></code></a></td>
2869 true if <a href='#SkBitmap_extractSubset_dst'>dst</a> is replaced by <a href='#SkBitmap_extractSubs…
2897 …a href='#SkBitmap_readPixels'>readPixels</a> <a href='#SkBitmap_writePixels'>writePixels</a> <a hr…
2899 <a name='SkBitmap_readPixels'></a>
2904 bool <a href='#SkBitmap_readPixels'>readPixels</a>(const <a href='SkImageInfo_Reference#SkImageInfo…
2907 …a <a href='SkRect_Reference#Rect'>Rect</a> of pixels from <a href='SkBitmap_Reference#Bitmap'>Bitm…
2908 …s not exceed <a href='SkBitmap_Reference#Bitmap'>Bitmap</a> (<a href='#SkBitmap_width'>width()</a>…
2910 …a href='#SkBitmap_readPixels_dstInfo'>dstInfo</a> specifies width, height, <a href='#Image_Info_Co…
2911 destination. <a href='#SkBitmap_readPixels_dstRowBytes'>dstRowBytes</a> specifics the gap from one …
2915 <td><a href='#SkBitmap_readPixels_dstInfo'>dstInfo</a> has no address</td>
2917 …a href='#SkBitmap_readPixels_dstRowBytes'>dstRowBytes</a> is less than <a href='#SkBitmap_readPixe…
2919 <td><a href='#Pixel_Ref'>Pixel_Ref</a> is nullptr</td>
2923 …a href='undocumented#Pixel'>pixel</a> conversion is possible. If <a href='SkBitmap_Reference#Bitma…
2924 …a href='SkImageInfo_Reference#kGray_8_SkColorType'>kGray_8_SkColorType</a>, or <a href='SkImageInf…
2925 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> <a href='#SkBitmap_colorType'>colorType</a> is <a hr…
2926 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> <a href='#SkBitmap_alphaType'>alphaType</a> is <a hr…
2927 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> <a href='#SkBitmap_colorSpace'>colorSpace</a> is nul…
2928 false if <a href='undocumented#Pixel'>pixel</a> conversion is not possible.
2930 <a href='#SkBitmap_readPixels_srcX'>srcX</a> and <a href='#SkBitmap_readPixels_srcY'>srcY</a> may b…
2931 false if <a href='#SkBitmap_width'>width()</a> or <a href='#SkBitmap_height'>height()</a> is zero o…
2932 …a href='undocumented#abs()'>abs</a>(<a href='#SkBitmap_readPixels_srcX'>srcX</a>) >= <a href='SkBi…
2936 <table> <tr> <td><a name='SkBitmap_readPixels_dstInfo'><code><strong>dstInfo</strong></code></a…
2937 …height, <a href='#Image_Info_Color_Type'>Color_Type</a>, <a href='#Image_Info_Alpha_Type'>Alpha_Ty…
2939 …<tr> <td><a name='SkBitmap_readPixels_dstPixels'><code><strong>dstPixels</strong></code></a></t…
2940 <td>destination <a href='undocumented#Pixel_Storage'>pixel storage</a></td>
2942 …<tr> <td><a name='SkBitmap_readPixels_dstRowBytes'><code><strong>dstRowBytes</strong></code></a…
2945 <tr> <td><a name='SkBitmap_readPixels_srcX'><code><strong>srcX</strong></code></a></td>
2946 <td>column index whose absolute value is less than <a href='#SkBitmap_width'>width()</a></td>
2948 <tr> <td><a name='SkBitmap_readPixels_srcY'><code><strong>srcY</strong></code></a></td>
2949 <td>row index whose absolute value is less than <a href='#SkBitmap_height'>height()</a></td>
2955 true if pixels are copied to <a href='#SkBitmap_readPixels_dstPixels'>dstPixels</a>
2965 …a href='#SkBitmap_writePixels'>writePixels</a> <a href='SkPixmap_Reference#SkPixmap'>SkPixmap</a>:…
2967 <a name='SkBitmap_readPixels_2'></a>
2972 bool <a href='#SkBitmap_readPixels'>readPixels</a>(const <a href='SkPixmap_Reference#SkPixmap'>SkPi…
2975 …a <a href='SkRect_Reference#Rect'>Rect</a> of pixels from <a href='SkBitmap_Reference#Bitmap'>Bitm…
2976 …s not exceed <a href='SkBitmap_Reference#Bitmap'>Bitmap</a> (<a href='#SkBitmap_width'>width()</a>…
2978 …a href='#SkBitmap_readPixels_2_dst'>dst</a> specifies width, height, <a href='#Image_Info_Color_Ty…
2979 and <a href='#Row_Bytes'>row bytes</a> of destination. <a href='#SkBitmap_readPixels_2_dst'>dst</a…
2983 …<td><a href='#SkBitmap_readPixels_2_dst'>dst</a> <a href='undocumented#Pixel_Storage'>pixel stora…
2985 …a href='#SkBitmap_readPixels_2_dst'>dst</a>.<a href='#SkPixmap_rowBytes'>rowBytes</a>() is less th…
2987 <td><a href='#Pixel_Ref'>Pixel_Ref</a> is nullptr</td>
2991 …a href='undocumented#Pixel'>pixel</a> conversion is possible. If <a href='SkBitmap_Reference#Bitma…
2992 …a href='SkImageInfo_Reference#kGray_8_SkColorType'>kGray_8_SkColorType</a>, or <a href='SkImageInf…
2993 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> <a href='#SkBitmap_colorType'>colorType</a> is <a hr…
2994 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> <a href='#SkBitmap_alphaType'>alphaType</a> is <a hr…
2995 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> <a href='#SkBitmap_colorSpace'>colorSpace</a> is nul…
2996 false if <a href='undocumented#Pixel'>pixel</a> conversion is not possible.
2998 <a href='#SkBitmap_readPixels_2_srcX'>srcX</a> and <a href='#SkBitmap_readPixels_2_srcY'>srcY</a> m…
2999 false if <a href='#SkBitmap_width'>width()</a> or <a href='#SkBitmap_height'>height()</a> is zero o…
3000 …a href='undocumented#abs()'>abs</a>(<a href='#SkBitmap_readPixels_2_srcX'>srcX</a>) >= <a href='Sk…
3004 <table> <tr> <td><a name='SkBitmap_readPixels_2_dst'><code><strong>dst</strong></code></a></td>
3005 …destination <a href='SkPixmap_Reference#Pixmap'>Pixmap</a>: <a href='#Image_Info'>Image_Info</a>, …
3007 <tr> <td><a name='SkBitmap_readPixels_2_srcX'><code><strong>srcX</strong></code></a></td>
3008 <td>column index whose absolute value is less than <a href='#SkBitmap_width'>width()</a></td>
3010 <tr> <td><a name='SkBitmap_readPixels_2_srcY'><code><strong>srcY</strong></code></a></td>
3011 <td>row index whose absolute value is less than <a href='#SkBitmap_height'>height()</a></td>
3017 true if pixels are copied to <a href='#SkBitmap_readPixels_2_dst'>dst</a>
3025 …a href='#SkBitmap_writePixels'>writePixels</a> <a href='SkPixmap_Reference#SkPixmap'>SkPixmap</a>:…
3027 <a name='SkBitmap_readPixels_3'></a>
3032 bool <a href='#SkBitmap_readPixels'>readPixels</a>(const <a href='SkPixmap_Reference#SkPixmap'>SkPi…
3035 … a <a href='SkRect_Reference#Rect'>Rect</a> of pixels from <a href='SkBitmap_Reference#Bitmap'>Bit…
3036 …s not exceed <a href='SkBitmap_Reference#Bitmap'>Bitmap</a> (<a href='#SkBitmap_width'>width()</a>…
3038 …a href='#SkBitmap_readPixels_3_dst'>dst</a> specifies width, height, <a href='#Image_Info_Color_Ty…
3039 and <a href='#Row_Bytes'>row bytes</a> of destination. <a href='#SkBitmap_readPixels_3_dst'>dst</a…
3043 …<td><a href='#SkBitmap_readPixels_3_dst'>dst</a> <a href='undocumented#Pixel_Storage'>pixel stora…
3045 …a href='#SkBitmap_readPixels_3_dst'>dst</a>.<a href='#SkPixmap_rowBytes'>rowBytes</a>() is less th…
3047 <td><a href='#Pixel_Ref'>Pixel_Ref</a> is nullptr</td>
3051 …a href='undocumented#Pixel'>pixel</a> conversion is possible. If <a href='SkBitmap_Reference#Bitma…
3052 …a href='SkImageInfo_Reference#kGray_8_SkColorType'>kGray_8_SkColorType</a>, or <a href='SkImageInf…
3053 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> <a href='#SkBitmap_colorType'>colorType</a> is <a hr…
3054 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> <a href='#SkBitmap_alphaType'>alphaType</a> is <a hr…
3055 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> <a href='#SkBitmap_colorSpace'>colorSpace</a> is nul…
3056 false if <a href='undocumented#Pixel'>pixel</a> conversion is not possible.
3060 <table> <tr> <td><a name='SkBitmap_readPixels_3_dst'><code><strong>dst</strong></code></a></td>
3061 …destination <a href='SkPixmap_Reference#Pixmap'>Pixmap</a>: <a href='#Image_Info'>Image_Info</a>, …
3067 true if pixels are copied to <a href='#SkBitmap_readPixels_3_dst'>dst</a>
3075 …a href='#SkBitmap_writePixels'>writePixels</a> <a href='SkPixmap_Reference#SkPixmap'>SkPixmap</a>:…
3077 <a name='SkBitmap_writePixels'></a>
3082 bool <a href='#SkBitmap_writePixels'>writePixels</a>(const <a href='SkPixmap_Reference#SkPixmap'>Sk…
3085 …a <a href='SkRect_Reference#Rect'>Rect</a> of pixels from <a href='#SkBitmap_writePixels_src'>src<…
3086 …a href='#SkBitmap_writePixels_src'>src</a>.<a href='#SkPixmap_width'>width()</a>, <a href='#SkBitm…
3088 …a href='#SkBitmap_writePixels_src'>src</a> specifies width, height, <a href='#Image_Info_Color_Typ…
3089 and <a href='#Row_Bytes'>row bytes</a> of source. <a href='#SkBitmap_writePixels_src'>src</a>.<a h…
3093 …<td><a href='#SkBitmap_writePixels_src'>src</a> <a href='undocumented#Pixel_Storage'>pixel storag…
3095 …a href='#SkBitmap_writePixels_src'>src</a>.<a href='#SkPixmap_rowBytes'>rowBytes</a>() is less tha…
3097 <td><a href='#Pixel_Ref'>Pixel_Ref</a> is nullptr</td>
3101 …a href='undocumented#Pixel'>pixel</a> conversion is possible. If <a href='SkBitmap_Reference#Bitma…
3102 …a href='SkImageInfo_Reference#kGray_8_SkColorType'>kGray_8_SkColorType</a>, or <a href='SkImageInf…
3103 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> <a href='#SkBitmap_colorType'>colorType</a> is <a hr…
3104 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> <a href='#SkBitmap_alphaType'>alphaType</a> is <a hr…
3105 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> <a href='#SkBitmap_colorSpace'>colorSpace</a> is nul…
3106 false if <a href='undocumented#Pixel'>pixel</a> conversion is not possible.
3108 <a href='#SkBitmap_writePixels_dstX'>dstX</a> and <a href='#SkBitmap_writePixels_dstY'>dstY</a> may…
3109 false if <a href='#SkBitmap_width'>width()</a> or <a href='#SkBitmap_height'>height()</a> is zero o…
3110 …a href='undocumented#abs()'>abs</a>(<a href='#SkBitmap_writePixels_dstX'>dstX</a>) >= <a href='SkB…
3114 <table> <tr> <td><a name='SkBitmap_writePixels_src'><code><strong>src</strong></code></a></td>
3115 …<td>source <a href='SkPixmap_Reference#Pixmap'>Pixmap</a>: <a href='#Image_Info'>Image_Info</a>, p…
3117 <tr> <td><a name='SkBitmap_writePixels_dstX'><code><strong>dstX</strong></code></a></td>
3118 <td>column index whose absolute value is less than <a href='#SkBitmap_width'>width()</a></td>
3120 <tr> <td><a name='SkBitmap_writePixels_dstY'><code><strong>dstY</strong></code></a></td>
3121 <td>row index whose absolute value is less than <a href='#SkBitmap_height'>height()</a></td>
3127 true if <a href='#SkBitmap_writePixels_src'>src</a> pixels are copied to <a href='SkBitmap_Referenc…
3135 <a href='#SkBitmap_readPixels'>readPixels</a>
3137 <a name='SkBitmap_writePixels_2'></a>
3142 bool <a href='#SkBitmap_writePixels'>writePixels</a>(const <a href='SkPixmap_Reference#SkPixmap'>Sk…
3145 Copies a <a href='SkRect_Reference#Rect'>Rect</a> of pixels from <a href='#SkBitmap_writePixels_2_s…
3146 …a href='#SkBitmap_writePixels_2_src'>src</a>.<a href='#SkPixmap_width'>width()</a>, <a href='#SkBi…
3148 …a href='#SkBitmap_writePixels_2_src'>src</a> specifies width, height, <a href='#Image_Info_Color_T…
3149 and <a href='#Row_Bytes'>row bytes</a> of source. <a href='#SkBitmap_writePixels_2_src'>src</a>.<a…
3153 …<td><a href='#SkBitmap_writePixels_2_src'>src</a> <a href='undocumented#Pixel_Storage'>pixel stor…
3155 …a href='#SkBitmap_writePixels_2_src'>src</a>.<a href='#SkPixmap_rowBytes'>rowBytes</a>() is less t…
3157 <td><a href='#Pixel_Ref'>Pixel_Ref</a> is nullptr</td>
3161 …a href='undocumented#Pixel'>pixel</a> conversion is possible. If <a href='SkBitmap_Reference#Bitma…
3162 …a href='SkImageInfo_Reference#kGray_8_SkColorType'>kGray_8_SkColorType</a>, or <a href='SkImageInf…
3163 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> <a href='#SkBitmap_colorType'>colorType</a> is <a hr…
3164 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> <a href='#SkBitmap_alphaType'>alphaType</a> is <a hr…
3165 …a href='SkBitmap_Reference#Bitmap'>Bitmap</a> <a href='#SkBitmap_colorSpace'>colorSpace</a> is nul…
3166 false if <a href='undocumented#Pixel'>pixel</a> conversion is not possible.
3170 <table> <tr> <td><a name='SkBitmap_writePixels_2_src'><code><strong>src</strong></code></a></td>
3171 …<td>source <a href='SkPixmap_Reference#Pixmap'>Pixmap</a>: <a href='#Image_Info'>Image_Info</a>, p…
3177 true if <a href='#SkBitmap_writePixels_2_src'>src</a> pixels are copied to <a href='SkBitmap_Refere…
3185 <a href='#SkBitmap_readPixels'>readPixels</a>
3187 <a name='SkBitmap_extractAlpha'></a>
3192 bool <a href='#SkBitmap_extractAlpha'>extractAlpha</a>(<a href='SkBitmap_Reference#SkBitmap'>SkBitm…
3195 …a href='#SkBitmap_extractAlpha_dst'>dst</a> to <a href='SkColor_Reference#Alpha'>alpha</a> describ…
3196 or <a href='#SkBitmap_extractAlpha_dst'>dst</a> pixels cannot be allocated.
3198 …a href='#SkBitmap_HeapAllocator'>HeapAllocator</a> to reserve memory for <a href='#SkBitmap_extrac…
3202 <table> <tr> <td><a name='SkBitmap_extractAlpha_dst'><code><strong>dst</strong></code></a></td>
3203 … <a href='undocumented#SkPixelRef'>SkPixelRef</a> to fill with <a href='SkColor_Reference#Alpha'>a…
3209 …a href='SkColor_Reference#Alpha'>alpha</a> <a href='SkCanvas_Reference#Layer'>layer</a> was constr…
3217 <a href='#SkBitmap_extractSubset'>extractSubset</a>
3219 <a name='SkBitmap_extractAlpha_2'></a>
3224 …a href='#SkBitmap_extractAlpha'>extractAlpha</a>(<a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a…
3227 …a href='#SkBitmap_extractAlpha_2_dst'>dst</a> to <a href='SkColor_Reference#Alpha'>alpha</a> descr…
3228 or <a href='#SkBitmap_extractAlpha_2_dst'>dst</a> pixels cannot be allocated.
3230 …a href='#SkBitmap_extractAlpha_2_paint'>paint</a> is not nullptr and contains <a href='undocumente…
3231 …a href='undocumented#Mask_Alpha'>mask alpha</a> from <a href='SkBitmap_Reference#SkBitmap'>SkBitma…
3232 …a href='undocumented#SkPixelRef'>SkPixelRef</a>. Sets <a href='#SkBitmap_extractAlpha_2_offset'>of…
3233 (0, 0) unless <a href='undocumented#SkMaskFilter'>SkMaskFilter</a> generates mask.
3237 <table> <tr> <td><a name='SkBitmap_extractAlpha_2_dst'><code><strong>dst</strong></code></a></t…
3238 … <a href='undocumented#SkPixelRef'>SkPixelRef</a> to fill with <a href='SkColor_Reference#Alpha'>a…
3240 <tr> <td><a name='SkBitmap_extractAlpha_2_paint'><code><strong>paint</strong></code></a></td>
3241 <td>holds optional <a href='undocumented#SkMaskFilter'>SkMaskFilter</a>; may be nullptr</td>
3243 <tr> <td><a name='SkBitmap_extractAlpha_2_offset'><code><strong>offset</strong></code></a></td>
3244 <td>top-left position for <a href='#SkBitmap_extractAlpha_2_dst'>dst</a>; may be nullptr</td>
3250 …a href='SkColor_Reference#Alpha'>alpha</a> <a href='SkCanvas_Reference#Layer'>layer</a> was constr…
3258 <a href='#SkBitmap_extractSubset'>extractSubset</a>
3260 <a name='SkBitmap_extractAlpha_3'></a>
3265 …a href='#SkBitmap_extractAlpha'>extractAlpha</a>(<a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a…
3268 …a href='#SkBitmap_extractAlpha_3_dst'>dst</a> to <a href='SkColor_Reference#Alpha'>alpha</a> descr…
3269 or <a href='#SkBitmap_extractAlpha_3_dst'>dst</a> pixels cannot be allocated.
3271 …a href='#SkBitmap_extractAlpha_3_paint'>paint</a> is not nullptr and contains <a href='undocumente…
3272 …a href='undocumented#Mask_Alpha'>mask alpha</a> from <a href='SkBitmap_Reference#SkBitmap'>SkBitma…
3273 …et to nullptr to use <a href='#SkBitmap_HeapAllocator'>HeapAllocator</a>. Sets <a href='#SkBitmap_…
3274 …a href='#SkBitmap_extractAlpha_3_dst'>dst</a> for alignment with <a href='SkBitmap_Reference#SkBit…
3279 <table> <tr> <td><a name='SkBitmap_extractAlpha_3_dst'><code><strong>dst</strong></code></a></t…
3280 … <a href='undocumented#SkPixelRef'>SkPixelRef</a> to fill with <a href='SkColor_Reference#Alpha'>a…
3282 <tr> <td><a name='SkBitmap_extractAlpha_3_paint'><code><strong>paint</strong></code></a></td>
3283 <td>holds optional <a href='undocumented#SkMaskFilter'>SkMaskFilter</a>; may be nullptr</td>
3285 …<tr> <td><a name='SkBitmap_extractAlpha_3_allocator'><code><strong>allocator</strong></code></a…
3286 …<td>function to reserve memory for <a href='undocumented#SkPixelRef'>SkPixelRef</a>; may be nullpt…
3288 <tr> <td><a name='SkBitmap_extractAlpha_3_offset'><code><strong>offset</strong></code></a></td>
3289 <td>top-left position for <a href='#SkBitmap_extractAlpha_3_dst'>dst</a>; may be nullptr</td>
3295 …a href='SkColor_Reference#Alpha'>alpha</a> <a href='SkCanvas_Reference#Layer'>layer</a> was constr…
3303 <a href='#SkBitmap_extractSubset'>extractSubset</a>
3305 <a name='SkBitmap_peekPixels'></a>
3310 …ool <a href='#SkBitmap_peekPixels'>peekPixels</a>(<a href='SkPixmap_Reference#SkPixmap'>SkPixmap</…
3313 …a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> <a href='undocumented#Pixel'>pixel</a> address, …
3314 is available, and returns true. If <a href='undocumented#Pixel'>pixel</a> address is not available,…
3315 false and leave <a href='#SkBitmap_peekPixels_pixmap'>pixmap</a> unchanged.
3317 <a href='#SkBitmap_peekPixels_pixmap'>pixmap</a> contents become invalid on any future change to <a…
3321 <table> <tr> <td><a name='SkBitmap_peekPixels_pixmap'><code><strong>pixmap</strong></code></a><…
3322 …<td>storage for <a href='undocumented#Pixel'>pixel</a> state if pixels are readable; otherwise, ig…
3328 true if <a href='SkBitmap_Reference#SkBitmap'>SkBitmap</a> has direct access to pixels
3354 …a href='#SkBitmap_peekPixels_pixmap'>pixmap</a> <a href='#SkBitmap_installPixels'>installPixels</a…
3356 <a name='Utility'></a>
3358 <a name='SkBitmap_validate'></a>
3363 void <a href='#SkBitmap_validate'>validate()</a> const;
3368 <a href='SkImageInfo_Reference#SkImageInfo'>SkImageInfo</a>::<a href='#SkImageInfo_validate'>valida…