Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html5 canvas HTML画布GlobalComposite操作模式的规格在哪里?_Html5 Canvas - Fatal编程技术网

Html5 canvas HTML画布GlobalComposite操作模式的规格在哪里?

Html5 canvas HTML画布GlobalComposite操作模式的规格在哪里?,html5-canvas,Html5 Canvas,最近,我阅读了数TB的关于画布混合模式各个方面的博学文章,甚至发现了像这样漂亮的测试页面 然而,我只能在每像素的基础上找到不同模式的最模糊描述,包括在选择src/dest像素或组合src/dest值时使用alpha通道的方式 善良的灵魂能给我指出可靠的来源吗?HTML5画布2d上下文的正式规范由和发布 复合操作值的WhatWG引用 W3对其定义如下: source-atop A atop B. Display the source image wherever both images a

最近,我阅读了数TB的关于画布混合模式各个方面的博学文章,甚至发现了像这样漂亮的测试页面

然而,我只能在每像素的基础上找到不同模式的最模糊描述,包括在选择src/dest像素或组合src/dest值时使用alpha通道的方式


善良的灵魂能给我指出可靠的来源吗?

HTML5画布2d上下文的正式规范由和发布

复合操作值的WhatWG引用

W3对其定义如下:

source-atop
    A atop B. Display the source image wherever both images are opaque. Display the destination image wherever the destination image is opaque but the source image is transparent. Display transparency elsewhere.
source-in
    A in B. Display the source image wherever both the source image and destination image are opaque. Display transparency elsewhere.
source-out
    A out B. Display the source image wherever the source image is opaque and the destination image is transparent. Display transparency elsewhere.
source-over (default)
    A over B. Display the source image wherever the source image is opaque. Display the destination image elsewhere.
destination-atop
    B atop A. Same as source-atop but using the destination image instead of the source image and vice versa.
destination-in
    B in A. Same as source-in but using the destination image instead of the source image and vice versa.
destination-out
    B out A. Same as source-out but using the destination image instead of the source image and vice versa.
destination-over
    B over A. Same as source-over but using the destination image instead of the source image and vice versa.
lighter
    A plus B. Display the sum of the source image and destination image, with color values approaching 255 (100%) as a limit.
copy
    A (B is ignored). Display the source image instead of the destination image.
xor
    A xor B. Exclusive OR of the source image and destination image.
vendorName-operationName
    Vendor-specific extensions to the list of composition operators should use this syntax. 
正当我来看看。谢谢。