Two Pilots™    Home  |  Navigation  |  Site Map  |  Products  |  Download  |  Prices  |  For Partners  |  Support


All forums · Statistics · Search ·

Two Pilots forum / For software developers / StretchBlt producing white rectangle
Author Message
Anthony S.
# Posted: 5 Jan 2010 10:26


Greetings!

We are using PDF Creator Pilot to create PDF documents using GDI API calls and we have stumbled upon an odd behaviour with StretchBlt. On the bottom of the generated document we are trying to add a footer which includes an image (and some text). We were using BitBlt to display the image which worked fine but for certain reasons we need to change this to StretchBlt, however, when using this the image seemed to disappear from the document. After some trial-and-error checks we came to the conclusion that if the image is positioned below a certain "Y position", it becomes a white filled rectangle. Any pointers about what we might be doing wrong or what might be causing this? We tried to use SetViewportOrg (and feeding 0,0 to StrethcBlt for target) to position the image instead of specifying the coordinates to StretchBlt but it gives the same result. Thanks in advance for any answer.

Artem
Member
# Posted: 11 Jan 2010 23:22


Hello Anthony,

Thank you for your question.

I have forwarded your question to our developers and will write to you as soon as they send me their reply. We are dealing with a few problems concerning graphic features and will inform you about results.

--
Best regards,
Artem Golubnichenko

Two Pilots http://www.colorpilot.com

Artem
Member
# Posted: 14 Jan 2010 23:08


Hello Anthony,

Could you send us your code for reproducing the problem, please? Please, do not attach files when you reply to this email. You can use our online form to send us a files: http://www.colorpilot.com/support.html.

--
Best regards,
Artem Golubnichenko

Two Pilots http://www.colorpilot.com

Anonymous
# Posted: 1 Jun 2010 06:58


Hi I get the same error

Artem
Member
# Posted: 3 Jun 2010 05:19


Hello,

Could you send us your code for reproducing the problem, please?
--
Best regards,
Artem Golubnichenko

Two Pilots http://www.colorpilot.com

Theunissen
Member
# Posted: 26 Jul 2010 06:13


I have the same problem:
After positioning some text on the page, I StretchBlt a picture over the whole page with parameter SRCAND (Combines the colors of the source and destination rectangles by using the Boolean AND operator). This erases all content that is in the area of the picture.

The same operations work fine on a device context for the screen or printer.

max.f
# Posted: 26 Jul 2010 10:54


If it is possible, we need a piece of code (the short sample Visual Studio project would be perfect) for tests.

--
Max Filimonov,
max.f@colorpilot.org

 

 

Powered by miniBB 2.0 RC7 © 2001-2004 Page creation time (sec.): 0.015

 

Page top