Home
last modified time | relevance | path

Searched refs:alpha (Results 1 - 25 of 344) sorted by relevance

12345678910>>...14

/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
H A Dcolor.h109 uint8_t alpha; member
145 float alpha; member
147 Rgba() : red(0), green(0), blue(0), alpha(0) {} in Rgba()
152 * @param Red value, green value, blue value, alpha transparency.
156 Rgba(float red, float green, float blue, float alpha = 1.0f) in Rgba()
157 : red(red), green(green), blue(blue), alpha(alpha) {} in Rgba()
162 * @param Color is the RGBA object, alpha, and transparency.
166 Rgba(const Rgba& color, float alpha) in Rgba()
170 alpha(alph in Rgba()
444 uint8_t alpha; global() member
[all...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dhorizon_progress_component.cpp56 const double alpha = 0.15; in CreateNativeViews() local
58 STYLE_BACKGROUND_COLOR, Color::GetColorFromRGBA(0xFF, 0xFF, 0xFF, static_cast<uint8_t>(alpha * 0xFF)).full); in CreateNativeViews()
83 uint8_t alpha = OPA_OPAQUE; in SetHorizonProgressStyle() local
84 if (!GetStyleColorValue(style, color, alpha)) { in SetHorizonProgressStyle()
88 progressView_.SetForegroundStyle(STYLE_BACKGROUND_OPA, alpha); in SetHorizonProgressStyle()
93 uint8_t alpha = OPA_OPAQUE; in SetHorizonProgressStyle() local
94 if (!GetStyleColorValue(style, color, alpha)) { in SetHorizonProgressStyle()
98 progressView_.SetBackgroundStyle(STYLE_BACKGROUND_OPA, alpha); in SetHorizonProgressStyle()
H A Dcircle_progress_component.cpp44 uint8_t alpha = OPA_OPAQUE; in CreateNativeViews() local
46 if (ParseColor(defaultBackgroundColor, color, alpha)) { in CreateNativeViews()
48 progressView_.SetBackgroundStyle(STYLE_LINE_OPA, alpha); in CreateNativeViews()
56 if (ParseColor(defaultColor, color, alpha)) { in CreateNativeViews()
139 uint8_t alpha = OPA_OPAQUE; in SetArcColor() local
140 if (!GetStyleColorValue(style, color, alpha)) { in SetArcColor()
144 progressView_.SetForegroundStyle(STYLE_LINE_OPA, alpha); in SetArcColor()
151 uint8_t alpha = OPA_OPAQUE; in SetArcBackgroundColor() local
152 if (!GetStyleColorValue(style, color, alpha)) { in SetArcBackgroundColor()
156 progressView_.SetBackgroundStyle(STYLE_LINE_OPA, alpha); in SetArcBackgroundColor()
[all...]
H A Dinput_edittext_component.cpp204 uint8_t alpha = OPA_OPAQUE; in SetColor() local
205 if (GetStyleColorValue(&style, color, alpha)) { in SetColor()
207 edittext_.SetStyle(STYLE_TEXT_OPA, alpha); in SetColor()
217 uint8_t alpha = OPA_OPAQUE; in SetPlaceholderColor() local
218 if (GetStyleColorValue(&style, color, alpha)) { in SetPlaceholderColor()
219 color32.full = (alpha << 24) | color; // 24:alpha bit offset in color32 in SetPlaceholderColor()
H A Dinput_button_component.cpp131 uint8_t alpha = OPA_OPAQUE; in SetBackgroundColor() local
132 if (!GetStyleColorValue(&style, color, alpha)) { in SetBackgroundColor()
136 pressedOpacityValue_ = alpha; in SetBackgroundColor()
143 uint8_t alpha = OPA_OPAQUE; in SetColor() local
144 if (GetStyleColorValue(&style, color, alpha)) { in SetColor()
146 button_.SetLabelStyle(STYLE_TEXT_OPA, alpha); in SetColor()
H A Dslider_component.cpp86 uint8_t alpha = OPA_OPAQUE; in ApplyPrivateStyle() local
91 if (!GetStyleColorValue(style, color, alpha)) { in ApplyPrivateStyle()
95 sliderView_.SetBackgroundStyle(STYLE_BACKGROUND_OPA, alpha); in ApplyPrivateStyle()
100 if (!GetStyleColorValue(style, color, alpha)) { in ApplyPrivateStyle()
104 sliderView_.SetForegroundStyle(STYLE_BACKGROUND_OPA, alpha); in ApplyPrivateStyle()
109 if (!GetStyleColorValue(style, color, alpha)) { in ApplyPrivateStyle()
/foundation/arkui/ui_lite/frameworks/draw/
H A Dcolor_fill.h19 /* cover mode, src alpha is 255 */
22 reinterpret_cast<Color32*>(d)->alpha = OPA_OPAQUE; \
94 uint8_t alpha = (sTmp->alpha * (a)) / OPA_OPAQUE; \
95 COLOR_BLEND_RGBA(p->red, p->green, p->blue, p->alpha, sTmp->red, sTmp->green, sTmp->blue, alpha); \
98 COLOR_BLEND_RGBA(p->red, p->green, p->blue, p->alpha, sTmp->red, sTmp->green, sTmp->blue, a); \
101 COLOR_BLEND_RGBA(p->red, p->green, p->blue, p->alpha, (sTmp->red) << 3, (sTmp->green) << 2, \
108 uint8_t alpha = (sTmp->alpha * (
[all...]
/foundation/arkui/ui_lite/frameworks/render/
H A Drender_pixfmt_rgba_blend.h36 * @param color color,red,green,blue,alpha Color Component,cover Coverage.
41 uint8_t* color, uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha, uint8_t* covers) in NeonBlendPix()
43 DrawUtils::GetInstance()->BlendLerpPix(color, red, green, blue, alpha, covers); in NeonBlendPix()
48 * @param color color,red,green,blue,alpha Color Component,cover Coverage.
53 uint8_t* color, uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha, uint8_t cover) in NeonBlendPix()
55 DrawUtils::GetInstance()->BlendLerpPix(color, red, green, blue, alpha, cover); in NeonBlendPix()
60 * @param color color,red,green,blue,alpha Color Component
65 uint8_t* color, uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha) in NeonBlendPix()
67 DrawUtils::GetInstance()->BlendLerpPix(color, red, green, blue, alpha); in NeonBlendPix()
82 * @param color color,red,green,blue,alpha Colo
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/color_fuzzer/
H A Dcolor_fuzzer.cpp38 uint32_t alpha = GetObject<uint32_t>(); in ColorFuzzTest001() local
46 color.SetRgb(red, green, blue, alpha); in ColorFuzzTest001()
70 uint32_t alpha = GetObject<uint32_t>(); in ColorFuzzTest002() local
79 colorOne.SetAlpha(alpha); in ColorFuzzTest002()
81 Color colorThree = Color(red, green, blue, alpha); in ColorFuzzTest002()
100 float alpha = GetObject<float>(); in ColorFuzzTest003() local
108 color.SetAlphaF(alpha); in ColorFuzzTest003()
114 color.SetRgbF(red, green, blue, alpha); in ColorFuzzTest003()
130 uint32_t alpha = GetObject<uint32_t>(); in ColorFuzzTest004() local
135 color.ColorQuadSetARGB(alpha, re in ColorFuzzTest004()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/
H A Drs_property_drawable_utilities.cpp103 RSAlphaDrawable::RSAlphaDrawable(float alpha) : RSPropertyDrawable(), alpha_(alpha) {} in RSAlphaDrawable() argument
110 auto alpha = content.GetRenderProperties().GetAlpha(); in Generate() local
111 if (alpha == 1) { in Generate()
114 return content.GetRenderProperties().GetAlphaOffscreen() ? std::make_unique<RSAlphaOffscreenDrawable>(alpha) in Generate()
115 : std::make_unique<RSAlphaDrawable>(alpha); in Generate()
118 RSAlphaOffscreenDrawable::RSAlphaOffscreenDrawable(float alpha) : RSAlphaDrawable(alpha) {} in RSAlphaOffscreenDrawable() argument
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/include/
H A Dpixel_convert.h113 static inline uint32_t Premul255(uint32_t colorComponent, uint32_t alpha) in Premul255() argument
115 if (colorComponent == 0 || colorComponent > MAX_15_BIT_VALUE || alpha > MAX_15_BIT_VALUE) { in Premul255()
118 uint32_t product = colorComponent * alpha + GET_8_BIT; in Premul255()
119 if (colorComponent * alpha / colorComponent != alpha) { in Premul255()
125 static inline uint32_t Unpremul255(uint32_t colorComponent, uint32_t alpha) in Unpremul255() argument
127 if (colorComponent > ALPHA_OPAQUE || alpha > ALPHA_OPAQUE) { in Unpremul255()
130 if (alpha == ALPHA_TRANSPARENT) { in Unpremul255()
133 if (alpha == ALPHA_OPAQUE) { in Unpremul255()
136 uint32_t result = static_cast<float>(colorComponent) * ALPHA_OPAQUE / alpha in Unpremul255()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Drosen_scroll_bar_painter.h36 const Offset& globalOffset, int32_t alpha);
39 const Rect& paintRect, const RefPtr<ScrollBar>& scrollBar, const Offset& globalOffset, int32_t alpha);
47 void PaintRectBar(SkCanvas* canvas, const Offset& offset, const RefPtr<ScrollBar>& scrollBar, int32_t alpha);
53 const RefPtr<ScrollBar>& scrollBar, int32_t alpha);
/foundation/graphic/graphic_utils_lite/frameworks/
H A Dpixel_format_utils.cpp46 ret.alpha = in.alpha ? 1 : 0; in ARGB8888ToARGB1555()
64 ret.alpha = in.alpha ? 0xFF : 0x0; in ARGB1555ToARGB8888()
H A Dcolor.cpp29 ret.alpha = 0xFF; in GetMixColor()
39 ColorType Color::GetColorFromRGBA(uint8_t r8, uint8_t g8, uint8_t b8, uint8_t alpha) in GetColorFromRGBA() argument
48 rColor.full = (alpha << 24) | (r8 << 16) | (g8 << 8) | (b8); in GetColorFromRGBA()
60 ret.alpha = 0xFF; in ColorTo32()
67 uint32_t Color::ColorTo32(Color16 color, uint8_t alpha) in ColorTo32() argument
79 ret.alpha = alpha; in ColorTo32()
/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_picker_unit_test.cpp112 backgroundColor.alpha = OPA_OPAQUE; in HWTEST_F()
113 highlightColor.alpha = OPA_OPAQUE; in HWTEST_F()
116 EXPECT_EQ(picker_->GetBackgroundTextColor().alpha, backgroundColor.alpha); in HWTEST_F()
117 EXPECT_EQ(picker_->GetHighlightTextColor().alpha, highlightColor.alpha); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/texgine/texgine_drawing/src/
H A Dtexgine_paint.cpp55 void TexginePaint::SetAlphaf(const float alpha) in SetAlphaf() argument
57 brush_->SetAlphaF(alpha); in SetAlphaf()
58 pen_->SetAlphaF(alpha); in SetAlphaf()
103 void TexginePaint::SetAlpha(const unsigned int alpha) in SetAlpha() argument
105 brush_->SetAlpha(alpha); in SetAlpha()
106 pen_->SetAlpha(alpha); in SetAlpha()
/foundation/window/window_manager_lite/services/wms/
H A Dlite_win.cpp196 uint8_t alpha = tmpSrc->alpha * config_.opacity / OPA_OPAQUE; in FlushWithModeBlend() local
199 if (dst->alpha == 0) { in FlushWithModeBlend()
200 if (alpha) { in FlushWithModeBlend()
202 dst->red = (tmpSrc->red * alpha / OPA_OPAQUE) >> 3; in FlushWithModeBlend()
203 dst->green = (tmpSrc->green * alpha / OPA_OPAQUE) >> 3; in FlushWithModeBlend()
204 dst->blue = (tmpSrc->blue * alpha / OPA_OPAQUE) >> 3; in FlushWithModeBlend()
205 dst->alpha = 1; in FlushWithModeBlend()
209 (tmpSrc->red) >> 3, (tmpSrc->green) >> 3, (tmpSrc->blue) >> 3, alpha); in FlushWithModeBlend()
212 if (alpha in FlushWithModeBlend()
[all...]
/foundation/graphic/graphic_utils_lite/frameworks/diagram/rasterizer/
H A Drasterizer_scanline_antialias.cpp24 * and then the alpha information of color is calculated by gamma function
48 uint32_t alpha; in SweepScanline() local
59 alpha = CalculateAlpha((cover << (POLY_SUBPIXEL_SHIFT + 1)) - area); in SweepScanline()
60 if (alpha) { in SweepScanline()
61 sl.AddCell(x, alpha); in SweepScanline()
67 alpha = CalculateAlpha(cover << (POLY_SUBPIXEL_SHIFT + 1)); in SweepScanline()
68 if (alpha) { in SweepScanline()
69 sl.AddSpan(x, curCell->x - x, alpha); in SweepScanline()
86 * @brief Convert area cover to gamma cover value to calculate alpha.
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/canvas/
H A Djs_rendering_context_settings.cpp33 bool alpha = false; in Constructor() local
38 JSViewAbstract::ParseJsBool(args[1], alpha); in Constructor()
41 jsRenderingContextSettings->SetAlpha(alpha); in Constructor()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/
H A Drs_color.cpp36 RSColor::RSColor(int16_t red, int16_t green, int16_t blue, int16_t alpha) noexcept
38 alpha_ = alpha;
102 return ((static_cast<uint32_t>(std::clamp<int16_t>(alpha_, 0, UINT8_MAX))) << 24) | // 24 alpha shift in AsArgbInt()
110 uint32_t alpha = (argb >> 24) & 0xFF; // 24 is alpha shift in ARGB, 0xFF is a byte mask in FromArgbInt() local
111 return RSColor(((argb << 8) & 0xFFFFFF00) | alpha); // 8 is rgb shift, 0xFFFFFF00 is a rgb mask in FromArgbInt()
172 void RSColor::SetAlpha(int16_t alpha) in SetAlpha() argument
174 alpha_ = alpha; in SetAlpha()
177 void RSColor::MultiplyAlpha(float alpha) in MultiplyAlpha() argument
179 alpha_ = static_cast<int16_t>(alpha_ * std::clamp(alpha, 0. in MultiplyAlpha()
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/
H A Drs_color_test.cpp50 int16_t alpha = 13; in HWTEST_F() local
51 RSColor color(red, green, blue, alpha); in HWTEST_F()
83 int16_t alpha = 13; in HWTEST_F() local
84 RSColor color(red, green, blue, alpha); in HWTEST_F()
89 RSColor ohterColor1(red1, green, blue, alpha); in HWTEST_F()
93 RSColor ohterColor2(red2, green, blue, alpha); in HWTEST_F()
130 int16_t alpha = 13; in HWTEST_F() local
131 RSColor color(red, green, blue, alpha); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/pen_fuzzer/
H A Dpen_fuzzer.cpp31 scalar alpha = GetObject<scalar>(); in PenFuzzTestInner01() local
36 alpha, in PenFuzzTestInner01()
100 uint32_t alpha = GetObject<uint32_t>(); in PenFuzzTestInner04() local
104 Color color(alpha, red, blue, green); in PenFuzzTestInner04()
151 int alpha = GetObject<int>(); in PenFuzzTest() local
154 pen.SetARGB(red, gree, blue, alpha); in PenFuzzTest()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/
H A Dimage_source_gif_test.cpp134 uint8_t alpha = pixelMap->GetARGB32ColorA(color); in HWTEST_F() local
138 IMAGE_LOGD("point:[%u, %u] ARGB:[%u, %u, %u, %u]", posX, posY, alpha, red, green, blue); in HWTEST_F()
139 EXPECT_EQ(255, alpha); in HWTEST_F()
185 uint8_t alpha = pixelMap->GetARGB32ColorA(color); in HWTEST_F() local
186 IMAGE_LOGD("point:[%u, %u] RGBA:[%u, %u, %u, %u]", posX, posY, red, green, blue, alpha); in HWTEST_F()
187 EXPECT_EQ(255, alpha); in HWTEST_F()
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/spancolorfill/
H A Dfill_base.h108 span->alpha = (colors1->alpha+colors2->alpha) >= MAX_COLOR_NUM ? in Generate()
109 MAX_COLOR_NUM:(colors1->alpha+colors2->alpha); in Generate()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_proxy_render_node.cpp80 void RSProxyRenderNode::SetContextAlpha(float alpha) in SetContextAlpha() argument
82 if (contextAlpha_ == alpha) { in SetContextAlpha()
85 contextAlpha_ = alpha; in SetContextAlpha()
87 target->SetContextAlpha(alpha, false); in SetContextAlpha()
91 std::unique_ptr<RSCommand> command = std::make_unique<RSSurfaceNodeSetContextAlpha>(targetId_, alpha); in SetContextAlpha()

Completed in 10 milliseconds

12345678910>>...14