Group: Forum Members
Last Active: 3 Years Ago
Posts: 16,
Visits: 192
|
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.
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
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
|
Group: Forum Members
Last Active: 3 Years Ago
Posts: 16,
Visits: 192
|
How to create rectangle without border?
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
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
|