i am abstract class line class
Draw multiple line using abstract class
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Maen BadwanRank #2,520 · 556 reputationPosted Sep 8, 2016, 6:46 AM EDT
I am attaching the modified project for your reference.
Also, I have created a new class named PointsForRect that can hold four points. You can use these points to pass the required values to the this.CreateGraphics().DrawRectangle method to draw rectangles.
However, if you are looking for creating and drawing lines, rectangles, and different shapes on images, you can try more advanced options by trying the Annotations features from LEADTOOLS development SDK. You can find more details in this forum post I made:
https://support.leadtools.com/SupportPortal/CS/forums/44616/ShowPost.aspx
Disclaimer: I work for LEAD.