<?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[kamera daten]]></title><description><![CDATA[<p>also ich hab die rohdaten der kamera<br />
mit</p>
<pre><code class="language-cpp">...
    OpenClipboard(Cam);
    EmptyClipboard();
    capGrabFrame(Cam); 
    capEditCopy(Cam);  
    CloseClipboard();
...

    OpenClipboard(Cam);
    if(IsClipboardFormatAvailable(CF_BITMAP))
    {
 	   int width,height;
	   char Text[100];

	   Frame = (HBITMAP)GetClipboardData(CF_BITMAP); 
	   CBitmap * p_bitmap;
	   p_bitmap=CBitmap::FromHandle(Frame);
           if(p_bitmap==NULL)ErrorMsg(&quot;FEHLER BEIM BILD ABHOLEN&quot;);
           SelectObject(Copy,p_bitmap);

	   BITMAP BMI; 
	   p_bitmap-&gt;GetBitmap(&amp;BMI);
	   width = breite; 
	   height = hoehe;

	   RGBMap= (unsigned char*)malloc(width*height*3);
  	   p_bitmap-&gt;GetBitmapBits(width*height*3,RGBMap);
   }
</code></pre>
<p>abgeholt</p>
<p>dann convertier ich es in ein 2d array aber ab da stimmt dann nichts mehr<br />
könnt das an der einstellung vom deskotp liegen 32bit??</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/114182/kamera-daten</link><generator>RSS for Node</generator><lastBuildDate>Thu, 02 Jul 2026 16:13:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/114182.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Jun 2005 19:36:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to kamera daten on Thu, 30 Jun 2005 19:36:02 GMT]]></title><description><![CDATA[<p>also ich hab die rohdaten der kamera<br />
mit</p>
<pre><code class="language-cpp">...
    OpenClipboard(Cam);
    EmptyClipboard();
    capGrabFrame(Cam); 
    capEditCopy(Cam);  
    CloseClipboard();
...

    OpenClipboard(Cam);
    if(IsClipboardFormatAvailable(CF_BITMAP))
    {
 	   int width,height;
	   char Text[100];

	   Frame = (HBITMAP)GetClipboardData(CF_BITMAP); 
	   CBitmap * p_bitmap;
	   p_bitmap=CBitmap::FromHandle(Frame);
           if(p_bitmap==NULL)ErrorMsg(&quot;FEHLER BEIM BILD ABHOLEN&quot;);
           SelectObject(Copy,p_bitmap);

	   BITMAP BMI; 
	   p_bitmap-&gt;GetBitmap(&amp;BMI);
	   width = breite; 
	   height = hoehe;

	   RGBMap= (unsigned char*)malloc(width*height*3);
  	   p_bitmap-&gt;GetBitmapBits(width*height*3,RGBMap);
   }
</code></pre>
<p>abgeholt</p>
<p>dann convertier ich es in ein 2d array aber ab da stimmt dann nichts mehr<br />
könnt das an der einstellung vom deskotp liegen 32bit??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/820987</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/820987</guid><dc:creator><![CDATA[kamera]]></dc:creator><pubDate>Thu, 30 Jun 2005 19:36:02 GMT</pubDate></item><item><title><![CDATA[Reply to kamera daten on Sat, 02 Jul 2005 08:10:42 GMT]]></title><description><![CDATA[<p>kamera schrieb:</p>
<blockquote>
<p>ab da stimmt dann nichts mehr</p>
</blockquote>
<p>gewöhn dir bitte genauere fehlerbeschreibungen an</p>
<p>hat nix mit deinem desktop zu tun</p>
<p>in der bitmap struktur stehen alle infos zum bitmap drin<br />
du kannst nich davon ausgehn, dass es 3 bytes per pixel sind</p>
<pre><code class="language-cpp">typedef struct tagBITMAP {
  LONG   bmType; 
  LONG   bmWidth; 
  LONG   bmHeight; 
  LONG   bmWidthBytes; 
  WORD   bmPlanes; 
  WORD   bmBitsPixel; 
  LPVOID bmBits; 
} BITMAP, *PBITMAP;
</code></pre>
<p>benutz die infos für dein malloc</p>
]]></description><link>https://www.c-plusplus.net/forum/post/821965</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/821965</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Sat, 02 Jul 2005 08:10:42 GMT</pubDate></item><item><title><![CDATA[Reply to kamera daten on Tue, 12 Jul 2005 13:30:17 GMT]]></title><description><![CDATA[<p>du meinst</p>
<pre><code class="language-cpp">RGBMap= (BITMAP)malloc(width*height);
</code></pre>
<p>oder???</p>
<p>aber wie soll ich dann damit an die pixel kommen??</p>
<p>steht des in bmBitsPixel??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/829301</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/829301</guid><dc:creator><![CDATA[kamera]]></dc:creator><pubDate>Tue, 12 Jul 2005 13:30:17 GMT</pubDate></item><item><title><![CDATA[Reply to kamera daten on Tue, 12 Jul 2005 17:36:51 GMT]]></title><description><![CDATA[<p>da gibts ne dolle doku von microsoft die nennt sich msdn</p>
<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_2h6a.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_2h6a.asp</a></p>
<blockquote>
<p>bmBits<br />
Pointer to the location of the bit values for the bitmap. The bmBits member must be a long pointer to an array of character (1-byte) values.</p>
</blockquote>
<p>bzw. nochma deutlich<br />
<strong>BMI.bmBits</strong> ist ein zeiger auf die bilddaten</p>
<p>und das mit der genauen fehlerbeschreibung war <strong>ernst</strong> gemeint<br />
kannst dir villeicht vorstellen wieviele variationen des <strong>nicht stimmens</strong> es beim programmieren gibt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/829467</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/829467</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Tue, 12 Jul 2005 17:36:51 GMT</pubDate></item></channel></rss>