109 float sample_opacity_scale,
131 float center_x,
float center_y,
132 float opacity_multiplier);
149 float center_x,
float center_y,
150 float opacity_multiplier,
151 const float background_rgb[3]);
gboolean dt_drawlayer_brush_rasterize_dab_rgbaf(const dt_drawlayer_brush_dab_t *dab, float *rgba, int width, int height, float center_x, float center_y, float opacity_multiplier, const float background_rgb[3])
Rasterize a single dab preview in linear float RGBA over an opaque background.
dt_drawlayer_brush_mode_t dt_iop_drawlayer_brush_mode_t
dt_drawlayer_brush_mode_t
Pixel blending behavior used while stamping a dab.
@ DT_DRAWLAYER_BRUSH_MODE_ERASE
@ DT_DRAWLAYER_BRUSH_MODE_PAINT
@ DT_DRAWLAYER_BRUSH_MODE_BLUR
@ DT_DRAWLAYER_BRUSH_MODE_SMUDGE
dt_drawlayer_brush_shape_t dt_iop_drawlayer_brush_shape_t
dt_drawlayer_brush_shape_t
Supported analytic fall-off profiles for brush alpha.
@ DT_DRAWLAYER_BRUSH_SHAPE_SIGMOIDAL
@ DT_DRAWLAYER_BRUSH_SHAPE_GAUSSIAN
@ DT_DRAWLAYER_BRUSH_SHAPE_LINEAR
@ DT_DRAWLAYER_BRUSH_SHAPE_QUADRATIC
gboolean dt_drawlayer_brush_rasterize(const dt_drawlayer_cache_patch_t *sample_patch, dt_drawlayer_cache_patch_t *patch, float scale, const dt_drawlayer_brush_dab_t *dab, float sample_opacity_scale, dt_drawlayer_cache_patch_t *stroke_mask, struct dt_drawlayer_paint_stroke_t *stroke)
Rasterize one dab into a float RGBA buffer.
gboolean dt_drawlayer_brush_rasterize_dab_argb8(const dt_drawlayer_brush_dab_t *dab, uint8_t *argb, int width, int height, int stride, float center_x, float center_y, float opacity_multiplier)
Rasterize a single dab preview into ARGB8 for GUI overlays.
Fully resolved input dab descriptor.
float sample_opacity_scale
float sprinkle_coarseness
Generic float RGBA patch stored either in malloc memory or pixel cache.
Mutable stroke runtime state owned by worker/backend code.