<?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="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : Displaying transparent BMP Files</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : Displaying transparent BMP Files]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 16:18:07 +0000</pubDate>
  <lastBuildDate>Fri, 14 Sep 2012 04:57:49 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=2276</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[Displaying transparent BMP Files : Here is some BCB6 code that should...]]></title>
   <link>http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post10124.html#10124</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2276<br /><strong>Posted:</strong> 14 Sep 12 at 4:57AM<br /><br />Here is some BCB6 code that should help you to load the DLL version. &nbsp;Make sure the QuickPDFDLL0816.DLL file is in the same directory as your compiled EXE or on the Windows path somewhere. &nbsp;8.xx uses unicode strings hence the L prefix.<div><br></div><div><div>#include &lt;vcl.h&gt;</div><div>#pragma hdrstop</div><div><br></div><div>#include "Unit1.h"</div><div>#include "stdio.h"</div><div>#include "stdlib.h"</div><div>#include "dir.h"</div><div>#include "mem.h"</div><div>#include "io.h"</div><div><br></div><div>#include "strutils.hpp"</div><div><br></div><div>#include "QuickPDFdll0816.cpp"</div><div>QuickPDFDLL0816 &nbsp;QP(L"quickpdfdll0816.dll");</div><div><br></div><div>#include &lt;string&gt;</div><div>using namespace std;</div><div><br></div><div>//---------------------------------------------------------------------------</div><div>#pragma package(smart_init)</div><div>#pragma resource "*.dfm"</div><div>TForm1 *Form1;</div><div>//---------------------------------------------------------------------------</div><div>__fastcall TForm1::TForm1(TComponent* Owner)</div><div>&nbsp; &nbsp; : TForm(Owner)</div><div>{</div><div>&nbsp; &nbsp; int InstanceID;</div><div>&nbsp; &nbsp; chdir("f:\\users\\andrew\\downloads");</div><div><br></div><div>&nbsp; &nbsp; wstring s = L"&lt;insert your licence key here&gt;";</div><div>&nbsp; &nbsp; std::wstring lv = QP.LibraryVersion();</div><div><br></div><div>&nbsp; &nbsp; if (QP.UnlockKey(s) != 1)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MessageBox(Handle, "QPL License Key not valid", "Warning", MB_OK);</div><div><br></div><div>&nbsp; &nbsp; Text = lv.c_str(); &nbsp;// Set the Window Title to the version number.</div><div><br></div><div>&nbsp; &nbsp; int ret = QP.ImportEMFFromFile(L"aaa.emf", 0, 0);</div><div>}</div></div><div><br></div>]]>
   </description>
   <pubDate>Fri, 14 Sep 2012 04:57:49 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post10124.html#10124</guid>
  </item> 
  <item>
   <title><![CDATA[Displaying transparent BMP Files : Thanks a lot Wheeley. I agree...]]></title>
   <link>http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post10122.html#10122</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2051">myler</a><br /><strong>Subject:</strong> 2276<br /><strong>Posted:</strong> 13 Sep 12 at 9:43PM<br /><br />Thanks a lot Wheeley. I agree with your reply. I supposed that ActiveX was faster in order to develop the application than DLL.&nbsp;]]>
   </description>
   <pubDate>Thu, 13 Sep 2012 21:43:30 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post10122.html#10122</guid>
  </item> 
  <item>
   <title><![CDATA[Displaying transparent BMP Files : As you work out your troubles...]]></title>
   <link>http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post10120.html#10120</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=121">Wheeley</a><br /><strong>Subject:</strong> 2276<br /><strong>Posted:</strong> 13 Sep 12 at 7:50PM<br /><br />As you work out your troubles one difference to keep in mind is that any computer you want to run your application on will need to register the ActiveX. You don't have this issue with the DLL.<br><br>Wheeley<br>]]>
   </description>
   <pubDate>Thu, 13 Sep 2012 19:50:10 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post10120.html#10120</guid>
  </item> 
  <item>
   <title><![CDATA[Displaying transparent BMP Files : Hi mcinelly1!I saw that you are...]]></title>
   <link>http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post10118.html#10118</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2051">myler</a><br /><strong>Subject:</strong> 2276<br /><strong>Posted:</strong> 13 Sep 12 at 4:25PM<br /><br />Hi mcinelly1!<br>I saw that you are working with C++Builder 6. Can I ask you some suggestions in order to install QPL onto C++ Builder? <br>I tried to work with the Active X but when I try to unlock the component I get "0" as result instead of 1. <br>Maybe I made some mistake when I've imported the type library( I do not know). <br>Now I'm trying to use the DLL but I don't know if it is a good idea...<br>Thanks in advance, <br>Erio<br>]]>
   </description>
   <pubDate>Thu, 13 Sep 2012 16:25:55 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post10118.html#10118</guid>
  </item> 
  <item>
   <title><![CDATA[Displaying transparent BMP Files :  This code is working correctly...]]></title>
   <link>http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post10111.html#10111</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2276<br /><strong>Posted:</strong> 12 Sep 12 at 4:32AM<br /><br /><div>This code is working correctly using the 8.16 release. &nbsp;It creates a problem with the 8.15 release so it looks like there was a bug fix in the 8.16 release that allows this to work correctly.</div><div><br></div><div>8.16 is a free upgrade from 8.xx and can be downloaded from&nbsp;<a href="http://www.debenu.com/products/development/debenu-pdf-library/updates/" target="_blank">http://www.debenu.com/products/development/debenu-pdf-library/updates/</a></div><div><br></div><div>&nbsp; &nbsp; QP.SetOrigin(1);</div><div>&nbsp; &nbsp; QP.SetLineWidth(2);</div><div>&nbsp; &nbsp; for (int i = 1; i &lt;= 16; i++)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; QP.SetLineColor(0, (double)i / 16, (double)i / 16);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; QP.DrawLine(i * 16, 0, i * 16, 200);</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; int img = QP.AddImageFromFile("test.bmp", -1);</div><div>&nbsp; &nbsp; QP.SelectImage(img);</div><div>&nbsp; &nbsp; QP.SetImageMask(0.9, 0.9, 0.9, 1, 1, 1); // THIS SHOULD WORK FOR YOU</div><div>&nbsp; &nbsp; QP.DrawImage(0,0, 100, 100);</div><div><br></div><div>&nbsp; &nbsp; QP.SaveToFile("out.pdf");</div><div><br></div><div>It seems that when using the code above - AcrobatX does some interesting things when rendering this file. &nbsp;If the zoom is less than 100% then a white box is drawn under the signature. Zooming in then shows the correct background. &nbsp;I beleive this is an Acrobat rendering problem.</div><div><br></div><div>Another option is to call QP.SetBlendMode(3); before calling DrawImage and then calling QP.SetBlendMode(0); &nbsp; Currenty QuickPDF Library cannot render blend modes but we are working to add this feature.</div><div><br></div><div><div>Andrew.</div><div><br></div><br ="apple-interchange-newline"=""></div><span style="font-size:10px"><br /><br />Edited by AndrewC - 12 Sep 12 at 5:37AM</span>]]>
   </description>
   <pubDate>Wed, 12 Sep 2012 04:32:09 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post10111.html#10111</guid>
  </item> 
  <item>
   <title><![CDATA[Displaying transparent BMP Files : mcinelly1, I understand you&amp;#039;ve...]]></title>
   <link>http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post10108.html#10108</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1853">barqyDev</a><br /><strong>Subject:</strong> 2276<br /><strong>Posted:</strong> 11 Sep 12 at 9:23PM<br /><br />mcinelly1, I understand you've got a solution going. &nbsp;If you can provide a link to the (or a) mono bitmap, I'm interested in tinkering with it. &nbsp;Seems like there should be an easier way than to convert the file and reload it.]]>
   </description>
   <pubDate>Tue, 11 Sep 2012 21:23:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post10108.html#10108</guid>
  </item> 
  <item>
   <title><![CDATA[Displaying transparent BMP Files :   I could not get this to work...]]></title>
   <link>http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post10107.html#10107</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1558">mcinelly1</a><br /><strong>Subject:</strong> 2276<br /><strong>Posted:</strong> 11 Sep 12 at 9:16PM<br /><br />I could not get this to work for monochrome bitmap images.&nbsp; I would up having to convert the monochromes to 256 color images as follows:<div></div><div>&nbsp;</div><div>//SignControl3 is a monochrome bitmap</div><div>//SignControl2 is predefined 256 color palette</div><div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SignControl3-&gt;Picture-&gt;LoadFromFile(OpenPictureDialog-&gt;FileName);</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SignControl2-&gt;Width = SignControl3-&gt;Width;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SignControl2-&gt;Height = SignControl3-&gt;Height;</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TRect src = Rect(0,0, SignControl3-&gt;Width, SignControl3-&gt;Height);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TRect dest = Rect(0, 0,SignControl2-&gt;Picture-&gt;Bitmap-&gt;Width, SignControl2-&gt;Picture-&gt;Bitmap-&nbsp;&nbsp; &gt;Height);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SignControl2-&gt;Picture-&gt;Bitmap-&gt;Canvas-&gt;CopyRect(dest, SignControl3-&gt;Canvas, src);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SignControl2-&gt;Picture-&gt;SaveToFile(OpenPictureDialog-&gt;FileName);</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SignControl-&gt;Picture-&gt;LoadFromFile(OpenPictureDialog-&gt;FileName);</div>]]>
   </description>
   <pubDate>Tue, 11 Sep 2012 21:16:50 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post10107.html#10107</guid>
  </item> 
  <item>
   <title><![CDATA[Displaying transparent BMP Files : barqyDev, thanks I was also having...]]></title>
   <link>http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post10103.html#10103</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1833">kaiken1987</a><br /><strong>Subject:</strong> 2276<br /><strong>Posted:</strong> 10 Sep 12 at 7:49PM<br /><br />barqyDev, thanks I was also having a problem doing this and at it fixed it]]>
   </description>
   <pubDate>Mon, 10 Sep 2012 19:49:04 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post10103.html#10103</guid>
  </item> 
  <item>
   <title><![CDATA[Displaying transparent BMP Files :  I had some problems with BMP,...]]></title>
   <link>http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post9655.html#9655</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1853">barqyDev</a><br /><strong>Subject:</strong> 2276<br /><strong>Posted:</strong> 27 May 12 at 8:47PM<br /><br />I had some problems with BMP, so I converted to PNG (no transparency though).<div>I was not able to get the SetPNGTransparencyColor() to work, but&nbsp;<br><div>SetImageMask() seems like it can work for you.</div><div>I put a range of 90% = 100%, but if the image really is monochrome, you should be able to use all 1's for the starting/ending color.</div><div><br></div><div>edited...I used AddImageFromFile(L"test.png", <b>0</b>)</div><div><div><br></div><div><div><span style=": rgb251, 251, 253; text-align: left; ">&nbsp;</span><span style=": rgb251, 251, 253; text-align: left; ">int iResult = qp-&gt;AddImageFromFile(WideString(sSigPath).c_bstr(), 1);</span></div><div><div style="text-align: left; : rgb251, 251, 253; ">qp-&gt;SelectPage(iImagePageNumber);<br>qp-&gt;SelectImage(iResult);<br><b>qp-&gt;<span style="text-align: -webkit-auto; : rgb255, 255, 255; ">SetImageMask( 0.9, 0.9, 0.9, 1, 1, 1 ); // THIS SHOULD WORK FOR YOU</span></b></div><div style="text-align: left; : rgb251, 251, 253; ">qp-&gt;DrawImage(iImageLeft, iImageTop + (iImageHeight * .5), iImageWidth, iImageHeight * 2);</div><div><br></div></div></div></div></div><span style="font-size:10px"><br /><br />Edited by barqyDev - 27 May 12 at 9:03PM</span>]]>
   </description>
   <pubDate>Sun, 27 May 2012 20:47:44 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post9655.html#9655</guid>
  </item> 
  <item>
   <title><![CDATA[Displaying transparent BMP Files :   I installed 8.15 this morning...]]></title>
   <link>http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post9647.html#9647</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1558">mcinelly1</a><br /><strong>Subject:</strong> 2276<br /><strong>Posted:</strong> 25 May 12 at 6:10PM<br /><br />I installed 8.15 this morning and I have the same results.&nbsp; SetImageAsMask(0)&nbsp; does not make white background transparent.&nbsp; SetImageAsMask(1) makes pretty much entire BMP transparent - not showing black lines.&nbsp; I triple checked that my file was a black &amp; white bmp.<div>&nbsp;</div><div>Thanks</div>]]>
   </description>
   <pubDate>Fri, 25 May 2012 18:10:48 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/displaying-transparent-bmp-files_topic2276_post9647.html#9647</guid>
  </item> 
 </channel>
</rss>