<?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[Image: einzelne Pixel auslesen]]></title><description><![CDATA[<p>Ich möchte auf die einzelnen Pixel eines Bildes zugreifen, wenn ich es per LoadFromFile geladen habe (lesen und als HEX extrahieren). Das ganze darf aber nicht über Canvas laufen, da das Bild nur monochrom ausgegeben wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/83543/image-einzelne-pixel-auslesen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 00:37:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/83543.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 21 Aug 2004 22:26:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Image: einzelne Pixel auslesen on Sat, 21 Aug 2004 22:26:15 GMT]]></title><description><![CDATA[<p>Ich möchte auf die einzelnen Pixel eines Bildes zugreifen, wenn ich es per LoadFromFile geladen habe (lesen und als HEX extrahieren). Das ganze darf aber nicht über Canvas laufen, da das Bild nur monochrom ausgegeben wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/588029</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/588029</guid><dc:creator><![CDATA[Hoffmann_Till]]></dc:creator><pubDate>Sat, 21 Aug 2004 22:26:15 GMT</pubDate></item><item><title><![CDATA[Reply to Image: einzelne Pixel auslesen on Sat, 21 Aug 2004 23:20:38 GMT]]></title><description><![CDATA[<p>mindestens ein byte pro pixel wird glaub ich immer verschwendet. also sollte die canvas methode gehen.<br />
es gibt aber noch die möglichkeit über picture-&gt;bitmap zu gehen. das ist ein interner buffer, den du dann am ende noch mit canvas-&gt;draw anzeigen solltest.<br />
die tipps geb ich, weil ich mit delphi erfahrung hab und c++ sonst nur konsolenmäßig progge.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/588045</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/588045</guid><dc:creator><![CDATA[c.rackwitz]]></dc:creator><pubDate>Sat, 21 Aug 2004 23:20:38 GMT</pubDate></item><item><title><![CDATA[Reply to Image: einzelne Pixel auslesen on Sun, 22 Aug 2004 10:07:16 GMT]]></title><description><![CDATA[<p>Hoffmann_Till schrieb:</p>
<blockquote>
<p>Das ganze darf aber nicht über Canvas laufen, da das Bild nur monochrom ausgegeben wird.</p>
</blockquote>
<p>Was hat das miteinander zu tun?</p>
<p>Auf die Pixel kannst du auch per TBitmap::ScanLine zugreifen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/588139</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/588139</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Sun, 22 Aug 2004 10:07:16 GMT</pubDate></item><item><title><![CDATA[Reply to Image: einzelne Pixel auslesen on Mon, 23 Aug 2004 07:39:24 GMT]]></title><description><![CDATA[<p>Ich will die 24Bit Werte des Images auslesen und mit einem Wert (TrackBar) multiplizieren.<br />
Dann wird das Bild monochrom ausgegeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/588797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/588797</guid><dc:creator><![CDATA[Hoffmann_Till]]></dc:creator><pubDate>Mon, 23 Aug 2004 07:39:24 GMT</pubDate></item><item><title><![CDATA[Reply to Image: einzelne Pixel auslesen on Mon, 23 Aug 2004 07:46:30 GMT]]></title><description><![CDATA[<p>Wie Jansen geschrieben hat, mittels scnaline. Hier ein Beispielcode:</p>
<pre><code class="language-cpp">Byte* ptr;
      for (int y = 0; y &lt; smallImg-&gt;Height; y++)
      {
        ptr = (Byte *)smallImg-&gt;ScanLine[y];
        for (int x = 0; x &lt; smallImg-&gt;Width; x++)
          ptr[x] = (Byte)colorValue;
      }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/588805</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/588805</guid><dc:creator><![CDATA[mattias]]></dc:creator><pubDate>Mon, 23 Aug 2004 07:46:30 GMT</pubDate></item><item><title><![CDATA[Reply to Image: einzelne Pixel auslesen on Mon, 23 Aug 2004 07:53:48 GMT]]></title><description><![CDATA[<p>[cpp] Byte* ptr;<br />
for (int y = 0; y &lt; smallImg-&gt;Height; y++)<br />
{<br />
ptr = (Byte *)smallImg-&gt;ScanLine[y];<br />
for (int x = 0; x &lt; smallImg-&gt;Width; x++)<br />
<div class="plugin-markdown"><input type="checkbox" id="checkbox21021" checked="true" /><label for="checkbox21021">= (Byte)</label></div><strong>colorValue</strong>;<br />
}[/cpp]<br />
Danke für das Beispiel, aber was ist colorValue???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/588810</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/588810</guid><dc:creator><![CDATA[Hoffmann_Till]]></dc:creator><pubDate>Mon, 23 Aug 2004 07:53:48 GMT</pubDate></item><item><title><![CDATA[Reply to Image: einzelne Pixel auslesen on Mon, 23 Aug 2004 08:17:45 GMT]]></title><description><![CDATA[<p>Ich würde mal sagen, genau da musst du hinschreiben, was du mit dem Pixel überhaupt machen willst...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/588831</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/588831</guid><dc:creator><![CDATA[Plemplem]]></dc:creator><pubDate>Mon, 23 Aug 2004 08:17:45 GMT</pubDate></item><item><title><![CDATA[Reply to Image: einzelne Pixel auslesen on Tue, 07 Sep 2004 08:56:36 GMT]]></title><description><![CDATA[<p>das ganze geht aber leider nur bei bitmaps mit 256 farben.<br />
Ich muss das ganze mit schwarz - weiss - Bitmaps machen.<br />
wass nehme ich anstatt byte ptr ?? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/601362</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/601362</guid><dc:creator><![CDATA[alexandrino]]></dc:creator><pubDate>Tue, 07 Sep 2004 08:56:36 GMT</pubDate></item></channel></rss>