windows - How can I draw a line in a printer that looks thinner than a pixel? -


i know gdi limitation. gdi can draw line width @ least 1 pixel. still want draw line looks thinner 1 pixel in printer.

do mean can this:

with clogbrush begin     lbstyle := bs_solid;     lbcolor := acanvas.pen.color;     lbhatch := 0; end;   dwstyle := ps_cosmetic or ps_alternate; acanvas.pen.handle := extcreatepen(dwstyle, 1, clogbrush, 0, nil); acanvas.moveto(x1, y1); acanvas.lineto(x2, y2); 

you (for example) draw line of alternating black , white pixels. @ least typical laser printer @ 600 1200 dpi, blend pretty line looks less dark. should add, however, line 1 pixel wide laser printer pretty thin.

a lot here depend on printer though. example, ink jet printers, thinnest line can draw thicker, when/if quote same (or higher) resolution. lines aren't quite clean either -- in both cases, they're darkest @ center, , fade paper color, ink jet "fade" quite bit slower edges of line aren't clean.


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -