+
Skip to content

Alpha-blending #728

@SergMariaDB

Description

@SergMariaDB

Is your feature request related to a problem? Please describe.

Alpha-blending seem chellengable for this enormous support of the different types of channels.

Describe the solution you'd like

How about start on support the same RGB views?

C++ Example

template
auto alpha_blend(const ViewT& view1, const ViewT& view2, ptr_diff_t x=0, ptr_diff_t y=0){
...
}

#include <boost/gil.hpp>
namespace gil = boost::gil;
int main
{
    ...
    auto v3 = alpha_blend(v1, v2);
    ...
}

Describe alternatives you've considered

I imagine using boost::compute for this.

Additional context

https://stackoverflow.com/questions/746899/how-to-calculate-an-rgb-colour-by-specifying-an-alpha-blending-amount

Metadata

Metadata

Assignees

No one assigned

    Labels

    cat/featureNew feature or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载