Hi Matt,

QGIS uses blend modes baked into qtpainter. So the qt library is providing these blend modes. You would have to dig into the qt source code to find out details. See http://doc.qt.io/qt-4.8/qpainter.html#CompositionMode-enum for a starter.

But I would assume that blend modes are well covered in computer graphics literature and you could google some papers. They have been around for many years now.

Andreas

On 10.09.2015 04:02, Matt Boyd wrote:
Thanks Nicolas,
yes, I'm aware of those properties. What I'm trying to work out is how QGIS does this so I can use it outside of QGIS in another program. Some pointers to the sort of questions I should be asking google on transparency would be handy.

Thanks

On Thu, Sep 10, 2015 at 10:33 AM, Nicolas Cadieux <[email protected] <mailto:[email protected]>> wrote:

    Hi,

    In your raster properties, you can render layers using various
    methods like add, multiply...  It works very well.  Same options
    are available for vector layer and objects.

    Nicolas Cadieux M.Sc.
    Les Entreprises Archéotec inc.
    8548, rue Saint-Denis Montréal H2P 2H2
    Téléphone: 514.381.5112 <tel:514.381.5112>  Fax: 514.381.4995
    <tel:514.381.4995>
    www.archeotec.ca <http://www.archeotec.ca>

    On Sep 9, 2015 7:51 PM, "Matt Boyd [via OSGeo.org]" <[hidden
    email] <http:///user/SendEmail.jtp?type=node&node=5223435&i=0>> wrote:

        Hi Group,
        this is possibly one of those questions about a question. I'd
        like to create some blended layers that look the same as
        layers in QGIS with transparency applied.
        I've another application that my data lives in and they supply
        a calculator that's able to do some fairly reasonable maths on
        different grids and other types of data.

        How does QGIS do transparency, and can I use those equations /
        method elsewhere.

        Thanks
        Matt

        _______________________________________________
        Qgis-user mailing list
        <a
        
href="/user/SendEmail.jtp?type&#61;node&amp;node&#61;5223433&amp;i&#61;0">[hidden
        email]
        http://lists.osgeo.org/mailman/listinfo/qgis-user

        ------------------------------------------------------------------------
        If you reply to this email, your message will be added to the
        discussion below:
        
http://osgeo-org.1560.x6.nabble.com/Blending-layers-question-tp5223433.html

        To start a new topic under Quantum GIS - User, email
        [email protected]
        <mailto:ml-node%[email protected]>
        To unsubscribe from Quantum GIS - User, <a
        
href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro&#61;unsubscribe_by_code&amp;node&#61;4125267&amp;code&#61;bmljb2xhcy5jYWRpZXV4QGFyY2hlb3RlYy5jYXw0MTI1MjY3fDYzNDQ4MjQxNg&#61;&#61
        
<http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro&#61;unsubscribe_by_code&amp;node&%2361;4125267&amp;code&%2361;bmljb2xhcy5jYWRpZXV4QGFyY2hlb3RlYy5jYXw0MTI1MjY3fDYzNDQ4MjQxNg&%2361;&%2361>;">click
        here.
        <a
        
href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro&#61;macro_viewer&amp;id&#61;instant_html%21nabble%3Aemail.naml&amp;base&#61;nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs&#61;notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
        
<http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro&#61;macro_viewer&amp;id&%2361;instant_html%21nabble%3Aemail.naml&amp;base&%2361;nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs&%2361;notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>"
        style="font:9px serif">NAML


    ------------------------------------------------------------------------
    View this message in context: Re: Blending layers question
    
<http://osgeo-org.1560.x6.nabble.com/Blending-layers-question-tp5223433p5223435.html>
    Sent from the Quantum GIS - User mailing list archive
    <http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html>
    at Nabble.com.

    _______________________________________________
    Qgis-user mailing list
    [email protected] <mailto:[email protected]>
    http://lists.osgeo.org/mailman/listinfo/qgis-user




_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to