Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. using (GraphicsPath _Path = new GraphicsPath())
  2. {
  3. _Path.AddLine(mouseDownX, mouseDownY, mouseUpdX, mouseUpY);
  4. // Draw the shadow.
  5. mygraphics.TranslateTransform(3, 3); //displacement
  6. using (Pen _Pen = new Pen(Color.FromArgb(30, 0, 0, 0), hPen.Width))
  7. {
  8. _Pen.CustomStartCap = adjustableArrowCap_0;
  9. mygraphics.DrawPath(_Pen, _Path);
  10. }
  11. mygraphics.ResetTransform();
  12. }
  13. mygraphics.DrawLine(hPen, mouseDownX, mouseDownY, mouseUpdX, mouseUpY);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement