Loading...

Background color

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

Background color

Postby heard » Fri Oct 16, 2009 10:09 pm

Hi Loic,
I'm having trouble getting a white background.

image1_ID=gdpic.CreateImageFromFile('c:\test.tif') This is a standard 8.5x11 image.
height=gdpic.GetImageHeight
width=gdpic.GetImageWidth
image2_ID=gdpic.CreateNewImage(width,height,32,16777215) This should give white background.

Now I want to draw part of image1 into image2:

gdpic.DrawImageRectangle(image1_ID,0,0,width,height-500,0,0,width,height-500)

When I print using PrintImageDialog I get a black background and it is not scaled properly. :?

What am I doing wrong?
Thanks,
Heard
heard
 
Posts: 78
Joined: Wed Jan 02, 2008 11:55 pm

Re: Background color

Postby Loïc » Sat Oct 17, 2009 10:54 am

Hi Heard,

What are you trying to do ?

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Background color

Postby heard » Mon Oct 19, 2009 3:21 pm

I'm trying to draw part of a document into a new image and print it without using all the toner on the printer. I need it to have a white background.

Heard
heard
 
Posts: 78
Joined: Wed Jan 02, 2008 11:55 pm

Re: Background color

Postby heard » Mon Oct 19, 2009 4:54 pm

Loic,
I think I solved my initial issue with this. I had to set the resolutions to get it to work correctly.
Thanks,
Heard
heard
 
Posts: 78
Joined: Wed Jan 02, 2008 11:55 pm


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron