Profile Picture

Provide two color in a rectangle

Posted By shweta jain 3 Months Ago
Author
Message
shweta jain
Question Posted 3 Months Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 2 Months Ago
Posts: 0, Visits: 104
Hello
I want to divide a rectangle into two color. For creating rectangle I have used NGraphicsPathSeries.
How can I fill rectangle like I have attached image.https://www.nevron.com/forum/uploads/images/e5be8cce-9e59-45d1-acf4-fa6c.png

Nevron Support
Posted 3 Months Ago
View Quick Profile
Supreme Being

Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 2,879, Visits: 3,045
Hi Shweta,
Each graphics path can only have one fill and border. This is by design. In order to draw the above you need to have three graphics path series - two without border and with different colors representing the bars and another one without filling representing the border. Let us know if you have any questions.


Best Regards,
Nevron Support Team



shweta jain
Posted 3 Months Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 2 Months Ago
Posts: 0, Visits: 104
How to create rectangle without border?

Nevron Support
Posted 3 Months Ago
View Quick Profile
Supreme Being

Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 2,879, Visits: 3,045
Hi Shweta,
Simply assign the StokeStyle of the graphics path to null or to stroke with zero width:
graphicsPathSeries.StrokeStyle = new NStrokeStyle(0.0f, Color.Black);


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic