Print Page | Close Window

Drawimage wont work on some PC's

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=715
Printed Date: 16 May 24 at 11:15AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Drawimage wont work on some PC's
Posted By: cpri
Subject: Drawimage wont work on some PC's
Date Posted: 27 Apr 07 at 2:14AM
Hello,

My program creates a datasheet (a pdf that is) on that datasheet there is a logo.
For now I pickup the logo from a file (c:\'test.bmp'). (The final code will load the image from the resource of the exe).

I use the following code to show my picture


bitMap.LoadFromResourceName(HInstance, name);
bitmap.Transparent := True;
bitmap.SaveTostream(bmpstream);
r.left := x_gdu_0;
r.right := trunc(bitmap.width * scale / dx);
r.bottom := y_gdu_0;
r.top := r.bottom - trunc(bitmap.height * scale / dy);
// qp.AddImageFromStream(bmpstream, 0);
qp.AddImageFromFile('c:\test.bmp',0);
if qp.drawimage(r.left, r.top, r.right - r.left, r.Bottom - r.Top) = 0 then showmessage('error');


On my own PC (win XP) everything works fine and I have a logo in the upper left corner. When I use the same executable on a other machine I don't get any error's but there is no logo (perhaps it's invisible or something).

How to solve this



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk