Lines Matching refs:brush

59     // 1. Call OH_Drawing_BrushCreate to create a brush object
60 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
62 OH_Drawing_BrushDestroy(brush);
74 // 1. Create a brush object 1 by calling OH_Drawing_BrushCreate
76 // 2. Set the color of brush 1 by calling OH_Drawing_BrushSetColor
78 // 3. Copy brush 1 to create brush object 2 by calling OH_Drawing_BrushCopy
80 // 4. Get the color of brush object 2 by calling OH_Drawing_BrushGetColor
83 // 5. Modify the color of brush object 1 by calling OH_Drawing_BrushSetColor
85 // 6. Get the color of brush object 2 again by calling OH_Drawing_BrushGetColor
102 // 1. Create a brush object by calling OH_Drawing_BrushCreate
103 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
104 // 2. Copy a brush object by calling OH_Drawing_BrushCopy with nullptr as parameter
107 OH_Drawing_BrushDestroy(brush);
120 // 1. Call OH_Drawing_BrushCreate to create a brush object 1
122 // 2. Copy brush object 1 to create brush object 2 by calling OH_Drawing_BrushCopy
124 // 3. Destroy brush object 1 by calling OH_Drawing_BrushDestroy
126 // 4. Set the color of brush object 2 by calling OH_Drawing_BrushSetColor
128 // 5. Get the color of brush object 2 by calling OH_Drawing_BrushGetColor
144 // 1. Create a brush object by calling OH_Drawing_BrushCreate
145 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
148 OH_Drawing_Brush *brushCopy = OH_Drawing_BrushCopy(brush);
152 OH_Drawing_BrushDestroy(brush);
164 // 1. Call OH_Drawing_BrushCreate to create a brush object
165 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
167 OH_Drawing_BrushDestroy(brush);
179 // 1. Create a brush object by calling OH_Drawing_BrushCreate
180 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
184 OH_Drawing_BrushDestroy(brush);
196 // 1. Call OH_Drawing_BrushCreate to create a brush object
197 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
199 OH_Drawing_BrushSetAntiAlias(brush, true);
201 bool isAntiAlias = OH_Drawing_BrushIsAntiAlias(brush);
204 OH_Drawing_BrushDestroy(brush);
216 // 1. Create a brush object by calling OH_Drawing_BrushCreate
217 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
221 OH_Drawing_BrushDestroy(brush);
233 // 1. Call OH_Drawing_BrushCreate to create a brush object
234 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
236 OH_Drawing_BrushSetAntiAlias(brush, true);
238 bool isAntiAlias = OH_Drawing_BrushIsAntiAlias(brush);
241 OH_Drawing_BrushDestroy(brush);
253 // 1. Create a brush object by calling OH_Drawing_BrushCreate
254 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
258 OH_Drawing_BrushDestroy(brush);
270 // 1. Create a brush object by calling OH_Drawing_BrushCreate
271 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
272 // 2. Set the color of the brush object by calling OH_Drawing_BrushSetColor
273 OH_Drawing_BrushSetColor(brush, 0x12345678);
274 // 3. Get the color of the brush object by calling OH_Drawing_BrushGetColor
275 uint32_t color = OH_Drawing_BrushGetColor(brush);
278 OH_Drawing_BrushDestroy(brush);
290 // 1. Create a brush object by calling OH_Drawing_BrushCreate
291 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
295 OH_Drawing_BrushDestroy(brush);
307 // 1. Create a brush object by calling OH_Drawing_BrushCreate
308 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
309 // 2. Set the color of the brush object by calling OH_Drawing_BrushSetColor
310 OH_Drawing_BrushSetColor(brush, 0x12345678);
311 // 3. Get the color of the brush object by calling OH_Drawing_BrushGetColor
312 uint32_t color = OH_Drawing_BrushGetColor(brush);
315 OH_Drawing_BrushDestroy(brush);
327 // 1. Create a brush object by calling OH_Drawing_BrushCreate
328 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
332 OH_Drawing_BrushSetColor(brush, 0);
333 // 4. Call OH_Drawing_BrushGetColor to get the brush color
334 uint32_t color = OH_Drawing_BrushGetColor(brush);
337 OH_Drawing_BrushDestroy(brush);
349 // 1. Create a brush object by calling OH_Drawing_BrushCreate
350 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
352 OH_Drawing_BrushSetColor(brush, -1);
354 // 3. Call OH_Drawing_BrushGetColor to get the brush color
355 uint32_t color = OH_Drawing_BrushGetColor(brush);
358 OH_Drawing_BrushDestroy(brush);
370 // 1. Create a brush object by calling OH_Drawing_BrushCreate
371 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
372 // 2. Set the color of the brush object by calling OH_Drawing_BrushSetColor with a value greater than the maximum
374 OH_Drawing_BrushSetColor(brush, 0xFFFFFFFF + 1);
375 // 3. Get the color of the brush object by calling OH_Drawing_BrushGetColor
376 uint32_t color = OH_Drawing_BrushGetColor(brush);
379 OH_Drawing_BrushDestroy(brush);
391 // 1. Create a brush object by calling OH_Drawing_BrushCreate
392 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
393 // 2. Set the alpha value of the brush object by calling OH_Drawing_BrushSetAlpha
394 OH_Drawing_BrushSetAlpha(brush, 128);
395 // 3. Get the alpha value of the brush object by calling OH_Drawing_BrushGetAlpha
396 uint8_t alpha = OH_Drawing_BrushGetAlpha(brush);
399 OH_Drawing_BrushDestroy(brush);
411 // 1. Create a brush object by calling OH_Drawing_BrushCreate
412 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
416 OH_Drawing_BrushDestroy(brush);
428 // 1. Create a brush object by calling OH_Drawing_BrushCreate
429 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
430 // 2. Set the alpha value of the brush object by calling OH_Drawing_BrushSetAlpha
431 OH_Drawing_BrushSetAlpha(brush, 128);
432 // 3. Get the alpha value of the brush object by calling OH_Drawing_BrushGetAlpha
433 uint8_t alpha = OH_Drawing_BrushGetAlpha(brush);
436 OH_Drawing_BrushDestroy(brush);
448 // 1. Create a brush object by calling OH_Drawing_BrushCreate
449 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
453 OH_Drawing_BrushSetAlpha(brush, 0);
455 OH_Drawing_BrushDestroy(brush);
467 // 1. Create a brush object by calling OH_Drawing_BrushCreate
468 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
470 OH_Drawing_BrushSetAlpha(brush, -1);
472 uint8_t alpha = OH_Drawing_BrushGetAlpha(brush);
475 OH_Drawing_BrushDestroy(brush);
487 // 1. Create a brush object by calling OH_Drawing_BrushCreate
488 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
489 // 2. Set the alpha value of the brush object by calling OH_Drawing_BrushSetAlpha with a value greater than the
491 OH_Drawing_BrushSetAlpha(brush, 0xFFFFFFFF + 1);
492 // 3. Get the alpha value of the brush object by calling OH_Drawing_BrushGetAlpha
493 uint8_t alpha = OH_Drawing_BrushGetAlpha(brush);
496 OH_Drawing_BrushDestroy(brush);
508 // 1. Create a brush object by calling OH_Drawing_BrushCreate
509 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
517 // 3. Set the shader effect for the brush object by calling OH_Drawing_BrushSetShaderEffect
518 OH_Drawing_BrushSetShaderEffect(brush, linearGradient);
523 OH_Drawing_BrushDestroy(brush);
535 // 1. Create a brush object by calling OH_Drawing_BrushCreate
536 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
546 OH_Drawing_BrushSetShaderEffect(brush, nullptr);
551 OH_Drawing_BrushDestroy(brush);
563 // 1. Create a brush object by calling OH_Drawing_BrushCreate
564 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
567 // 3. Set the shadow layer for the brush object by calling OH_Drawing_BrushSetShadowLayer
568 OH_Drawing_BrushSetShadowLayer(brush, shadowLayer);
582 // 1. Create a brush object by calling OH_Drawing_BrushCreate
583 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
588 OH_Drawing_BrushSetShadowLayer(brush, nullptr);
602 // 1. Create a brush object by calling OH_Drawing_BrushCreate
603 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
606 // 3. Set the filter for the brush object by calling OH_Drawing_BrushSetFilter
607 OH_Drawing_BrushSetFilter(brush, filter);
610 OH_Drawing_BrushDestroy(brush);
622 // 1. Create a brush object by calling OH_Drawing_BrushCreate
623 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
628 OH_Drawing_BrushSetFilter(brush, nullptr);
631 OH_Drawing_BrushDestroy(brush);
643 // 1. Create a brush object by calling OH_Drawing_BrushCreate
644 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
647 // 3. Set the filter for the brush object by calling OH_Drawing_BrushSetFilter
648 OH_Drawing_BrushSetFilter(brush, filter);
651 OH_Drawing_BrushGetFilter(brush, tmpFilter);
655 OH_Drawing_BrushDestroy(brush);
667 // 1. Create a brush object by calling OH_Drawing_BrushCreate
668 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
673 OH_Drawing_BrushGetFilter(brush, nullptr);
676 OH_Drawing_BrushDestroy(brush);
688 // 1. Create a brush object by calling OH_Drawing_BrushCreate
689 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
702 OH_Drawing_BrushSetBlendMode(brush, blendMode[i]);
705 OH_Drawing_BrushDestroy(brush);
717 // 1. Create a brush object by calling OH_Drawing_BrushCreate
718 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
722 OH_Drawing_BrushDestroy(brush);
734 // 1. Create a brush object by calling OH_Drawing_BrushCreate
735 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
736 uint32_t color1 = OH_Drawing_BrushGetColor(brush);
737 // 2. Set the color for the brush object by calling OH_Drawing_BrushSetColor
738 OH_Drawing_BrushSetColor(brush, 0x12345678);
739 // 3. Get the color of the brush object by calling OH_Drawing_BrushGetColor
740 uint32_t color2 = OH_Drawing_BrushGetColor(brush);
742 // 4. Reset the state of the brush object by calling OH_Drawing_BrushReset
743 OH_Drawing_BrushReset(brush);
744 // 5. Get the color of the brush object by calling OH_Drawing_BrushGetColor
745 uint32_t color3 = OH_Drawing_BrushGetColor(brush);
748 OH_Drawing_BrushDestroy(brush);
760 // 1. Create a brush object by calling OH_Drawing_BrushCreate
761 OH_Drawing_Brush *brush = OH_Drawing_BrushCreate();
765 OH_Drawing_BrushDestroy(brush);