Rounded Rectangle Region

  • Thread starter Thread starter Sanjay
  • Start date Start date
S

Sanjay

hi,

I want to create RoundRectRegion in .net.
We used to have createRoundRectRegion API in vb6.
Does .net frameWork has anything to achieve the same.I also don't find any
method to
create Rounded Rectangle.
plz suggest me how to go about it.

sanjay singh
 
Sanjay said:
I want to create RoundRectRegion in .net.
We used to have createRoundRectRegion API in vb6.
Does .net frameWork has anything to achieve the same.I also don't find any
method to
create Rounded Rectangle.

You can create a 'GraphicsPath' of appropriate shape (code shown in
<URL:http://dotnet.mvps.org/dotnet/code/graphics/#RoundCorners>) and then
create a 'Region' object based on the path (see 'Region''s constructors).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top