Jump to content
How to Install Plugins ×


Recommended Posts

Hello! It's my first Paint.NET plugin. It's not complete yet but it works (to a greater or lesser extent) and I'd like to show what I've done.

The main point of the plugin is easy - it shatters a picture to fragments. Fragments are placed on a rectangle matrix.



The plugin's config has 5 parameters:

Count of Columns = number of columns of a matrix of fragments (integer, >=1)

Count of Rows = number of rows of a matrix of fragments (integer, >=1)

Shifting (pixels) shows a distance between fragments (integer, >=0)

Fluctuation (%) shows how much fragments differ from rectangle (integer, >=0, <=100)

Max Angle (degrees) shows how much fragments rotate (integer)

In this plugin I've used Interpolation function I had found in AdvancedRotate plugin by Stuart Radforth. Stuart, I hope you don't mind. boltbait.smile.png

Please, don't forget it's only a beta version! The general disadvantages are it has no anti-antialiasing and it works slow. VERY SLOW I mean boltbait.smile.png. You can help me to cope with the second problem here, I'd really appreciate it. Good news is the plugin has no bugs as far as I know.



Edited by black2hack
Link to comment
Share on other sites

I tried it. The canvas doesn't seem to update when you change the parameters. This leaves you blind in trying to figure things out.

Link to comment
Share on other sites

It's a lot easier if you just use IndirectUI. Instead of deriving from Effect, derive from PropertyBasedEffect. All that WinForms nonsense just vanishes into a cloud of stress relieving helpfulness.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html


Link to comment
Share on other sites

Very similar now that you come to mention it.

Link to comment
Share on other sites

I can already think of several uses for this. Can't wait for the updates!

No, Paint.NET is not spyware...but, installing it is an IQ test. ~BoltBait

Blend modes are like the filling in your sandwich. It's the filling that can change your experience of the sandwich. ~Ego Eram Reputo

Link to comment
Share on other sites

2yellowman. No, it's a different effect. Firstly, fragments can be not only regular rectangles. Seconly, fragments are unaffected parts of an initial picture.

You are right, it is actually different, I thought it is not working, then realized it is very slow on my PC, and when I tried it on a small size (200x150) I saw the effect, it is rotating the pieces in random angles, right?

Link to comment
Share on other sites

2pdnnoob. Thank you, I'll do my best =)

2yellowman. Yes. Max Angle defines a maximum angle of random rotations of fragments, Fluctuation defines maximum deviation of fragments from regular rectangles. The more size of a picture and a count of fragments the more time of rendering. I gotta make ROI system work. When I do it rendering process will be much faster.

Btw, I still don't understand how ROI actually works and why it reduces time of rendering. If you wish to explain it, please follow here and leave your message after the beep.

Link to comment
Share on other sites

Link to comment
Share on other sites

ROI = Rectangle of Interest (a number of grouped pixels)

Really basically: Paint.net divides the effects 'work' into manageable hunks. Hunks = ROI. A dual core processor (for e.g.) may process two hunks simultaneously, so dividing up the work into chunks allows for faster processing on multi-core processors.

Think of it like this:

A builder has a brick wall to build containing 1000 bricks.

He can do it all himself - but it takes 10 hours at 100 bricks an hour.

If his mate helps, they can build the wall in 5 hours (combined speed of 200 bricks an hour).

If all his mates help (20 of them) they can build the wall in 30 minutes.

Now substitute pixels for bricks, and processing cores for mates and you'll begin to understand why passing the work in small units (ROI) can make the work much easier and faster.

  • Upvote 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...