Profile Picture

Provide two color in a rectangle

Posted By shweta jain 4 Years Ago
Author
Message
shweta jain
Question Posted 4 Years Ago
View Quick Profile
Junior Member

Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)

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.https://www.nevron.com/forum/uploads/images/e5be8cce-9e59-45d1-acf4-fa6c.png

Nevron Support
Posted 4 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

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



shweta jain
Posted 4 Years Ago
View Quick Profile
Junior Member

Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 16, Visits: 192
How to create rectangle without border?

Nevron Support
Posted 4 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

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





Similar Topics


Reading This Topic