<?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 - 3rd edition Bitmap for background - Comments</title>
 <link>http://www.newlc.com/en/topic-17187</link>
 <description>Comments for &quot;3rd edition Bitmap for background&quot;</description>
 <language>en</language>
<item>
 <title>Re: 3rd edition Bitmap for background</title>
 <link>http://www.newlc.com/en/topic-17187#comment-36565</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;abolfoooud&amp;nbsp; again thank you very much &lt;img src=&quot;/en/sites/all/modules/smf_filter/smf_smileys/smiley.gif&quot; alt=&quot;Smiley&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;br /&gt;The problem was in the mask file (The same mask file which worked on 2nd edition) ,&lt;br /&gt;Painting it all black solved the problem and the image looks as the original on emulator even if I use c8 ...&lt;br /&gt;&lt;br /&gt;Have a great weekend !!!&lt;/div&gt;</description>
 <pubDate>Fri, 05 Jan 2007 13:13:00 +0100</pubDate>
 <dc:creator>Bill_Murray</dc:creator>
 <guid isPermaLink="false">comment 36565 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: 3rd edition Bitmap for background</title>
 <link>http://www.newlc.com/en/topic-17187#comment-36564</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Bill,&lt;br /&gt;&lt;br /&gt;sorry for this late reply. was on holidays &lt;img src=&quot;/en/sites/all/modules/smf_filter/smf_smileys/cheesy.gif&quot; alt=&quot;Cheezy&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;br /&gt;I presume you are using an N-series device. These devices have EColor16MU (24bits) or EColor16MA (32bits) display modes. You are still trying to set the small display mode (12bits) to one of these high bit-depths. try using c24 instead of c12 in:&lt;br /&gt;&lt;br /&gt;SOURCE c12 image.bmp&amp;nbsp; ===&amp;gt;&amp;nbsp; SOURCE c24 image.bmp&lt;br /&gt;&lt;br /&gt;i gues it would work like this.&lt;br /&gt;&lt;br /&gt;hope this helps&lt;br /&gt;AF&lt;/div&gt;</description>
 <pubDate>Tue, 02 Jan 2007 12:19:56 +0100</pubDate>
 <dc:creator>abolfoooud</dc:creator>
 <guid isPermaLink="false">comment 36564 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: 3rd edition Bitmap for background</title>
 <link>http://www.newlc.com/en/topic-17187#comment-36563</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Using SetRect in the Container&amp;#039;s ConstructL made the image fit the view and show the Commands and title.&lt;br /&gt;&lt;br /&gt;The only problem left regarding this issue is that the image still looks bad on the Emulator while the original bmp file looks great.&lt;br /&gt;It sounds that this is related to a depth issye , but as you can see on me previous posts on this Thread ,&lt;br /&gt;This problem still exists although I tried some possible solutions.&lt;br /&gt;&lt;br /&gt;I will keep try and I hope maybe to get some ideas from here also &lt;img src=&quot;/en/sites/all/modules/smf_filter/smf_smileys/smiley.gif&quot; alt=&quot;Smiley&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;br /&gt;Thank you &amp;amp; Have a great and happy new year&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Sun, 31 Dec 2006 17:48:56 +0100</pubDate>
 <dc:creator>Bill_Murray</dc:creator>
 <guid isPermaLink="false">comment 36563 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: 3rd edition Bitmap for background</title>
 <link>http://www.newlc.com/en/topic-17187#comment-36562</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi&lt;br /&gt;Thank you very much for your reply ,&lt;br /&gt;and you have a good point in that last sentanceÂ  &lt;img src=&quot;/en/sites/all/modules/smf_filter/smf_smileys/wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;br /&gt;I tried to use gc.DrawBitmap(aRect, bitmap) instead of gc.BitBlt(TPoint(0,0),bitmap) - didn&amp;#039;t get any results &lt;img src=&quot;/en/sites/all/modules/smf_filter/smf_smileys/sad.gif&quot; alt=&quot;Sad&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;br /&gt;I also tried to use Window().SetRequiredDisplayMode(TDisplayMode) in the container&amp;#039;s ConstructL with the possible TDisplayMode values (and also used Window().DisplayMode()) but with no improvement (The only actual change was when I tried the Gray values - but I use colors).&lt;br /&gt; &lt;br /&gt;I also changed the MBM conf from c8 to c12 but with no change.&lt;br /&gt;&lt;br /&gt;Here is some additional code from the View class and the MMP file,&lt;br /&gt;maybe you can give me other ideas of how to solve this ...&lt;br /&gt;&lt;br /&gt;Thank you very much&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;START BITMAP mymbm.mbm&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Â  #if defined(WINSCW)&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Â  &lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;TARGETPATH ..\..\winscw\c\myapp&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Â  #else&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Â  &lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;TARGETPATH ..\..\data\Z\Resource\apps&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Â  #endif&lt;br /&gt;Â  Â  Â  HEADER&lt;br /&gt;Â  Â  Â  SOURCEPATH ..\data&lt;br /&gt;Â  Â  Â  SOURCE c12 image.bmp&lt;br /&gt;Â  Â  Â  SOURCE 1 imagemask.bmp//also tried without this line&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;void CMyAppView::DoActivateL(const TVwsViewId&amp;amp;,TUid,const TDesC8&amp;amp;)&lt;br /&gt;{&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if ( !iContainer )&lt;br /&gt;Â  Â  {&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iContainer = CMyAppViewContainer::NewL(this);&lt;br /&gt;Â  Â  Â  Â  iContainer-&amp;gt;SetMopParent(this);&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;TRect rect = ClientRect();&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iContainer-&amp;gt;ConstructL(rect);&lt;br /&gt;Â  Â  Â  Â  AppUi()-&amp;gt;AddToStackL(*this, iContainer);&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;SetTitlePaneL();&lt;br /&gt;Â  Â  Â  Â  iContainer-&amp;gt;MakeVisible(ETrue);&lt;br /&gt;Â  Â  }&lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Fri, 29 Dec 2006 15:18:30 +0100</pubDate>
 <dc:creator>Bill_Murray</dc:creator>
 <guid isPermaLink="false">comment 36562 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: 3rd edition Bitmap for background</title>
 <link>http://www.newlc.com/en/topic-17187#comment-36561</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Bill,&lt;br /&gt;&lt;br /&gt;How did you include the MBM details in the MMP file? can you include your code?&lt;br /&gt;Also what device are you using?&lt;br /&gt;&lt;br /&gt;The thing is when you define an MBM in the MMP file you will be defining its color depth as well as in the following:&lt;br /&gt;&lt;br /&gt;START BITMAP&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MyGame.mbm&lt;br /&gt;&lt;br /&gt;HEADER&lt;br /&gt;TARGETPATH&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ..\..\..\..\wins\c\system\apps\MyGame&lt;br /&gt;SOURCEPATH&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ..\MyBitmaps&lt;br /&gt;//&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; color-depth&amp;nbsp; &amp;nbsp;source-bitmap&lt;br /&gt;SOURCE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;image1.bmp&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;note that the depth here for image1 is 12bits per pixel.&lt;br /&gt;&lt;br /&gt;Now if your device is having 24bits per pixel or 32 by default the window server will try to map the low bit-depth (12) to the high one (24 or 32) and here you will have unexpected results!!&lt;br /&gt;&lt;br /&gt;a solution for this is:&lt;br /&gt;1) eaither you make sure that the bitmap (image1.bmp in the example above) being defined for MBM in MMP has a color depth approperiate to the default one used by the device. To retrieve this depth use the following:&lt;br /&gt;&lt;br /&gt;void CMyAppContainer::ConstructL()&lt;br /&gt;{&lt;br /&gt;// make sure that this line is used in a class that is derived &lt;br /&gt;// from CCoeControl&lt;br /&gt;TDisplayMode mode = Window().DisplayMode();&lt;br /&gt;...&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2) or you set the depth of the window server to the one that meets your original bitmap file (iamge1.bmp). you can do something like this:&lt;br /&gt;&lt;br /&gt;void CMyAppContainer::ConstructL()&lt;br /&gt;{&lt;br /&gt;// make sure that this line is used in a class that is derived &lt;br /&gt;// from CCoeControl&lt;br /&gt;Window()SetRequiredDisplayMode();&lt;br /&gt;...&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;hope this helps&lt;br /&gt;Abolfoooud&lt;br /&gt;&lt;br /&gt;PS: what are uou doing at this time mate in front of yout pc? go enjoy the Christmas &lt;img src=&quot;/en/sites/all/modules/smf_filter/smf_smileys/cheesy.gif&quot; alt=&quot;Cheezy&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Mon, 25 Dec 2006 23:30:29 +0100</pubDate>
 <dc:creator>abolfoooud</dc:creator>
 <guid isPermaLink="false">comment 36561 at http://www.newlc.com</guid>
</item>
<item>
 <title>3rd edition Bitmap for background</title>
 <link>http://www.newlc.com/en/topic-17187</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/topic-17187&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-17187#comments</comments>
 <category domain="http://www.newlc.com/en/forums/nokia-series-60">Nokia S60</category>
 <pubDate>Mon, 25 Dec 2006 14:27:39 +0100</pubDate>
 <dc:creator>Bill_Murray</dc:creator>
 <guid isPermaLink="false">16738 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
