How to align filled objects to even gridlines
In the inkscape tips and tricks it mentions that:
Suppose you want to create a 24x24 pixel icon. Create a 24x24 px canvas (use the Document Preferences) and set the grid to 0.5 px (48x48 gridlines). Now, if you align filled objects to even gridlines, and stroked objects to odd gridlines with the stroke width in px being an even number, and export it at the default 90dpi (so that 1 px becomes 1 bitmap pixel), you get a crisp bitmap image without unneeded antialiasing.
I get the part about setting up the grid to .5, but I am drawing a blank when it says to align filled objects to an even number and strokes to an odd number.
What exactly does this mean and is there an example of this somewhere?
____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Hey,
Think of it this way: In the same preferences dialog (document preferences), it has an option "major grid lines every [ ] lines."
If you set this option to "2", you can easily see the difference between "even" and "odd" lines. This is just a complicated way saying "lines running over pixels and lines running between them".
I myself prefer to work in a different way, though. Maybe it suits you as well. I use a 1px grid (with every 8th grid line a mayor one). I put the cursor steps to 0.25 or .5 (Inkscape preference dialogue) and I let objects I draw align to the grid. If a 1px line runs over a grid line (instead of between two), I simply use the arrow keys to nudge the object with half a picture.
Maarten
-----Original Message----- From: inkscape-user-bounces@lists.sourceforge.net on behalf of D. Jones Sent: Sat 17-Nov-07 12:46 To: Inkscape Subject: [Inkscape-user] How to align filled objects to even gridlines
In the inkscape tips and tricks it mentions that:
Suppose you want to create a 24x24 pixel icon. Create a 24x24 px canvas (use the Document Preferences) and set the grid to 0.5 px (48x48 gridlines). Now, if you align filled objects to even gridlines, and stroked objects to odd gridlines with the stroke width in px being an even number, and export it at the default 90dpi (so that 1 px becomes 1 bitmap pixel), you get a crisp bitmap image without unneeded antialiasing.
I get the part about setting up the grid to .5, but I am drawing a blank when it says to align filled objects to an even number and strokes to an odd number.
What exactly does this mean and is there an example of this somewhere?
____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
www.powel.no **********************************************************************
participants (2)
-
D. Jones
-
Maarten van der Velde