L
L
likilix2017-06-20 14:24:53
Delphi
likilix, 2017-06-20 14:24:53

How to draw a clear line at an angle?

I use C++ Builder XE
To create a brush I use the function

TLogBrush lb = {BS_SOLID, RGB(91,155,213), 0};
   FPen = ExtCreatePen(PS_GEOMETRIC | PS_ENDCAP_SQUARE , 8, &lb, 0, 0);

I draw a line at an angle, and protrusions are obtained from its sides, how to remove them?
MoveToEx(FDC, 0, 0, 0);
  LineTo(FDC, 300, 450);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2017-06-20
@likilix

Google what antialiasing is. The simple answer is no way - you won't rotate the pixels.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question