>>>>> "Maxim" == Maxim Shemanarev <mcseemagg@...> writes:
Maxim> Actually, if you need to draw horizontal and vertical lines
Maxim> of exactly 1 pixel width, always aligned to pixels (say,
Maxim> coordinate grid), and if you are absolutely sure you won't
Maxim> need to transform them using AGG converters, it's better to
Maxim> use low level renderer_base::copy_hline(), copy_vline(),
Maxim> blend_hline(), blend_vline(), or, if you need to draw
Maxim> dashed/dotted lines, blend_solid_hspan(),
Maxim> blend_solid_vspan(). The latest require an array of
Maxim> "covers", that can be 0 for gaps and 255 for
Maxim> dashes. Intermediate values will be drawn with respective
Maxim> opacity.
Actually, I don't know that they will be exactly 1 pixel wide (but I
am drawing a coordinate grid so would like to align them to pixels).
I missed that the pixels were aligned to the 0.5 point rather than the
integer point.
Is the use of copy/blend hline/vline advised for efficiency or for
better rendering?
Thanks,
JDH
|