Home
last modified time | relevance | path

Searched refs:alpha (Results 1 – 25 of 144) sorted by relevance

123456

/foundation/ace/ace_engine_lite/frameworks/src/core/components/
Dhorizon_progress_component.cpp56 const double alpha = 0.15; in CreateNativeViews() local
58 …KGROUND_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()
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()
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()
Dinput_button_component.cpp155 uint8_t alpha = OPA_OPAQUE; in SetBackgroundColor() local
156 if (!GetStyleColorValue(&style, color, alpha)) { in SetBackgroundColor()
160 pressedOpacityValue_ = alpha; in SetBackgroundColor()
167 uint8_t alpha = OPA_OPAQUE; in SetColor() local
168 if (GetStyleColorValue(&style, color, alpha)) { in SetColor()
170 button_.SetLabelStyle(STYLE_TEXT_OPA, alpha); in SetColor()
/foundation/multimedia/image_standard/frameworks/innerkitsimpl/converter/include/
Dpixel_convert.h89 static inline uint32_t Premul255(uint32_t colorComponent, uint32_t alpha) in Premul255() argument
91 if (colorComponent > MAX_15_BIT_VALUE || alpha > MAX_15_BIT_VALUE) { in Premul255()
94 uint32_t product = colorComponent * alpha + GET_8_BIT; in Premul255()
98 static inline uint32_t Unpremul255(uint32_t colorComponent, uint32_t alpha) in Unpremul255() argument
100 if (colorComponent > ALPHA_OPAQUE || alpha > ALPHA_OPAQUE) { in Unpremul255()
103 if (alpha == ALPHA_TRANSPARENT) { in Unpremul255()
106 if (alpha == ALPHA_OPAQUE) { in Unpremul255()
109 uint32_t result = static_cast<float>(colorComponent) * ALPHA_OPAQUE / alpha + HALF_ONE; in Unpremul255()
/foundation/graphic/standard/rosen/modules/render_service_base/src/pipeline/
Drs_paint_filter_canvas.cpp21 RSPaintFilterCanvas::RSPaintFilterCanvas(SkCanvas* canvas, float alpha) in RSPaintFilterCanvas() argument
22 : SkPaintFilterCanvas(canvas), alpha_(std::clamp(alpha, 0.f, 1.f)) in RSPaintFilterCanvas()
45 void RSPaintFilterCanvas::MultiplyAlpha(float alpha) in MultiplyAlpha() argument
47 alpha_ = alpha_ * std::clamp(alpha, 0.f, 1.f); in MultiplyAlpha()
/foundation/ace/ace_engine/frameworks/core/components/common/properties/
Dcolor.cpp145 Color Color::FromARGB(uint8_t alpha, uint8_t red, uint8_t green, uint8_t blue) in FromARGB() argument
149 .argb = { .alpha = alpha, .red = red, .green = green, .blue = blue } in FromARGB()
151 .argb = { .blue = blue, .green = green, .red = red, .alpha = alpha } in FromARGB()
205 uint8_t alpha = 0; in LineColorTransition() local
210alpha = static_cast<uint8_t>((endColor.GetAlpha() - startColor.GetAlpha()) * percent) + startColor… in LineColorTransition()
212 return Color::FromARGB(alpha, red, green, blue); in LineColorTransition()
217 int32_t alpha = static_cast<int32_t>(GetAlpha() * opacityRatio); in BlendOpacity() local
218 alpha = std::clamp(alpha, 0, UINT8_MAX); in BlendOpacity()
219 return Color::FromARGB(alpha, GetRed(), GetGreen(), GetBlue()); in BlendOpacity()
227 Color Color::ChangeAlpha(uint8_t alpha) const in ChangeAlpha()
[all …]
Dcolor.h32 uint8_t alpha; member
42 uint8_t alpha;
55 static Color FromARGB(uint8_t alpha, uint8_t red, uint8_t green, uint8_t blue);
76 Color ChangeAlpha(uint8_t alpha) const;
90 return colorValue_.argb.alpha; in GetAlpha()
135 …static Color ConvertLinearToGamma(double alpha, double linearRed, double linearGreen, double linea…
/foundation/graphic/standard/rosen/modules/render_service_base/src/common/
Drs_color.cpp30 RSColor::RSColor(int16_t red, int16_t green, int16_t blue, int16_t alpha) noexcept in RSColor() argument
32 alpha_ = alpha; in RSColor()
85 …uint32_t alpha = (argb >> 24) & 0xFF; // 24 is alpha shift in ARGB, 0xFF is a byte m… in FromArgbInt() local
86 return RSColor(((argb << 8) & 0xFFFFFF00) | alpha); // 8 is rgb shift, 0xFFFFFF00 is a rgb mask in FromArgbInt()
145 void RSColor::SetAlpha(int16_t alpha) in SetAlpha() argument
147 alpha_ = alpha; in SetAlpha()
150 void RSColor::ApplyAlpha(float alpha) in ApplyAlpha() argument
152 alpha_ = static_cast<int16_t>(alpha_ * std::clamp(alpha, 0.0f, 1.0f)); in ApplyAlpha()
/foundation/graphic/utils/frameworks/
Dcolor.cpp30 ret.alpha = 0xFF; in GetMixColor()
40 ColorType Color::GetColorFromRGBA(uint8_t r8, uint8_t g8, uint8_t b8, uint8_t alpha) in GetColorFromRGBA() argument
49 rColor.full = (alpha << 24) | (r8 << 16) | (g8 << 8) | (b8); in GetColorFromRGBA()
61 ret.alpha = 0xFF; in ColorTo32()
68 uint32_t Color::ColorTo32(Color16 color, uint8_t alpha) in ColorTo32() argument
80 ret.alpha = alpha; in ColorTo32()
Dpixel_format_utils.cpp46 ret.alpha = in.alpha ? 1 : 0; in ARGB8888ToARGB1555()
64 ret.alpha = in.alpha ? 0xFF : 0x0; in ARGB1555ToARGB8888()
/foundation/graphic/ui/test/unittest/components/
Dui_picker_unit_test.cpp112 backgroundColor.alpha = OPA_OPAQUE;
113 highlightColor.alpha = OPA_OPAQUE;
116 EXPECT_EQ(picker_->GetBackgroundTextColor().alpha, backgroundColor.alpha);
117 EXPECT_EQ(picker_->GetHighlightTextColor().alpha, highlightColor.alpha);
/foundation/ace/ace_engine/frameworks/core/pipeline/layers/
Dopacity_layer.h27 …OpacityLayer(uint8_t alpha, double dx, double dy) : OffsetLayer(0, 0), alpha_(alpha), dx_(dx), dy_… in DECLARE_ACE_TYPE()
32 void SetOpacity(uint8_t alpha, double dx, double dy);
Dopacity_layer.cpp29 void OpacityLayer::SetOpacity(uint8_t alpha, double dx, double dy) in SetOpacity() argument
31 alpha_ = alpha; in SetOpacity()
/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/jsview/
Djs_rendering_context_settings.cpp32 bool alpha = false; in Constructor() local
37 JSViewAbstract::ParseJsBool(args[1], alpha); in Constructor()
40 jsRenderingContextSettings->SetAlpha(alpha); in Constructor()
Djs_rendering_context_settings.h42 void SetAlpha(bool alpha) in SetAlpha() argument
44 alpha_ = alpha; in SetAlpha()
/foundation/graphic/wms/services/wms/
Dlite_win.cpp194 uint8_t alpha = tmpSrc->alpha * config_.opacity / OPA_OPAQUE; in FlushWithModeBlend() local
197 if (dst->alpha == 0) { in FlushWithModeBlend()
198 if (alpha) { in FlushWithModeBlend()
200 dst->red = (tmpSrc->red * alpha / OPA_OPAQUE) >> 3; in FlushWithModeBlend()
201 dst->green = (tmpSrc->green * alpha / OPA_OPAQUE) >> 3; in FlushWithModeBlend()
202 dst->blue = (tmpSrc->blue * alpha / OPA_OPAQUE) >> 3; in FlushWithModeBlend()
203 dst->alpha = 1; in FlushWithModeBlend()
207 … (tmpSrc->red) >> 3, (tmpSrc->green) >> 3, (tmpSrc->blue) >> 3, alpha); in FlushWithModeBlend()
210 if (alpha == OPA_OPAQUE) { in FlushWithModeBlend()
214 COLOR_BLEND_RGBA(dst->red, dst->green, dst->blue, dst->alpha, in FlushWithModeBlend()
[all …]
/foundation/graphic/standard/rosen/modules/2d_graphics/src/c/
Ddrawing_color.cpp18 uint32_t OH_Drawing_ColorSetArgb(uint32_t alpha, uint32_t red, uint32_t green, uint32_t blue) in OH_Drawing_ColorSetArgb() argument
21 …return ((alpha & 0xffu) << 24) | ((red & 0xffu) << 16) | ((green & 0xffu) << 8) | ((blue & 0xffu) … in OH_Drawing_ColorSetArgb()
/foundation/multimedia/image_standard/frameworks/innerkitsimpl/test/unittest/
Dimage_source_gif_test.cpp98 uint8_t alpha = pixelMap->GetARGB32ColorA(color); variable
99 …og::Debug(LABEL_TEST, "point:[%u, %u] RGBA:[%u, %u, %u, %u]", posX, posY, red, green, blue, alpha);
104 EXPECT_EQ(255, alpha);
194 uint8_t alpha = pixelMap->GetARGB32ColorA(color); variable
198 …HiLog::Debug(LABEL_TEST, "point:[%u, %u] ARGB:[%u, %u, %u, %u]", posX, posY, alpha, red, green, bl…
199 EXPECT_EQ(255, alpha);
245 uint8_t alpha = pixelMap->GetARGB32ColorA(color); variable
246 …og::Debug(LABEL_TEST, "point:[%u, %u] RGBA:[%u, %u, %u, %u]", posX, posY, red, green, blue, alpha);
247 EXPECT_EQ(255, alpha);
302 uint8_t alpha = pixelMap->GetARGB32ColorA(color); variable
[all …]
/foundation/graphic/utils/interfaces/kits/gfx_utils/
Dcolor.h84 uint8_t alpha; member
156 static ColorType GetColorFromRGBA(uint8_t r8, uint8_t g8, uint8_t b8, uint8_t alpha);
179 static uint32_t ColorTo32(Color16 color, uint8_t alpha);
/foundation/graphic/standard/rosen/modules/render_service_base/include/pipeline/
Drs_paint_filter_canvas.h31 RSPaintFilterCanvas(SkCanvas* canvas, float alpha = 1.0f);
34 void MultiplyAlpha(float alpha);
/foundation/graphic/standard/rosen/modules/render_service_base/include/common/
Drs_color.h31 RSColor(int16_t red, int16_t green, int16_t blue, int16_t alpha) noexcept;
58 void SetAlpha(int16_t alpha);
59 void ApplyAlpha(float alpha);
/foundation/graphic/standard/frameworks/wmserver/src/wmlayout_scss_parser/
Dlexer.l45 alpha ([A-Za-z_])
46 id_all (({alpha}|{digit}|-)*)
51 identifier ({alpha}{id_all})
/foundation/ace/ace_engine/frameworks/core/components/common/painter/
Drosen_scroll_bar_painter.h34 const Offset& globalOffset, int32_t alpha);
39 …RectBar(SkCanvas* canvas, const Offset& offset, const RefPtr<ScrollBar>& scrollBar, int32_t alpha);
/foundation/graphic/standard/rosen/modules/render_service_base/include/property/
Drs_transition_properties.h31 void DoAlphaTransition(float alpha) in DoAlphaTransition() argument
33 alpha_ *= alpha; in DoAlphaTransition()

123456