<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[opencv transparent überblenden]]></title><description><![CDATA[<p>hallo,</p>
<p>wie kann ich auf einem IplImage ein anderes IplImage oder eine Farbe halbtransparent überblenden.<br />
etwa wie im folgendem Beispiel mit TBitmap und scanline farbe halbtransparent überblenden</p>
<pre><code class="language-cpp">PRGBTriple dstRow;
    int Alpha = 2;
    int _rgb = ColorToRGB(clBlue);
    int _r = GetRValue(_rgb);
    int _g = GetGValue(_rgb);
    int _b = GetBValue(_rgb);
    for(y=t; y&lt;bitmap-&gt;Height; y++){
        dstRow = (PRGBTriple)bitmap-&gt;ScanLine[y];
        for(int x=0; x&lt;bitmap-&gt;Width; x++){
            dstRow[x].rgbtBlue=(dstRow[x].rgbtBlue*Alpha+_b) / (Alpha+1);
            dstRow[x].rgbtGreen=(dstRow[x].rgbtGreen*Alpha+_g) / (Alpha+1);
            dstRow[x].rgbtRed=(dstRow[x].rgbtRed*Alpha+_r) / (Alpha+1);
        }
    }
</code></pre>
<p>grüße Trulli</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/231387/opencv-transparent-überblenden</link><generator>RSS for Node</generator><lastBuildDate>Fri, 25 Sep 2026 21:48:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/231387.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Jan 2009 20:46:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to opencv transparent überblenden on Fri, 09 Jan 2009 20:46:19 GMT]]></title><description><![CDATA[<p>hallo,</p>
<p>wie kann ich auf einem IplImage ein anderes IplImage oder eine Farbe halbtransparent überblenden.<br />
etwa wie im folgendem Beispiel mit TBitmap und scanline farbe halbtransparent überblenden</p>
<pre><code class="language-cpp">PRGBTriple dstRow;
    int Alpha = 2;
    int _rgb = ColorToRGB(clBlue);
    int _r = GetRValue(_rgb);
    int _g = GetGValue(_rgb);
    int _b = GetBValue(_rgb);
    for(y=t; y&lt;bitmap-&gt;Height; y++){
        dstRow = (PRGBTriple)bitmap-&gt;ScanLine[y];
        for(int x=0; x&lt;bitmap-&gt;Width; x++){
            dstRow[x].rgbtBlue=(dstRow[x].rgbtBlue*Alpha+_b) / (Alpha+1);
            dstRow[x].rgbtGreen=(dstRow[x].rgbtGreen*Alpha+_g) / (Alpha+1);
            dstRow[x].rgbtRed=(dstRow[x].rgbtRed*Alpha+_r) / (Alpha+1);
        }
    }
</code></pre>
<p>grüße Trulli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1642649</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1642649</guid><dc:creator><![CDATA[Trulli]]></dc:creator><pubDate>Fri, 09 Jan 2009 20:46:19 GMT</pubDate></item></channel></rss>