<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - confuse? about CFbsBitmap - Comments</title>
 <link>http://www.newlc.com/en/forum/confuse-about-cfbsbitmap</link>
 <description>Comments for &quot;confuse? about CFbsBitmap&quot;</description>
 <language>en</language>
<item>
 <title>Re: confuse? about CFbsBitmap</title>
 <link>http://www.newlc.com/en/forum/confuse-about-cfbsbitmap#comment-41297</link>
 <description>&lt;p&gt;CFbsBitmap has very little in common with DIBs, and the .bmp format (exept they are both used to store image bitmaps)&lt;/p&gt;

&lt;p&gt;It is simply the class used in symbian to handle image bitmaps.&lt;/p&gt;

&lt;p&gt;An image bitmap typically has:&lt;br /&gt;
1. a size&lt;br /&gt;
2. a color format&lt;br /&gt;
3. storage for pixels&lt;br /&gt;
4. optionally extra information like palettes&lt;/p&gt;

&lt;p&gt;In windows, they have the DIB object wich contain all this information (with great detail to be device independent)&lt;/p&gt;

&lt;p&gt;In symbian, bitmap information are contained in CFbsBitmap objects, and the pixels of it are kept on a special heap, kept by the Font &amp; Bitmap Server.&lt;/p&gt;

&lt;p&gt;You can get the color format of the bitmap by calling DisplayMode(), and you can get raw access to the pixel storage by first calling LockHeap() and then get the address to the pixels with a call to DataAddress().&lt;br /&gt;
The pointer returned are the raw pixels, no header or anything. (all that kind of information is kept in the CFbsBitmap class and retrieved through functions like DisplayMode())&lt;/p&gt;

&lt;p&gt;For raw access you will also need DataStride() and when you are done, you MUST call UnlockHeap(), or you will hang the system by refusing all processes in the phone access to bitmaps.&lt;/p&gt;

&lt;p&gt;Palette bitmaps are seldom used in symbian, but for those, you get palette information again by member function calls to CFbsBitmap.&lt;/p&gt;

&lt;p&gt;Hope that helped a little to clear your confusion..&lt;/p&gt;</description>
 <pubDate>Thu, 06 Sep 2007 15:36:39 +0200</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 41297 at http://www.newlc.com</guid>
</item>
<item>
 <title>confuse? about CFbsBitmap</title>
 <link>http://www.newlc.com/en/forum/confuse-about-cfbsbitmap</link>
 <description>&lt;p&gt;&lt;br /&gt;
Hi,all&lt;/p&gt;

&lt;p&gt;I was confused with CFbsBitmap,and I wondered what are the differences between CFbsBitmap in symbian and DIB(device-independent bitmap) in windows.Does CFbsBitmap also include BitmapfileHeader,Palette,and Image data?&lt;/p&gt;

&lt;p&gt;please do me a favor.Thanks.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/forum/confuse-about-cfbsbitmap&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/forum/confuse-about-cfbsbitmap#comments</comments>
 <category domain="http://www.newlc.com/en/forums/multimedia">Multimedia</category>
 <pubDate>Thu, 06 Sep 2007 13:43:41 +0200</pubDate>
 <dc:creator>kentan</dc:creator>
 <guid isPermaLink="false">18880 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
