<?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[HBITMAP aus array erstellen]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte aus einem Datenarray, das ich als Zeiger übergeben bekomme ein HBITMAP erstellen. In diesem Array sind alle Bitmapdaten vorhanden(BitmapHeaderInfo usw.)<br />
Leider bekomme ich es nicht hin.</p>
<p>Im Bitmap sind einfach keine Daten.(also es ist schwarz)</p>
<p>Kann mir jemand evtl einen Tip geben?</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/191432/hbitmap-aus-array-erstellen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 04:34:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/191432.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Sep 2007 09:23:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HBITMAP aus array erstellen on Mon, 03 Sep 2007 09:23:43 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte aus einem Datenarray, das ich als Zeiger übergeben bekomme ein HBITMAP erstellen. In diesem Array sind alle Bitmapdaten vorhanden(BitmapHeaderInfo usw.)<br />
Leider bekomme ich es nicht hin.</p>
<p>Im Bitmap sind einfach keine Daten.(also es ist schwarz)</p>
<p>Kann mir jemand evtl einen Tip geben?</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1357680</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1357680</guid><dc:creator><![CDATA[Guest123]]></dc:creator><pubDate>Mon, 03 Sep 2007 09:23:43 GMT</pubDate></item><item><title><![CDATA[Reply to HBITMAP aus array erstellen on Mon, 03 Sep 2007 09:27:30 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-14774.html" rel="nofollow">akari</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-2.html" rel="nofollow">VCL/CLX (Borland C++ Builder)</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-4.html" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" 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/1357687</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1357687</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Mon, 03 Sep 2007 09:27:30 GMT</pubDate></item><item><title><![CDATA[Reply to HBITMAP aus array erstellen on Mon, 03 Sep 2007 15:18:59 GMT]]></title><description><![CDATA[<p>Zeig mal Deinen aktuellen Code(-ausschnitt).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1358058</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1358058</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Mon, 03 Sep 2007 15:18:59 GMT</pubDate></item><item><title><![CDATA[Reply to HBITMAP aus array erstellen on Thu, 06 Sep 2007 07:13:29 GMT]]></title><description><![CDATA[<p>Moin,</p>
<p>also momentan sieht der Code so aus:</p>
<pre><code>void __fastcall TVideo::FillBitmap(signed char *pBitmap )
{
  HDC hdcscreen=GetDC(0), hdc=CreateCompatibleDC(hdcscreen);    
  ReleaseDC(0,hdcscreen);
  BITMAPINFO bi;
  BITMAPFILEHEADER *pbmfh = reinterpret_cast&lt;BITMAPFILEHEADER *&gt;(pBitmap);
  LPBITMAPINFOHEADER  pbmih = reinterpret_cast&lt;LPBITMAPINFOHEADER &gt;(pBitmap + sizeof(BITMAPFILEHEADER));

  bi.bmiHeader = *pbmih;

  signed char *pPix = &amp;pBitmap[pbmfh-&gt;bfOffBits];

  HBITMAP hbm=CreateDIBSection(hdc,(BITMAPINFO*)&amp;bi,DIB_RGB_COLORS,(void**)&amp;pPix,NULL,NULL);

  if(hbm == NULL)
  {
    Application-&gt;MessageBoxA(&quot;bitmap fehler&quot;, &quot;Error&quot;, MB_OK);
  }
  SetDIBits(
 hdcscreen,                  // handle to DC
  hbm,             // handle to bitmap
  0,          // starting scan line
  480,          // number of scan lines
  pPix ,      // array of bitmap bits
  &amp;bi,  // bitmap data
  DIB_RGB_COLORS          // type of color indexes to use
);
</code></pre>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1359913</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1359913</guid><dc:creator><![CDATA[Guest123]]></dc:creator><pubDate>Thu, 06 Sep 2007 07:13:29 GMT</pubDate></item></channel></rss>