Sign in to follow this  
dan9298

Radius Corners - Plugin for rounding the corners of an image

Recommended Posts

I did not see any plugins for rounding the corners of an image (like below), so I decided to create one. The effect DLL is attached to this post. The plugin requires the .NET framework 3.5, so you will have to install it, if you do not already have it. The source code, and additional information is available here:

http://dan9298.blogs...r-rounding.html.

normalsnorkelfinsmask3oe4.jpg

rfcuibn5.jpg

RadiusFillCorners.zip

Share this post


Link to post
Share on other sites

Very well done! Many requests can be easily answered with this plugin.

The plugin requires the .NET framework 3.5, so you will have to install it, if you do not already have it.
When the next iteration of Paint.NET is released, 3.50, it will brandish the .NET F/work 3.5 SP1, requiring everybody to have it installed, so you won't have to worry about that too much.

Share this post


Link to post
Share on other sites

It's great, but the "Fill" submenu you created only has one effect...And personnaly I find a submenu good when there are at least 4 effects inside. Because if not we would have like 20 submenus with 2 plugins in each ^^ (that's my point of view, you could place it in Stylize, for example)

Oh, and I got something really weird when I tried to put 400 radius :shock:

Share this post


Link to post
Share on other sites

Thanks to everyone for the positive feedback!

Aethec - I agree that a submenu does not make much sense unless it contains multiple items. I originally decided to create the submenu because I have ideas for a few more effects that will fit well in this category (but it’s hard to say if I will ever get around to creating them).

About the 400 radius, you will definitely get some strange results if the radius if is greater than the midpoint of the height or width of the image (the code was not designed or intended for this). Perhaps it would be better to limit the radius in the code.

I will think things over and try to post an update in the near future.

Share this post


Link to post
Share on other sites

AWESOME PLUGIN DAN!!! WOW! This thing just saved me an hour of time! I used to median blur and do all that jazz.. but this thing just helped me round the corners of some text that used to take forever! Great job! Many many thanks!

Share this post


Link to post
Share on other sites
AWESOME PLUGIN DAN!!! WOW! This thing just saved me an hour of time! I used to median blur and do all that jazz.. but this thing just helped me round the corners of some text that used to take forever! Great job! Many many thanks!
Seriously bro this is going to help a lot, I just found it in one of my monthly plugin downloading hunts! :)

Share this post


Link to post
Share on other sites

Thanks again to everyone for the feedback. Somehow I had missed Curtis' Rounded Rectangle plugin, otherwise I probably would not have taken the time to create this one. However, I think it's nice to have choices.

Anti aliasing is a great idea, and I will look to see what it would take add it.

Share this post


Link to post
Share on other sites

It just errors for me:-

File: C:\Program Files\Paint.NET\Effects\RadiusFillCorners.dll

Effect Name: RadiusFillCorners.EffectPlugin

Full error message: PaintDotNet.WorkerThreadException: Worker thread threw an exception ---> System.IO.FileNotFoundException: Could not load file or assembly 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

File name: 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

at RadiusFillCorners.EffectPlugin.Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, Int32 startIndex, Int32 length)

at PaintDotNet.Effects.BackgroundEffectRenderer.ThreadFunction()

WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

--- End of inner exception stack trace ---

at PaintDotNet.Effects.BackgroundEffectRenderer.Join()

at PaintDotNet.Effects.BackgroundEffectRenderer.Start()

at PaintDotNet.Menus.EffectMenuBase.<>c__DisplayClassb.b__8(Object sender, EventArgs e)

Share this post


Link to post
Share on other sites

It just errors for me:-

File: C:\Program Files\Paint.NET\Effects\RadiusFillCorners.dll

Effect Name: RadiusFillCorners.EffectPlugin

Full error message: PaintDotNet.WorkerThreadException: Worker thread threw an exception ---> System.IO.FileNotFoundException: Could not load file or assembly 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

File name: 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

at RadiusFillCorners.EffectPlugin.Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, Int32 startIndex, Int32 length)

at PaintDotNet.Effects.BackgroundEffectRenderer.ThreadFunction()

WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

--- End of inner exception stack trace ---

at PaintDotNet.Effects.BackgroundEffectRenderer.Join()

at PaintDotNet.Effects.BackgroundEffectRenderer.Start()

at PaintDotNet.Menus.EffectMenuBase.<>c__DisplayClassb.b__8(Object sender, EventArgs e)

Share this post


Link to post
Share on other sites
On 11/9/2008 at 2:20 PM, dan9298 said:

I did not see any plugins for rounding the corners of an image (like below), so I decided to create one. The effect DLL is attached to this post. The plugin requires the .NET framework 3.5, so you will have to install it, if you do not already have it. The source code, and additional information is available here:

http://dan9298.blogs...r-rounding.html.

normalsnorkelfinsmask3oe4.jpg

rfcuibn5.jpg

RadiusFillCorners.zip

I have the 'radiusFillCorners.dll' in my effects folder. I have used it before. However, I cannot find it in 'effects.' 

 

Is there a search available for items in 'effects?' Where can I find the 'radiusFillCorners' in 'Effects?'

Edited by pat71896

Share this post


Link to post
Share on other sites

Well, I no longer have the memory I used to have. I forget very quickly the steps I did and the effects I used. Thanks to the Plugin Browser and the Plugin Index I get around. Thanks @toe_head2001 and @Ego Eram Reputo. :) 

Share this post


Link to post
Share on other sites

Thanks for all answers. I finally found it. Effects/stylize/radiusfillcorners

 

What new version? I am off to find that. I did not get a notice of an upgrade but thank for the information.

 

Pat

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this