gettingstarted
[Top] [All Lists]

Re: Printing hairlines

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Printing hairlines
From: Barrie Jones <barrie at spamcop dot net>
Date: Mon, 29 Nov 2004 19:13:07 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <1A54B649-419D-11D9-BA44-000D93C6DE52 at spamcop dot net> <3551ABDC-4246-11D9-BA44-000D93C6DE52 at spamcop dot net> <a0620072abdd13bda4482 at [10 dot 10 dot 13 dot 6]> <1E60686A-424E-11D9-BA44-000D93C6DE52 at spamcop dot net> <a06200730bdd14756f581 at [10 dot 10 dot 13 dot 6]>
Sorry Joe, I am getting confused. In my previous programming environment, (Future Basic) I could print hairlines on my 300 dpi laser printer and 1200 dpi ink jet printer with no special attention to physical printer configurations. In RB, the finest line that I can print is defined as g.penWidth = 1 and g.penHeight = 1. This results in a line width of 1/72 inch on both the above printers. I think I need to send a software instruction to the printer so that it will know that g.penHeight sets printer pixels and not screen pixels. Is this correct? If so where can I find the appropriate code?
Thanks
Barrie

On Nov 29, 2004, at 4:40 PM, Joseph J. Strout wrote:

At 4:32 PM -0500 11/29/04, Barrie Jones wrote:

Is it really that simple? I must be missing something because g.Drawline ..... draws a line that is defined by g.penWidth and g.penHeight.

Right.

Since the smallest setting is 1 (pixel), the line drawn is not a hairline.

Sure it is, if your pixels are a hair's width.

The printer is set at 600 dpi.

If it's properly set to that, then a 1-pixel line is 1/600th of an inch thick. That's going to be too small to easily see; you'd probably want to set the pen size to 2 or more even for a hairline, at that resolution.

But I suspect that your printer resolution isn't really 600, and that's why you're not getting hair-thin lines.

Best,
- Joe

--
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>