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 21:02:59 -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]> <9CC7B994-4264-11D9-BA44-000D93C6DE52 at spamcop dot net> <DBC93708-4270-11D9-B971-000393101B4A at mobleybros dot com>
I want to use hairlines as the grid on Log-linear graphs so I guess I should be using Vector graphics. I have never looked at the Object2D class but I think that is where I will find the solution. Wow this is a very steep learning curve.
Thank you for pointing me in the right direction.
Barrie
On Nov 29, 2004, at 8:40 PM, Phil Mobley wrote:

On Nov 29, 2004, at 4:13 PM, Barrie Jones wrote:

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.

You are currently working in pixels or a raster item -- so the smallest visible element is always going to be one pixel. This is what the hairline should be based on with raster items. If you are going to draw thicker lines, then you will need to multiply it by the scale -- a 1 point thick line on a 288 dpi printer, you would change the pixelWidth to 4.

There is another approach which is even less documented than the raster approach, but may be more of what you a looking for -- vector graphics using the Object2D class. You are able to set the stroke weight to doubles and it would be scalable for any printer. A 0.25 point line would be 0.25 points thick on a 300 dpi printer or a 1800 dpi printer.

Take a look at the Object2D class to see if that is what you are looking for.

_______________________________________________
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>