<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : How i can render PNG image</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : General Discussion : How i can render PNG image]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 27 Apr 2026 15:56:57 +0000</pubDate>
  <lastBuildDate>Thu, 21 Jun 2007 15:31:33 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=7402</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[How i can render PNG image : Thank&amp;#039;s oleg ....      I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23866&amp;title=how-i-can-render-png-image#23866</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3085">shobits1</a><br /><strong>Subject:</strong> 7402<br /><strong>Posted:</strong> 21 June 2007 at 3:31pm<br /><br />Thank's <U><strong>oleg</strong></U> ....<DIV>&nbsp;</DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>I try it and it work...</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 21 Jun 2007 15:31:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23866&amp;title=how-i-can-render-png-image#23866</guid>
  </item> 
  <item>
   <title><![CDATA[How i can render PNG image : Right. You also need premultiply...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23865&amp;title=how-i-can-render-png-image#23865</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7402<br /><strong>Posted:</strong> 21 June 2007 at 3:03pm<br /><br />Right. You also need premultiply bitmap if it has alpha layer:<DIV>&nbsp;</DIV><FONT color=#020002 size=1><P>RSRC</FONT><FONT size=1> </FONT><FONT color=#020002 size=1>hResource</FONT><FONT size=1> = ::</FONT><FONT color=#020002 size=1>FindResource</FONT><FONT size=1>(</FONT><FONT color=#020002 size=1>hModule</FONT><FONT size=1>, </FONT><FONT color=#020002 size=1>lpszResource</FONT><FONT size=1>, </FONT><FONT color=#020002 size=1>_T</FONT><FONT size=1>(</FONT><FONT color=#a31515 size=1>"PNG"</FONT><FONT size=1>));</P><P></FONT><FONT color=#020002 size=1>CXTPGraphicBitmapPng</FONT><FONT size=1> </FONT><FONT color=#020002 size=1>mBitmapPng</FONT><FONT size=1>;</P><P></FONT><FONT color=#0000ff size=1>if</FONT><FONT size=1> (!</FONT><FONT color=#020002 size=1>mBitmapPng</FONT><FONT size=1>.</FONT><FONT color=#020002 size=1>LoadFromResource</FONT><FONT size=1>(</FONT><FONT color=#020002 size=1>hModule</FONT><FONT size=1>, </FONT><FONT color=#020002 size=1>hResource</FONT><FONT size=1>))</P><P></FONT><FONT color=#020002 size=1>TRACE0</FONT><FONT size=1>(</FONT><FONT color=#a31515 size=1>"\nCan't Load PNG from resource\n"</FONT><FONT size=1>);</P><P></P><P></FONT><P><FONT color=#008000 size=1></P></FONT><FONT size=1></FONT><strong><FONT color=#020002 size=1>mBitmap</FONT><FONT size=1>.</FONT><FONT color=#020002 size=1>Attach</FONT><FONT size=1>(</FONT><FONT color=#020002 size=1>CXTPImageManagerIcon</FONT><FONT size=1>::</FONT><FONT color=#020002 size=1>PreMultiplyAlphaBitmap</FONT><FONT size=1>(</FONT><FONT color=#020002 size=1>mBitmapPng</FONT></strong><FONT size=1><strong>));</strong></P><DIV></DIV><FONT size=1><P></FONT><FONT color=#020002 size=1>CXTPImageManagerIcon</FONT><FONT size=1>::</FONT><FONT color=#020002 size=1>DrawAlphaBitmap</FONT><FONT size=1>( &amp;</FONT><FONT color=#020002 size=1>dc</FONT><FONT size=1>, </FONT><FONT color=#020002 size=1><strong>mBitmap</strong></FONT><FONT size=1>, </FONT><FONT color=#020002 size=1>CPoint</FONT><FONT size=1>(50,50), </FONT><FONT color=#020002 size=1>CSize</FONT><FONT size=1>(256,256), 0, </FONT><FONT color=#020002 size=1>CSize</FONT><FONT size=1>(256,256) );</P></FONT><P></FONT>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 21 Jun 2007 15:03:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23865&amp;title=how-i-can-render-png-image#23865</guid>
  </item> 
  <item>
   <title><![CDATA[How i can render PNG image : Hi oleg .... sinceI can&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23864&amp;title=how-i-can-render-png-image#23864</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3085">shobits1</a><br /><strong>Subject:</strong> 7402<br /><strong>Posted:</strong> 21 June 2007 at 11:36am<br /><br /><P>Hi <strong><U>oleg</U></strong> ....</P><DIV>since&nbsp;I can't upload&nbsp;my project, I have created a simple one that demonstrate&nbsp;the&nbsp;problem</DIV><DIV>this is the link</DIV><DIV>&nbsp;</DIV><DIV><a href="http://forum.codejock.com/uploads/20070621_113016_Draw_PNG.rar" target="_blank">uploads/20070621_113016_Draw_PNG.rar</A></DIV><DIV>&nbsp;</DIV><DIV>the project was create with VS2005</DIV><DIV>the file "ChildView.cpp" have my routine to load and draw the PNG image.</DIV><DIV>&nbsp;</DIV><DIV>you can check my code, and I hope to figureout where I am wrong...</DIV><DIV>&nbsp;</DIV><DIV>Thank's to you for help.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 21 Jun 2007 11:36:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23864&amp;title=how-i-can-render-png-image#23864</guid>
  </item> 
  <item>
   <title><![CDATA[How i can render PNG image : Hi, Attach project with all bitmaps/png...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23856&amp;title=how-i-can-render-png-image#23856</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7402<br /><strong>Posted:</strong> 21 June 2007 at 1:26am<br /><br />Hi,<DIV>Attach project with all bitmaps/png here or in issue track.</DIV>]]>
   </description>
   <pubDate>Thu, 21 Jun 2007 01:26:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23856&amp;title=how-i-can-render-png-image#23856</guid>
  </item> 
  <item>
   <title><![CDATA[How i can render PNG image : Thank&amp;#039;s again oleg...  I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23852&amp;title=how-i-can-render-png-image#23852</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3085">shobits1</a><br /><strong>Subject:</strong> 7402<br /><strong>Posted:</strong> 20 June 2007 at 8:00pm<br /><br /><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left">Thank's again <strong><U>oleg</U></strong>...</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left"></DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left">I have used this code and it works for load PNG image from file or from resource</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left">&nbsp;</DIV><DIV style="MARGIN: 0cm 0cm 0pt 36pt; DIRECTI&#079;N: ltr; TEXT-INDENT: -18pt; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto; mso-list: l0 level1 lfo2">----&nbsp;Load PNG from local file</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left">&nbsp;</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left">&nbsp;</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">BOOL bAlpha=0;</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left">HBITMAP hb = CXTPImageManagerIcon::LoadBitmapFromFile (pszFilePng, &amp;bAlpha);&nbsp;</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left">&nbsp;</DIV><DIV style="MARGIN: 0cm 0cm 0pt 36pt; DIRECTI&#079;N: ltr; TEXT-INDENT: -18pt; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto; mso-list: l1 level1 lfo1">---- Load PNG from resource</DIV><DIV style="MARGIN: 0cm 0cm 0pt 36pt; DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto">&nbsp;</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">BOOL bAlpha = FALSE;</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">hb = CXTPImageManagerIcon::LoadBitmapFromResource(_T("IDB_PNG_IMAGE"),&amp;bAlpha );</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">LPCTSTR lpszResource = MAKEINTRESOURCE(IDB_PNG_IMAGE);</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">HMODULE hModule = AfxFindResourceHandle( lpszResource, _T("PNG") );</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">BOOL bPngBitmap = CXTPImageManagerIcon::IsPngBitmapResource(hModule, lpszResource);</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">if (bPngBitmap)</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">{</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPGraphicBitmapPng bmpIcons;</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HRSRC hResource = ::FindResource(hModule, lpszResource, _T("PNG"));</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">&nbsp;</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;if (!bmpIcons.LoadFromResource(hModule, hResource))</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;TRACE0("Can't Load");</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</DIV><DIV style="DIRECTI&#079;N: ltr; TEXT-INDENT: 36pt; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">&nbsp;BOOL lbAlphaBitmap = bmpIcons.IsAlpha();</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">&nbsp;</DIV><DIV style="DIRECTI&#079;N: ltr; TEXT-INDENT: 36pt; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne">&nbsp;hb = (HBITMAP)bmpIcons.Detach();</DIV><DIV style="DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left">}</DIV><DIV style="MARGIN: 0cm 0cm 10pt; DIRECTI&#079;N: ltr; unicode-bidi: ; TEXT-ALIGN: left">&nbsp;</DIV><DIV style="MARGIN: 0cm 0cm 10pt; DIRECTI&#079;N: ltr; unicode-bidi: ; TEXT-ALIGN: left">Thanks to <strong><U>oleg</U></strong></DIV><DIV style="MARGIN: 0cm 0cm 10pt 36pt; DIRECTI&#079;N: ltr; TEXT-INDENT: -18pt; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto; mso-list: l1 level1 lfo1">----&nbsp;Also I found a post and I verified it and it work,, thanks to &nbsp;<a href="http://forum.codejock.com/member_profile.asp?PF=1322&amp;FID=18" target="_blank"><strong>danpetitt</strong></A> </DIV><DIV style="MARGIN: 0cm 0cm 10pt 36pt; DIRECTI&#079;N: ltr; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto"><a href="http://forum.codejock.com/forum_posts.asp?TID=5840" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=5840</A></DIV><DIV style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0cm; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0cm; PADDING-BOTTOM: 1pt; MARGIN-LEFT: 36pt; BORDER-LEFT: medium n&#111;ne; MARGIN-RIGHT: 0cm; PADDING-TOP: 0cm; BORDER-BOTTOM: text 1pt solid; mso-element: para-border-div; mso-border-bottom-alt: solid text .75pt"><DIV style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0cm; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium n&#111;ne; DIRECTI&#079;N: ltr; PADDING-TOP: 0cm; BORDER-BOTTOM: medium n&#111;ne; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0cm 0cm 1.0pt 0cm">&nbsp;</DIV></DIV><DIV style="MARGIN: 0cm 0cm 10pt 36pt; DIRECTI&#079;N: ltr; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto">&nbsp;</DIV><DIV style="MARGIN: 0cm 0cm 10pt 36pt; DIRECTI&#079;N: ltr; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto">The Problem is the look of my render; it doesn't draw the transparency in the right way</DIV><DIV style="MARGIN: 0cm 0cm 10pt 36pt; DIRECTI&#079;N: ltr; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto">&nbsp;<img src="http://forum.codejock.com/uploads/20070620_195811_myRender.PNG" border="0"></DIV><DIV style="MARGIN: 0cm 0cm 10pt 36pt; DIRECTI&#079;N: ltr; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto"></DIV><DIV style="MARGIN: 0cm 0cm 10pt 36pt; DIRECTI&#079;N: ltr; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto">This my PNG render.</DIV><DIV style="MARGIN: 0cm 0cm 10pt 36pt; DIRECTI&#079;N: ltr; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto">&nbsp;</DIV><DIV style="MARGIN: 0cm 0cm 10pt 36pt; DIRECTI&#079;N: ltr; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto"><img src="http://forum.codejock.com/uploads/20070620_195850_xpRender.PNG" border="0"></DIV><DIV style="MARGIN: 0cm 0cm 10pt 36pt; DIRECTI&#079;N: ltr; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto"></DIV><DIV style="MARGIN: 0cm 0cm 10pt 36pt; DIRECTI&#079;N: ltr; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto">This windows XP Picture and Fax preview render</DIV><DIV style="MARGIN: 0cm 0cm 10pt 36pt; DIRECTI&#079;N: ltr; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto">&nbsp;</DIV><DIV style="MARGIN: 0cm 0cm 10pt 36pt; DIRECTI&#079;N: ltr; TEXT-INDENT: -18pt; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto; mso-list: l1 level1 lfo1">n&nbsp; I used to render my image this code</DIV><DIV style="MARGIN: 0cm 0cm 0pt 36pt; DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto; mso-layout-grid-align: n&#111;ne">void CChildView::OnPaint()</DIV><DIV style="MARGIN: 0cm 0cm 0pt 36pt; DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto; mso-layout-grid-align: n&#111;ne">{</DIV><DIV style="MARGIN: 0cm 0cm 0pt 36pt; DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto; mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CPaintDC pdc(this); // device context for painting</DIV><DIV style="MARGIN: 0cm 0cm 0pt 36pt; DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto; mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTMemDC dc(&amp;pdc, CRect(0,0,0,0)); // I used this to reduce filcker</DIV><DIV style="MARGIN: 0cm 0cm 0pt 36pt; DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto; mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV><DIV style="MARGIN: 0cm 0cm 0pt 290.6pt; DIRECTI&#079;N: ltr; TEXT-INDENT: -219.7pt; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto; mso-layout-grid-align: n&#111;ne">CXTPImageManagerIcon::DrawAlphaBitmap(&amp;dc, hb, CPoint(50,50), CSize(256,256), 0, CSize(256,256) );</DIV><DIV style="MARGIN: 0cm 0cm 0pt 36pt; DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto; mso-layout-grid-align: n&#111;ne">&nbsp;</DIV><DIV style="MARGIN: 0cm 0cm 0pt 36pt; DIRECTI&#079;N: ltr; LINE-HEIGHT: normal; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto; mso-layout-grid-align: n&#111;ne">&nbsp;</DIV><DIV style="MARGIN: 0cm 0cm 10pt 36pt; DIRECTI&#079;N: ltr; unicode-bidi: ; TEXT-ALIGN: left; mso-add-space: auto">}</DIV>]]>
   </description>
   <pubDate>Wed, 20 Jun 2007 20:00:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23852&amp;title=how-i-can-render-png-image#23852</guid>
  </item> 
  <item>
   <title><![CDATA[How i can render PNG image : Yes, you need PNG group.   check...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23829&amp;title=how-i-can-render-png-image#23829</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7402<br /><strong>Posted:</strong> 20 June 2007 at 1:25am<br /><br />Yes, you need PNG group. <DIV>&nbsp;</DIV><DIV>check Samples\CommandBars\ActionsSample&nbsp; sample. It uses png&nbsp;for toolbar icons:</DIV><DIV>&nbsp;</DIV>IDR_MAINFRAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PNG&nbsp;&nbsp;&nbsp;&nbsp; MOVEABLE PURE&nbsp;&nbsp; "res\\Toolbar.png"<BR><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Here part of code from sources:</DIV><DIV>&nbsp;</DIV><DIV>hModule = AfxFindResourceHandle(lpszResource, _T("PNG"));</DIV><DIV>&nbsp;BOOL bPngBitmap = IsPngBitmapResource(hModule, lpszResource);<BR>&nbsp;if (bPngBitmap)<BR>&nbsp;{<BR>&nbsp;&nbsp;CXTPGraphicBitmapPng bmpIcons;</DIV><DIV>&nbsp;&nbsp;HRSRC hResource = ::FindResource(hModule, lpszResource, _T("PNG"));</DIV><DIV>&nbsp;&nbsp;if (!bmpIcons.LoadFromResource(hModule, hResource))<BR>&nbsp;&nbsp;&nbsp;return NULL;</DIV><DIV>&nbsp;&nbsp;if (lbAlphaBitmap)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;*lbAlphaBitmap = bmpIcons.IsAlpha();<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;return (HBITMAP)bmpIcons.Detach();<BR>&nbsp;}<BR></DIV>]]>
   </description>
   <pubDate>Wed, 20 Jun 2007 01:25:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23829&amp;title=how-i-can-render-png-image#23829</guid>
  </item> 
  <item>
   <title><![CDATA[How i can render PNG image : Thank&amp;#039;s &amp;#034;oleg&amp;#034;...  I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23826&amp;title=how-i-can-render-png-image#23826</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3085">shobits1</a><br /><strong>Subject:</strong> 7402<br /><strong>Posted:</strong> 19 June 2007 at 11:28pm<br /><br />Thank's "oleg"...<DIV>&nbsp;</DIV><DIV>I will try with CXTPGraphicBitmapPng.</DIV><DIV>&nbsp;</DIV><DIV>An other question: where my PNG image suppos to be in my resource file, I mean &nbsp;like icons it must be under&nbsp;ICON group&nbsp;&amp; bitmap image must be under BITAMP group in my resource and so on (where PNG image must be). I try to set it under PNG group but it doesn't wok.</DIV><DIV>&nbsp;</DIV><DIV>thank's for your help...</DIV>]]>
   </description>
   <pubDate>Tue, 19 Jun 2007 23:28:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23826&amp;title=how-i-can-render-png-image#23826</guid>
  </item> 
  <item>
   <title><![CDATA[How i can render PNG image : Hello,  Try this  CXTPGraphicBitmapPng...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23785&amp;title=how-i-can-render-png-image#23785</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7402<br /><strong>Posted:</strong> 19 June 2007 at 1:26am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Try this</DIV><DIV>&nbsp;</DIV><DIV>CXTPGraphicBitmapPng bitmap;</DIV><DIV>bitmap.LoadFromResource(hModule, hRes);</DIV><DIV>&nbsp;</DIV><DIV>or load bitmaps/draw&nbsp;using CXTPImageManager collection</DIV>]]>
   </description>
   <pubDate>Tue, 19 Jun 2007 01:26:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23785&amp;title=how-i-can-render-png-image#23785</guid>
  </item> 
  <item>
   <title><![CDATA[How i can render PNG image : I wonder if any body can help...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23780&amp;title=how-i-can-render-png-image#23780</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3085">shobits1</a><br /><strong>Subject:</strong> 7402<br /><strong>Posted:</strong> 18 June 2007 at 10:51pm<br /><br /><FONT size=2>I wonder if any body can help to use codejock for loading and rendering PNG images from ressource and from external file.</FONT><DIV>&nbsp;</DIV><DIV><FONT size=2>I try diffrent function from codejock but no help,, <BR></FONT></DIV><DIV><FONT size=3><FONT size=2>I excepet to show me the best why to draw a PNG image (storred <BR>internally in my exe, or storred in extern dll file), and where i must store my PNG image( where in the ressource under "PNG" or under "Bitmap" Group).</FONT><BR></FONT></DIV><DIV><FONT size=3></FONT>&nbsp;</DIV><DIV><FONT size=3><FONT size=2>sorry for my bad english,,, and thanks</FONT></DIV></FONT>]]>
   </description>
   <pubDate>Mon, 18 Jun 2007 22:51:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7402&amp;PID=23780&amp;title=how-i-can-render-png-image#23780</guid>
  </item> 
 </channel>
</rss>