Jump to content

kbarni

Newbies
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

1

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I updated the original plugin, still using my codelabs version. You can download it in the original post! This fixes just the nasty edge bug, there is no other change. Thanks for the quick modification, MadJik, I think I'll modify your version too (when i'll have time)!
  2. And sorry I didn't post any screenshots, here's mine, a real example with lens distortion: On the original I marked the distorted edgees with red dotted line. There are lenses with even stronger distortions (especially the wide angle zoom lenses). I hope you find this plugin usefull.
  3. Good people, here's the code for CodeLabs! Have fun playing with it, I hope you'll make it even cooler! int Amount1=-20; //[-50,50] Amount per thousand(°/oo) float [] rd = null; int Achange=0; //To verify if there is a slider change void Render(Surface dst, Surface src, Rectangle rect) { float Percent= (float)(Amount1 / 500.0f); // Distortion percent PdnRegion selectionRegion = EnvironmentParameters.GetSelection(src.Bounds); Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); int w,h,x0,y0,w2,h2,raymax; float xd,yd,rdcur,ru; w
  4. Hello, Here is a simple plugin to correct the barrel or pincushion distortions in digital photos. (More information about these distortions in wikipedia article) You can download the plugin here: kb_lens.zip To use it simply unzip it to c:/Program Files/Paint.NET/Effects/, the plugin is in Filters->Photo->Distortion Here is an example of the plugin usage. On the first photo you can see the effect of the lens distortion (I traced it with dotted red line), which was eliminated in the second image using the plugin: T
×
×
  • Create New...