Searched defs:alpha (Results 1 - 25 of 35) sorted by relevance

12

/inkscape/src/display/
H A Dnr-filter-utils.h53 * Clamps an integer to a value between 0 and alpha. Useful when handling
54 * images with premultiplied alpha, as setting some of RGB channels
55 * to a value bigger than alpha confuses the alpha blending in Inkscape
56 * \return 0 if val is negative, alpha if val is bigger than alpha, val otherwise
58 * \param alpha the maximum value to clamp to
60 inline int clamp_alpha(int const val, int const alpha) { argument
62 if (val > alpha) return alpha;
[all...]
H A Ddrawing-context.cpp121 void DrawingContext::paint(double alpha) { argument
122 if (alpha == 1.0) cairo_paint(_ct);
123 else cairo_paint_with_alpha(_ct, alpha);
H A Ddrawing-image.cpp223 guint32 alpha = 0; local
226 alpha = (px & 0xff000000) >> 24;
228 alpha = pix_ptr[3];
232 float alpha_f = (alpha / 255.0f) * _opacity;
H A Dnr-filter-slot.cpp100 cairo_surface_t *alpha = ink_cairo_extract_alpha(src); local
101 _set_internal(NR_FILTER_SOURCEALPHA, alpha);
102 cairo_surface_destroy(alpha);
H A Dcairo-utils.h186 premul_alpha(const guint32 color, const guint32 alpha) argument
188 const guint32 temp = alpha * color + 128;
192 unpremul_alpha(const guint32 color, const guint32 alpha) argument
194 // NOTE: you must check for alpha != 0 yourself.
195 return (255 * color + alpha/2) / alpha;
H A Dnr-filter-gaussian.cpp273 static void calcTriggsSdikaInitialization(double const M[N*N], IIRValue const uold[N][SIZE], IIRValue const uplus[SIZE], IIRValue const vplus[SIZE], IIRValue const alpha, IIRValue vold[N][SIZE]) { argument
282 // Properly takes care of the scaling coefficient alpha and vplus (which is already appropriately scaled)
284 // (and scaled the final output by alpha^2) and then gradually reintroducing the scaling coefficient.
285 vold[i][c] = voldf*alpha;
483 b[0] = 1; // b[0] == alpha (scaling coefficient)
/inkscape/src/ui/tools/
H A Ddropper-tool.h53 double alpha; member in class:Inkscape::UI::Tools::DropperTool
H A Ddropper-tool.cpp70 , alpha(0)
156 (pick == SP_DROPPER_PICK_ACTUAL && setalpha) ? this->alpha : 1.0);
259 this->alpha = A;
262 double alpha_to_set = setalpha? this->alpha : 1.0;
268 // alpha of color under cursor, to show in the statusbar
270 gchar *alpha = g_strdup_printf(_(" alpha %.3g"), alpha_to_set); local
279 (pick == SP_DROPPER_PICK_VISIBLE) ? "" : alpha, where, message);
282 g_free(alpha);
298 double alpha_to_set = setalpha? this->alpha
[all...]
/inkscape/src/ui/widget/
H A Dcolor-entry.cpp58 unsigned int alpha = SP_COLOR_F_TO_U(_color.alpha()); local
59 text += Glib::ustring::format(std::hex, std::setw(2), std::setfill(L'0'), alpha);
90 gdouble alpha = _color.alpha(); local
92 guint32 rgba = color.toRGBA32(alpha);
H A Dcolor-notebook.cpp294 gfloat alpha = _selected_color.alpha(); local
296 g_return_if_fail((0.0 <= alpha) && (alpha <= 1.0));
H A Dcolor-scales.cpp186 gfloat alpha = 1.0; local
194 alpha = c[3];
202 alpha = c[4];
211 _color.setColorAlpha(color, alpha);
218 _color.color().v.c[1], _color.color().v.c[2], _color.alpha());
228 c[3] = _color.alpha();
234 c[3] = _color.alpha();
239 c[4] = _color.alpha();
551 /* Update alpha */
578 /* Update alpha */
[all...]
/inkscape/src/libcola/
H A Dgradient_projection.cpp85 // compute step size: alpha = ( g' g ) / ( 2 g' A g )
96 double alpha = numerator/denominator; local
100 place[i]-=alpha*g[i];
106 (*it)->steepestDescent(alpha);
H A Dgradient_projection.h152 * alpha is the step size.
154 void steepestDescent(double alpha) { argument
155 place_l -= alpha*g;
156 place_r += alpha*g;
/inkscape/src/trace/
H A Dimagemap-gdk.cpp33 int alpha = (int)p[3]; local
34 int white = 3 * (255-alpha);
36 unsigned long bright = sample * alpha / 256 + white;
110 int alpha = (int)p[3]; local
111 int white = 255 - alpha;
112 int r = (int)p[0]; r = r * alpha / 256 + white;
113 int g = (int)p[1]; g = g * alpha / 256 + white;
114 int b = (int)p[2]; b = b * alpha / 256 + white;
153 int alpha = (int)p[3]; local
154 int white = 255 - alpha;
[all...]
/inkscape/src/widgets/
H A Dswatch-selector.cpp78 gfloat alpha = _selected_color.alpha(); local
85 os << "stop-color:" << c << ";stop-opacity:" << static_cast<gdouble>(alpha) <<";";
H A Dsp-color-selector.cpp172 void ColorSelector::setAlpha( gfloat alpha )
174 g_return_if_fail( ( 0.0 <= alpha ) && ( alpha <= 1.0 ) );
175 setColorAlpha( _color, alpha );
189 void ColorSelector::setColorAlpha( const SPColor& color, gfloat alpha, bool emit ) argument
192 g_message("ColorSelector::setColorAlpha( this=%p, %f, %f, %f, %s, %f, %s) in %s", this, color.v.c[0], color.v.c[1], color.v.c[2], (color.icc?color.icc->colorProfile.c_str():"<null>"), alpha, (emit?"YES":"no"), FOO_NAME(_csel));
195 g_return_if_fail( ( 0.0 <= alpha ) && ( alpha <= 1.0 ) );
198 g_message("---- ColorSelector::setColorAlpha virgin:%s !close:%s alpha is:%s in %s",
201 ((fabs((_alpha) - (alpha)) >
250 _updateInternals( const SPColor& color, gfloat alpha, gboolean held ) argument
[all...]
/inkscape/src/ui/
H A Dselected-color.cpp52 void SelectedColor::setAlpha(gfloat alpha) argument
54 g_return_if_fail( ( 0.0 <= alpha ) && ( alpha <= 1.0 ) );
55 setColorAlpha( _color, alpha);
58 gfloat SelectedColor::alpha() const function in class:Inkscape::UI::SelectedColor
66 gfloat alpha = SP_RGBA32_A_F(value); local
67 setColorAlpha(color, alpha);
75 void SelectedColor::setColorAlpha(SPColor const &color, gfloat alpha, bool emit_signal) argument
78 g_message("SelectedColor::setColorAlpha( this=%p, %f, %f, %f, %s, %f, %s)", this, color.v.c[0], color.v.c[1], color.v.c[2], (color.icc?color.icc->colorProfile.c_str():"<null>"), alpha, (emit_signal?"YES":"no"));
80 g_return_if_fail( ( 0.0 <= alpha )
[all...]
/inkscape/src/
H A Dsp-stop.cpp246 unsigned const alpha = static_cast<unsigned>(this->opacity * 0xff + 0.5); local
248 g_return_val_if_fail((alpha & ~0xff) == 0, rgb0 | 0xff);
250 return rgb0 | alpha;
/inkscape/src/2geom/
H A Dsbasis-math.cpp238 double alpha = (f.at0()+f.at1())/2.; local
239 SBasis x = f-alpha;
259 return Piecewise<SBasis>(std::cos(alpha)*c-std::sin(alpha)*s);
H A Dellipse.cpp545 Coord alpha = (dd - cc*q) / (s - q); local
546 Coord beta = cc - alpha;
548 lines[0] = Line(1, q, alpha);
554 Coord alpha = cc / ee; local
557 lines[0] = Line(q, 1, alpha);
/inkscape/src/extension/internal/filter/
H A Dfilter.cpp182 Inkscape::XML::Node * alpha = xmldoc->createElement("svg:feColorMatrix"); local
183 alpha->setAttribute("result", FILTER_SRC_GRAPHIC_ALPHA);
184 alpha->setAttribute("in", FILTER_SRC_GRAPHIC); // not required, but we're being explicit
185 alpha->setAttribute("values", "0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 0");
187 filternode->appendChild(alpha);
191 Inkscape::GC::release(alpha);
H A Dtransparency.h135 "<param name=\"alpha\" gui-text=\"" N_("Alpha") "\" type=\"float\" appearance=\"full\" precision=\"2\" min=\"-10.\" max=\"10.\">1</param>\n"
158 std::ostringstream alpha; local
164 alpha << ext->get_param_float("alpha");
176 "</filter>\n", red.str().c_str(), green.str().c_str(), blue.str().c_str(), alpha.str().c_str(),
/inkscape/src/extension/internal/
H A Djavafx-out.cpp151 * Format an rgba() string for a color and a 0.0-1.0 alpha
153 static JavaFXOutput::String rgba(SPColor color, gdouble alpha) argument
155 return rgba(color.toRGBA32(alpha));
/inkscape/src/xml/
H A Drepr-css.cpp110 // (incomplete color) and "45fab71" as "45fab710" (incomplete alpha)
127 unsigned int color = 0, alpha = 0xff; local
137 if (attempt_alpha) {// try to parse alpha if there's enough characters
138 sscanf(str + 6, "%2x", &alpha);
140 alpha = 0xff;
151 float opacity = static_cast<float>(alpha)/static_cast<float>(0xff);
/inkscape/src/livarot/
H A DShapeMisc.cpp619 double alpha = 1; local
635 this_power = power * (0.5 * cos (M_PI * (pow(x, alpha))) + 0.5);
808 double alpha = 1; local
815 this_dec = dec * (0.5 * cos (M_PI * (pow(x, alpha))) + 0.5);

Completed in 61 milliseconds

12