<?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 - Bitmap and Bitmap Mask - Comments</title>
 <link>http://www.newlc.com/forum/bitmap-and-bitmap-mask</link>
 <description>Comments for &quot;Bitmap and Bitmap Mask&quot;</description>
 <language>en</language>
<item>
 <title>Re: Bitmap and Bitmap Mask</title>
 <link>http://www.newlc.com/forum/bitmap-and-bitmap-mask#comment-42302</link>
 <description>&lt;p&gt;&lt;br /&gt;
Yeah actually the mask i had created earlier were not correct...&lt;/p&gt;

&lt;p&gt;Hey it was great talking to you alh..&lt;/p&gt;

&lt;p&gt;Thanks for the help..&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Mon, 15 Oct 2007 11:59:13 +0200</pubDate>
 <dc:creator>Sohil</dc:creator>
 <guid isPermaLink="false">comment 42302 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Bitmap and Bitmap Mask</title>
 <link>http://www.newlc.com/forum/bitmap-and-bitmap-mask#comment-42301</link>
 <description>&lt;p&gt;If you look closer to the function declaration, it doesn&#039;t require a mask id.&lt;/p&gt;

&lt;p&gt;If you don&#039;t give it, it will default to &quot;-1&quot; which should mean &quot;don&#039;t load a mask&quot;.&lt;/p&gt;

&lt;p&gt;Hopefully, the guy later using the CGulIcon is smart enough to choose a draw method that does not need a mask when drawing the icon.&lt;/p&gt;

&lt;p&gt;About your color problem:&lt;br /&gt;
One easy-to-make mistake with masks, is if it isn&#039;t really 100% black, but just 99% black or something, then your whole image will be slightly semi-transparent, making colors look a bit off.&lt;br /&gt;
If the colors look way off (as in completly the wrong color on some pixels, not just a different shade) then the problem might be the mask having the wrong bitmap format. It must be EGray256 or EGray2, all other formats will produce weird results.&lt;/p&gt;</description>
 <pubDate>Mon, 15 Oct 2007 11:55:15 +0200</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 42301 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Bitmap and Bitmap Mask</title>
 <link>http://www.newlc.com/forum/bitmap-and-bitmap-mask#comment-42298</link>
 <description>&lt;p&gt;hi &lt;br /&gt;
Actually i m using simple API&lt;/p&gt;

&lt;p&gt;IMPORT_C CGulIcon *CreateIconL(const TDesC &amp;aFileName, TInt aBitmapId, TInt aMaskId=-1);&lt;/p&gt;

&lt;p&gt;which requires a mask id.&lt;/p&gt;

&lt;p&gt;So was just confused as in how the mask is to be used because after drawing the icon i couldn get the exact color as of my bitmap image..&lt;/p&gt;

&lt;p&gt;Thanks Alh..&lt;br /&gt;
Really appreciate your response...&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Mon, 15 Oct 2007 11:37:44 +0200</pubDate>
 <dc:creator>Sohil</dc:creator>
 <guid isPermaLink="false">comment 42298 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Bitmap and Bitmap Mask</title>
 <link>http://www.newlc.com/forum/bitmap-and-bitmap-mask#comment-42295</link>
 <description>&lt;p&gt;Yes.&lt;/p&gt;

&lt;p&gt;I&#039;m not sure if it has to be the same size as the image though, or if it can be scaled.&lt;br /&gt;
Probably it has to be the same size if I trust my symbian intuition...&lt;/p&gt;

&lt;p&gt;I don&#039;t know how you are trying to display your image, but you only need the mask if you are using BitBlitMasked or DrawBitmapMasked.&lt;br /&gt;
if you want to display a square image, you should use BitBlt() or DrawBitmap(), and not use the mask.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Mon, 15 Oct 2007 11:24:08 +0200</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 42295 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Bitmap and Bitmap Mask</title>
 <link>http://www.newlc.com/forum/bitmap-and-bitmap-mask#comment-42293</link>
 <description>&lt;p&gt;hi Alh thanks for your reply...&lt;/p&gt;

&lt;p&gt;So if i have a bitmap image A and the mask image is fully black then i would be able to see the Bitmap image as it is.. &lt;br /&gt;
i would use white or gryscale in my image only if i want transparent images to be drawn otherwise i can use a black image with any other bitmap image to show it as it is...&lt;/p&gt;

&lt;p&gt;Thanks again..&lt;/p&gt;</description>
 <pubDate>Mon, 15 Oct 2007 11:16:25 +0200</pubDate>
 <dc:creator>Sohil</dc:creator>
 <guid isPermaLink="false">comment 42293 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Bitmap and Bitmap Mask</title>
 <link>http://www.newlc.com/forum/bitmap-and-bitmap-mask#comment-42291</link>
 <description>&lt;p&gt;The mask is simply a black and white, or grayscale, image, telling what pixels should be see-through and which should be visible.&lt;br /&gt;
You can use any imaging tool for this.&lt;br /&gt;
Its not something that can be done 100% automatically, since it is impossible for a computer program to guess your design.&lt;/p&gt;

&lt;p&gt;with a black and white mask, you can only specify if the pixel is visible or not, and with a grayscale image, you can get make pixels semi-transparent (which makes it possible to have soft edges on any background)&lt;br /&gt;
Full white pixel means pixel is fully transparent, and Full black means pixel is fully opaque (visible)&lt;/p&gt;</description>
 <pubDate>Mon, 15 Oct 2007 11:09:16 +0200</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 42291 at http://www.newlc.com</guid>
</item>
<item>
 <title>Bitmap and Bitmap Mask</title>
 <link>http://www.newlc.com/forum/bitmap-and-bitmap-mask</link>
 <description>&lt;p&gt;hi,&lt;br /&gt;
I have been trying to use bitmaps in my applications however for every image it requires a bitmap and its bitmap mask..&lt;br /&gt;
I have tried creating mask of images through some online site..&lt;br /&gt;
however i do not get a proper picture...&lt;br /&gt;
I would like to know how do i create the mask&#039;s of these bitmao images...&lt;br /&gt;
what is the requirement from Symbian ..for mask images..&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/forum/bitmap-and-bitmap-mask&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/forum/bitmap-and-bitmap-mask#comments</comments>
 <category domain="http://www.newlc.com/forums/symbian-c">Symbian C++</category>
 <pubDate>Mon, 15 Oct 2007 10:47:29 +0200</pubDate>
 <dc:creator>Sohil</dc:creator>
 <guid isPermaLink="false">19294 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
