[Qgis-user] Blending layers question

Andreas Neumann a.neumann at carto.net
Thu Sep 10 00:51:50 PDT 2015


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 
> <nicolas.cadieux at archeotec.ca <mailto:nicolas.cadieux at archeotec.ca>> 
> 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=node&node=5223433&i=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
>         ml-node+s1560n4125267h38 at n6.nabble.com
>         <mailto:ml-node%2Bs1560n4125267h38 at n6.nabble.com>
>         To unsubscribe from Quantum GIS - User, <a
>         href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4125267&code=bmljb2xhcy5jYWRpZXV4QGFyY2hlb3RlYy5jYXw0MTI1MjY3fDYzNDQ4MjQxNg=&#61
>         <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node&%2361;4125267&code&%2361;bmljb2xhcy5jYWRpZXV4QGFyY2hlb3RlYy5jYXw0MTI1MjY3fDYzNDQ4MjQxNg&%2361;&%2361>;">click
>         here.
>         <a
>         href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=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=macro_viewer&id&%2361;instant_html%21nabble%3Aemail.naml&base&%2361;nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&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
>     Qgis-user at lists.osgeo.org <mailto:Qgis-user at lists.osgeo.org>
>     http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150910/94f4d65f/attachment.html>


More information about the Qgis-user mailing list