printing a bit thinner line... [modified]
-
Hello! I am using a Pen: dim myPen as pen myPen = new pen(Color.Black,1) if i use 'myPen' to draw a rectangle/Line and then print that rectangle/Line it is of thickness '1'. Which seems quite thick when printed. How can i print a line/BOX with line thickness '0.25' OR '0.50' instead of '1'. Thank you -- modified at 9:10 Friday 2nd November, 2007
colgateas900197
-
Hello! I am using a Pen: dim myPen as pen myPen = new pen(Color.Black,1) if i use 'myPen' to draw a rectangle/Line and then print that rectangle/Line it is of thickness '1'. Which seems quite thick when printed. How can i print a line/BOX with line thickness '0.25' OR '0.50' instead of '1'. Thank you -- modified at 9:10 Friday 2nd November, 2007
colgateas900197
-
yes! i do. what ever you write less than 1 it draws line of width 1 by default.
colgateas900197
-
yes! i do. what ever you write less than 1 it draws line of width 1 by default.
colgateas900197
Do you generate a bitmap at screen resolution and print that? or do you call OnPaint() to generate the printed page with appropriate PaintEventArgs? in the first case, your 1-screen-pixel-thick line will be rescaled to the printer's resolution, resulting in thick lines and rough fonts. :)
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips: - use PRE tags to preserve formatting when showing multi-line code snippets - before you ask a question here, search CodeProject, then Google