Normal Topic PrintImage question (Read 868 times)
pineberry
Full Member
***
Offline


No personal text

Posts: 115
Location: Strawberry, AZ  USA
Joined: Nov 30th, 2002
PrintImage question
Sep 22nd, 2007 at 10:26pm
Print Post Print Post  
My first attempt to use PrintImage and my problem is getting a nice print of a logo. The logo file is tif and using paint to save it as bmp or jpg gives me rough lettering. Is there a way to get the smooth image that is the tif file?

Thanks for any ideas.

Harley
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: PrintImage question
Reply #1 - Sep 23rd, 2007 at 1:34pm
Print Post Print Post  
Are you resizing the image?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
pineberry
Full Member
***
Offline


No personal text

Posts: 115
Location: Strawberry, AZ  USA
Joined: Nov 30th, 2002
Re: PrintImage question
Reply #2 - Sep 23rd, 2007 at 4:05pm
Print Post Print Post  
Yes I am reducing the size.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: PrintImage question
Reply #3 - Sep 23rd, 2007 at 7:24pm
Print Post Print Post  
Resizing images in general, especially text, often results in jaggy letters and curves. Do you have any other image tools than Paint?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
pineberry
Full Member
***
Offline


No personal text

Posts: 115
Location: Strawberry, AZ  USA
Joined: Nov 30th, 2002
Re: PrintImage question
Reply #4 - Sep 24th, 2007 at 1:13am
Print Post Print Post  
I have Photo Studio and PhotoShop 7.0.
The results are the same with Photo Studio but the bmp file created with PhotoShop does not print in Sesame.
Both jpg and bmp files look great when viewed with Nero Photosnap Viewer.
I also tried with Irfanview but that wasn't any good either.
Following is the code I am using in Sesame:

NewPage(850, 1100)

     PrintImage("c:\David\Lyceum LOGO.jpg",100, 100, 200, 200)

     
     FinishPage()

I substituted bmp for jpg in order to try both formats.

The logo is mostly text and perhaps the tif file just isn't meant to be used.

Is there another approach I should try?

Harley
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: PrintImage question
Reply #5 - Sep 24th, 2007 at 2:19am
Print Post Print Post  
Try setting the NewPage command with higher numbers. Lets say that your image is 600 x 400 and you want it to occupy half the page across, you should set the NewPage to 1200 across and set the height proportionally.

Even better, set the NewPage parameters to match the resolution of your printer. If your printer supports 300 DPI and you are printing on 8.5 x 11 inch paper, that would be NewPage(2550, 3300). Such a setting will require that your image be very large to start with or it will print very small in size and that your computer have a fair amount of memory.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: PrintImage question
Reply #6 - Sep 24th, 2007 at 4:42am
Print Post Print Post  
Quote:
Even better, set the NewPage parameters to match the resolution of your printer. If your printer supports 300 DPI and you are printing on 8.5 x 11 inch paper, that would be NewPage(2550, 3300).

I agree. This was how I achieved good results.


My printer has a resolution of 600 dpi, so my code looks something like the following.
Code
Select All
Var DPI as Double = 600

NewPage(8.50 * DPI, 11.00 * DPI)
PrintPagePaper(28)

PrintImage(".\Data\MyImage.png", 5.40 * DPI, 2.35 * DPI, 2.80 * DPI, .60 * DPI) 



I use a variable named "DPI" (set to my printer's dots per inch resolution) as a multiplier so that I can simply enter my coordinates in inches. I find this much easier than calculating each value manually.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
pineberry
Full Member
***
Offline


No personal text

Posts: 115
Location: Strawberry, AZ  USA
Joined: Nov 30th, 2002
Re: PrintImage question
Reply #7 - Sep 24th, 2007 at 3:47pm
Print Post Print Post  
Thanks for the suggestions. I'll try tomorrow when I am not snowed with other things.
  
Back to top
 
IP Logged