On 6/10/07, Dmitry Timoshkov <[EMAIL PROTECTED]> wrote: > "Evan Stade" <[EMAIL PROTECTED]> wrote: > > >> Any reason why are you creating a new pen in GdipDrawRectangleI, and while using > >> an existing one in GdipDrawLineI? > >> > >> -- > >> Dmitry. > >> > > > > Yes, the reason for that is the passed pen can have any endcap style, > > but to draw the rectangle the pen needs square endcaps. The same does > > not apply to DrawLine. > > Do you have a confirmation that native gdiplus does that as well? +relay,+snoop > trace, some other test? > > -- > Dmitry. >
Native GDI+ does its own rendering. For example, GDI+ drawline uses repeated stretchblts rather than GDI drawline. However, GDI drawline can be pretty close, if not pixel-for-pixel the same.