<?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 direkt in Speicher entpackem]]></title><description><![CDATA[<p>Hi!</p>
<p>Gibt es eine Möglichkeit, ein Bitmap in einer Zip-Datei direkt in den Speicher zu entpacken?</p>
<p>Bisher habe ich die Zip-Datei mittels zLib entpackt und dann mit SHLoadDIBitmap() eingelesen. Dies müsste ich aber ohne temporäre Datei hinbekommen...</p>
<p>Gibt es einen einfachen Ersatz für SHLoadDIBitmap(), er kein File benötigt?</p>
<p>MfG</p>
<p>Matg40</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/169805/bitmap-direkt-in-speicher-entpackem</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 19:44:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/169805.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 09 Jan 2007 07:16:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bitmap direkt in Speicher entpackem on Tue, 09 Jan 2007 07:16:58 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Gibt es eine Möglichkeit, ein Bitmap in einer Zip-Datei direkt in den Speicher zu entpacken?</p>
<p>Bisher habe ich die Zip-Datei mittels zLib entpackt und dann mit SHLoadDIBitmap() eingelesen. Dies müsste ich aber ohne temporäre Datei hinbekommen...</p>
<p>Gibt es einen einfachen Ersatz für SHLoadDIBitmap(), er kein File benötigt?</p>
<p>MfG</p>
<p>Matg40</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1206137</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1206137</guid><dc:creator><![CDATA[Matg40]]></dc:creator><pubDate>Tue, 09 Jan 2007 07:16:58 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap direkt in Speicher entpackem on Tue, 09 Jan 2007 08:48:41 GMT]]></title><description><![CDATA[<p><a href="http://openil.sourceforge.net" rel="nofollow">devil</a>:</p>
<pre><code>ilLoadL(ILboolean ilLoadL(ILenum Type, ILvoid *Lump, ILuint Size);
</code></pre>
<p>oder <a href="http://web.uccs.edu/wbahn/ECE1021/STATIC/REFERENCES/bmpfileformat.htm" rel="nofollow">selber parsen</a>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1206180</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1206180</guid><dc:creator><![CDATA[hellihjb]]></dc:creator><pubDate>Tue, 09 Jan 2007 08:48:41 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap direkt in Speicher entpackem on Tue, 09 Jan 2007 09:15:14 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>vielen Dank erstmal!!!</p>
<p>Ich hab leider noch gemerkt, dass ich Probleme mit dem Unzip der zLib habe (entpackt nur in Files, nicht in RAM)...</p>
<p>MfG</p>
<p>Matg40</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1206197</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1206197</guid><dc:creator><![CDATA[Matg40]]></dc:creator><pubDate>Tue, 09 Jan 2007 09:15:14 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap direkt in Speicher entpackem on Tue, 09 Jan 2007 09:35:45 GMT]]></title><description><![CDATA[<p><a href="http://www.zlib.net/manual.html#uncompress" rel="nofollow">manual</a>:</p>
<blockquote>
<pre><code>int uncompress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen);
</code></pre>
<p>Decompresses the source buffer into the destination buffer. sourceLen is the byte length of the source buffer.</p>
</blockquote>
<p>allerdings waere statt bmp+zlib wohl die <a href="http://www.libpng.org/pub/png/libpng.html" rel="nofollow">pnglib</a> sachgemaesser...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1206201</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1206201</guid><dc:creator><![CDATA[hellihjb]]></dc:creator><pubDate>Tue, 09 Jan 2007 09:35:45 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap direkt in Speicher entpackem on Tue, 09 Jan 2007 10:28:15 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>kann man eigentlich direkt mit der zLib Zip-Dateien verarbeiten?</p>
<p>Ich hatte MiniZip (<a href="http://www.winimage.com/zLibDll/minizip.html" rel="nofollow">http://www.winimage.com/zLibDll/minizip.html</a>) dazu verwendet...</p>
<p>MfG</p>
<p>Matg40</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1206241</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1206241</guid><dc:creator><![CDATA[Matg40]]></dc:creator><pubDate>Tue, 09 Jan 2007 10:28:15 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap direkt in Speicher entpackem on Tue, 09 Jan 2007 13:40:45 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Hab jetzt das mit dem Entpacken mittels MiniZip und zLib geschafft <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Bleibt nur das Problem mit dem Bitmap... gibts da keine Lösung ohne zusätzliche Library (wie mit dem Shell-Befehl oder einer Standard-Library)?</p>
<p>Ich darf in unserem Projekt keine weiteren Libraries einbinden...</p>
<p>Aber soweit noch vielen Dank für die bisherigen Antworten !!!</p>
<p>MfG</p>
<p>Matg40</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1206330</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1206330</guid><dc:creator><![CDATA[Matg40]]></dc:creator><pubDate>Tue, 09 Jan 2007 13:40:45 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap direkt in Speicher entpackem on Tue, 09 Jan 2007 15:40:35 GMT]]></title><description><![CDATA[<blockquote>
<p>Ich darf in unserem Projekt keine weiteren Libraries einbinden...</p>
</blockquote>
<p>Wie das?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1206390</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1206390</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Tue, 09 Jan 2007 15:40:35 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap direkt in Speicher entpackem on Tue, 09 Jan 2007 15:47:13 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>es läuft auf einem embedded Gerät, dort dürfen nur freigegebene Libraries verwendet werden.</p>
<p>Neue freigeben zu lassen ist aufwendig und dauert recht lange...</p>
<p>Darum hatte ich nach einer einfachen Funktion (wie vorher SHLoadDIBitmap) gesucht, aber leider nichts in der Richtung gefunden.</p>
<p>Ich bräuchte eine Lösung, die auf ein Bitmap, das in ein Byte-Array eingelesen wurde, ein HBITMAP liefert.</p>
<p>Ach ja: bisher habe ich versucht, mit LoadBitmap() hinzukommen, aber das liest nur aus Ressourcen. Auch mit SetBitmapBits gings nicht, da dieses Bits erwartet und keine Bytes...</p>
<p>MfG</p>
<p>Matg40</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1206392</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1206392</guid><dc:creator><![CDATA[Matg40]]></dc:creator><pubDate>Tue, 09 Jan 2007 15:47:13 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap direkt in Speicher entpackem on Tue, 09 Jan 2007 17:09:56 GMT]]></title><description><![CDATA[<p>vielleicht kann man dir da in der apiabteilung weiterhelfen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1206444</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1206444</guid><dc:creator><![CDATA[rapso]]></dc:creator><pubDate>Tue, 09 Jan 2007 17:09:56 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap direkt in Speicher entpackem on Tue, 09 Jan 2007 17:10:10 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=5577" rel="nofollow">rapso</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=7" rel="nofollow">Spiele-/Grafikprogrammierung</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/1206445</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1206445</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 09 Jan 2007 17:10:10 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap direkt in Speicher entpackem on Tue, 09 Jan 2007 18:01:06 GMT]]></title><description><![CDATA[<p>Matg40 schrieb:</p>
<blockquote>
<p>Darum hatte ich nach einer einfachen Funktion (wie vorher SHLoadDIBitmap) gesucht, aber leider nichts in der Richtung gefunden.</p>
<p>Ich bräuchte eine Lösung, die auf ein Bitmap, das in ein Byte-Array eingelesen wurde, ein HBITMAP liefert.</p>
</blockquote>
<p><em>LoadImage</em> lädt eine Bitmap aus einer Datei.</p>
<p>Matg40 schrieb:</p>
<blockquote>
<p>Ach ja: bisher habe ich versucht, mit LoadBitmap() hinzukommen, aber das liest nur aus Ressourcen. Auch mit SetBitmapBits gings nicht, da dieses Bits erwartet und keine Bytes...</p>
</blockquote>
<p>Quatsch. Man kann in C/C++ gar nicht mit Bits direkt operieren (mal abgesehen von Bitmanipulationen), sondern nur mit Bytes (ist damit also sozusagen die kleinste Einheit). Man übergibt der Funktion SetBitmapBits übrigens auch ein Byte-Array mit Farginformationen:</p>
<p>MSDN zu SetBitmapBits(...) schrieb:</p>
<blockquote>
<p>lpBits<br />
[in] Pointer to an array of bytes that contain color data for the specified bitmap.</p>
</blockquote>
<p>Quelle: <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_27w3.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_27w3.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1206473</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1206473</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Tue, 09 Jan 2007 18:01:06 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap direkt in Speicher entpackem on Tue, 09 Jan 2007 18:06:35 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>stimmt tatsächlich... ich habs nochmal mit SetBitmapBits() probiert, aber da wird das Bild verzerrt dargestellt (ist warscheinlich anders aufgebaut).</p>
<p>MfG</p>
<p>Matg40</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1206479</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1206479</guid><dc:creator><![CDATA[Matg40]]></dc:creator><pubDate>Tue, 09 Jan 2007 18:06:35 GMT</pubDate></item></channel></rss>