app_server: Implement more composition modes

* Use agg::comp_op classes to blend pixels.
* Subpixel path not implemented.
* Needed by WebKit.
* Implements #10274.

Change-Id: I07b0002196fd0a05fc100bd9f6d703c33cadc85b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2932
Reviewed-by: X512 <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Kacper Kasper
2020-06-29 14:07:42 +00:00
committed by waddlesplash
parent cc30c791bd
commit 97bd6fe8d4
23 changed files with 563 additions and 15 deletions
+4 -2
View File
@@ -2124,9 +2124,11 @@ SetViewColor(Parent()->ViewColor());
\param alphaFunc Set to one of the following:
- \c B_ALPHA_OVERLAY Used for drawing a image with transparency over an opaque
background.
- \c B_ALPHA_COMPOSITE Used to composite two or more transparent images
- \c B_ALPHA_COMPOSITE_* Used to composite two or more transparent images
together offscreen to produce a new image drawn using
\c B_ALPHA_OVERLAY mode.
\c B_ALPHA_OVERLAY mode.
\note Modes other than \c B_ALPHA_OVERLAY and \c B_ALPHA_COMPOSITE work
only with \c B_PIXEL_ALPHA.
\since BeOS R5
*/