Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Drawimage wont work on some PC's
  FAQ FAQ  Forum Search   Register Register  Login Login

Drawimage wont work on some PC's

 Post Reply Post Reply
Author
Message
cpri View Drop Down
Team Player
Team Player


Joined: 17 Feb 06
Location: Netherlands
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpri Quote  Post ReplyReply Direct Link To This Post Topic: Drawimage wont work on some PC's
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store