alpha_composite_premul — GFX2D composite op

• Data kinds: rgba_premul × rgba_premul → rgba_premul

• Call: import fullseye as fs; fs.ledger.alpha_composite_premul(src, dst) (implementation को सीधे call करना हो तो import gfx2d; gfx2d.alpha_composite_premul(src, dst), registry से लेना हो तो opsgfx2d.get("alpha_composite_premul"))

उपयोग

premultiplied रंग पर Porter–Duff over: src + dst*(1 - src.a)।

> नीचे का विस्तृत विवरण मूल text में है — सारांश और headings का अनुवाद हो चुका है।

This is the operator; alpha_composite is this one with a conversion on each side. Being affine in dst, it is exactly associative — over(over(A, B), C) == over(A, over(B, C)) to float64 rounding, which the test suite checks as an equality rather than a tolerance.

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• gfx2d_scene — py -3.11 examples/gfx2d_scene.py

वे अगले ops जिनसे type जुड़ता है (rgba_premul को input के रूप में लेते हैं)

unpremultiply

इसी category के (composite)

premultiply · unpremultiply · alpha_composite · blend_mode · layer_stack


*Provenance: gfx2d.py — GFX2D operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.