<?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[bitmap aus bytearray]]></title><description><![CDATA[<p>Hallo,<br />
ich hab ein (für mich jedenfalls) etwas kniffliges Problem. Ich habe aus einer Java-Klasse ein bytearray mit Bildinformationen und möchte nun ein Bitmap in c++ erstellen.<br />
Leider habe ich keine Ahnung wie ich das anstellen soll. Mir liegen die 3Byte bgr Daten als byte[] vor.</p>
<p>Vielleicht kann mich jemand auf die richtige Spur bringen. Hab im Inet und hier im Forum leider nix passendes gefunden!</p>
<p>Danke schonmal...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/152918/bitmap-aus-bytearray</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 22:33:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/152918.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 11 Jul 2006 08:31:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to bitmap aus bytearray on Tue, 11 Jul 2006 08:31:10 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich hab ein (für mich jedenfalls) etwas kniffliges Problem. Ich habe aus einer Java-Klasse ein bytearray mit Bildinformationen und möchte nun ein Bitmap in c++ erstellen.<br />
Leider habe ich keine Ahnung wie ich das anstellen soll. Mir liegen die 3Byte bgr Daten als byte[] vor.</p>
<p>Vielleicht kann mich jemand auf die richtige Spur bringen. Hab im Inet und hier im Forum leider nix passendes gefunden!</p>
<p>Danke schonmal...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1095584</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1095584</guid><dc:creator><![CDATA[blinker]]></dc:creator><pubDate>Tue, 11 Jul 2006 08:31:10 GMT</pubDate></item><item><title><![CDATA[Reply to bitmap aus bytearray on Tue, 11 Jul 2006 08:35:01 GMT]]></title><description><![CDATA[<p>ANSI C++ kann mit Bitmaps nicht besonders viel anfangen, also mußt du hierfür auf Funktionen deines Betriebssystems ausweichen, z.B. <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_5d4g.asp" rel="nofollow">CreateDIBitmap</a> in der WinAPI.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1095586</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1095586</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 11 Jul 2006 08:35:01 GMT</pubDate></item><item><title><![CDATA[Reply to bitmap aus bytearray on Tue, 11 Jul 2006 08:37:42 GMT]]></title><description><![CDATA[<p>Ah, das hilft mir erstmal weiter. Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1095589</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1095589</guid><dc:creator><![CDATA[blinker]]></dc:creator><pubDate>Tue, 11 Jul 2006 08:37:42 GMT</pubDate></item><item><title><![CDATA[Reply to bitmap aus bytearray on Tue, 11 Jul 2006 09:19:34 GMT]]></title><description><![CDATA[<p>Also Bitmaps kann man auch mit ISO C++ erstellen, warum auch nicht? Es sind nur (wie der Name sagt) reine Bits und Bytes von Daten. Das Anzeigen auf dem Screen oder auf dem Drucker ist natürlich eine andere Story. Aber Bitmaps erstellen und manipulieren geht mit ISO-C++ Mitteln.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1095622</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1095622</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Tue, 11 Jul 2006 09:19:34 GMT</pubDate></item><item><title><![CDATA[Reply to bitmap aus bytearray on Tue, 11 Jul 2006 09:20:24 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1095624</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1095624</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 11 Jul 2006 09:20:24 GMT</pubDate></item><item><title><![CDATA[Reply to bitmap aus bytearray on Tue, 11 Jul 2006 18:20:30 GMT]]></title><description><![CDATA[<p>FAQ &quot;Bild speichern&quot; könnte da auch nen Blick wert sein:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39400.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-39400.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1095957</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1095957</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Tue, 11 Jul 2006 18:20:30 GMT</pubDate></item><item><title><![CDATA[Reply to bitmap aus bytearray on Thu, 13 Jul 2006 06:38:29 GMT]]></title><description><![CDATA[<p>wenn du das Bild speichern willst, dann schau dir das hier einmal an. SO habe ich es mal gemacht:</p>
<pre><code class="language-cpp">filecounter++;
				char filename[30]= &quot;C:\\Bilder\\Bild&quot;;
				char numer[10];
				itoa(filecounter, numer, 10);
				strcat(filename, numer);
				strcat(filename, &quot;.bmp&quot;);
// Alles was oberhalb dieses Komentars steht ist nur dazu da um den Pfad und den
// Bildnamen zu erstellen. Ich habe mehrere Bilder mit fortlaufender Nummer gespeichert.

				HANDLE hf = CreateFile(filename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, NULL, NULL );

				if( hf == INVALID_HANDLE_VALUE )
				{
				   return 0;
				}

		//		Schreiben des BITMAPFILEHEADER´s

				memset( &amp;bfh, 0, sizeof( bfh ) );
				bfh.bfType = 'MB';
				bfh.bfSize = sizeof( BITMAPINFOHEADER );

				//Schreiben des BITMAPINFOHEADER´s

				DWORD Written = 0;
 				WriteFile( hf, &amp;bfh, sizeof( bfh ), &amp;Written, NULL );
				Written = 0;
				WriteFile( hf, &amp;(bmih), sizeof(bmih ), &amp;Written, NULL );

				//Schreiben RGBQUAD Arrays

				Written = 0;
				WriteFile( hf, pBuffer, BufferSize, &amp;Written, NULL );

				CloseHandle( hf );
</code></pre>
<p>vielleicht hilft dir das weiter.<br />
Du musst zuerst den Bitmapfileheader, dann den Bitmapinfoheader und zuletzt das RGBQuad Array in die Datei schreiben.<br />
Im RGBQUAD Array stehen Die Farbinformationen für jedes einzelnen Pixel.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1096852</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1096852</guid><dc:creator><![CDATA[gramboler]]></dc:creator><pubDate>Thu, 13 Jul 2006 06:38:29 GMT</pubDate></item></channel></rss>