ownage

Members
  • Content count

    13
  • Joined

  • Last visited

Community Reputation

0

About ownage

  • Birthday 01/01/1970
  1. can you resize each layer of an image independently?
  2. I suggest a polygonal selection feature.
  3. I think the color picker tool should also display the coordinates of the pixel being picked.
  4. you can get a pencil sketch kind of effect. intensity of the filter is controlled by the size of the filter kernel matrix, bigger matrix = higher intensity.
  5. Compiled DLL TOON.zip Just unzip this file and save the dll file in your /Program Files/Paint.NET/Effects folder. Code Lab Code // filter kernel const int size = 5; // odd number //play around with the matrix for interesting effects. int[,] conv = new int[size, size] { {-1, -1, -1, -1, -1}, {-1, -1, -1, -1, -1}, {-1, -1, 30, -1, -1}, {-1, -1, -1, -1, -1}, {-1, -1, -5, -1, -1}, }; unsafe void Render(Surface dst, Surface src, Rectangle rect) { int radius = (size-1)/2; for(int y = rect.Top; y < rect.Bottom; y++) { int top = y - radius, bottom = y + radius; if (top < 0) top = 0; if (bottom >= dst.Height) bottom = dst.Height - 1; for (int x = rect.Left; x < rect.Right; x++) { int left = x - radius, right = x + radius; int c = 0, s = 0, r = 0, g = 0, b = 0; if (left < 0) left = 0; if (right >= dst.Width) right = dst.Width - 1; for (int v = top; v <= bottom; v++) { ColorBgra *pRow = src.GetRowAddressUnchecked(v); int j = v - y + radius; for (int u = left; u <= right; u++) { int i = u - x + radius; int w = conv[i, j]; ColorBgra *pRef = pRow + u; r += pRef->R * w; g += pRef->G * w; b += pRef->B * w; s += w; c++; } } dst[x, y] = ColorBgra.FromBgr( Utility.ClampToByte(b), Utility.ClampToByte(g), Utility.ClampToByte(r)); } } }
  6. You can use Ndoc to automatically generate the API documentation from the source code. http://ndoc.sourceforge.net/ or Doxygen http://www.stack.nl/~dimitri/doxygen/do ... #latestsrc
  7. you can try apply a bilinear filter if you want to smooth the jaggies.
  8. like this http://www.jaist.ac.jp/~h-yabu/cgi-bin/ ... gent%2Ezip
  9. basically smart cut and paste http://www.cs.toronto.edu/~faisal/teach ... -SIG95.pdf
  10. Do you plan to add Intelligent Scissor to paint.net in the future?
  11. Is it possible to save a image as a true grayscale image(only have 1 intensity channel, instead of 3 R, G, B channels)?
  12. how can you convert a colorimage into a grayscale image?