Jump to content

Illnab1024

Members
  • Posts

    1,178
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Illnab1024

  1. I'm workin' on it... And here it is: http://paintdotnet.12.forumer.com/viewtopic.php?t=4242
  2. #2 Finally! Nice drawing, nice cartoon, and can't wait to see more super jesus extreme!
  3. Looking around PdnLib (Or PaintDotNet.Core...), I found two nice little classes used mainly in the Colors form. CurrentPixel = src[x,y]; CurrentPx = CurrentPixel.ToColor(); HsvColor hsv = HsvColor.FromColor(CurrentPx); Px2 = hsv.ToColor(); Pixel2 = ColorBgra.FromColor(Px2); dst[x,y] = Pixel2; There's a demo of the functions you need, and they seem to work with the Effects API.
  4. This is just odd zoom resampling, and the grid is an effect of the brain's tendency to "complete" lines (an illusion, then.)
  5. If it's a OoM, that's my plugin's fault. It's screwy like that, and I can't fix the bug with the Effects API... I dunno about the recolor tool; maybe you're not using it properly (tolerance bar = 0%?)
  6. Just wait till v3.07, kay? Then you'll be happier. Might even become the Buddha's twin brother, too. I dunno.
  7. usedHonda: Whenever I get one of those I end up hurting myself trying to destroy it (I've used fire, a vice, a hammer, bare hands, throwing, and once tried to spin it fast enough to tear it apart (a chunk was missing from it)). All I got was a few scars and 1 million pieces of burnt AOL disks.
  8. That's 4.0 stuff, Down. I think it has been suggested, can't remember where.
  9. Sounds to me like his math isn't based on the proper rectangle values
  10. 246 ? how can u save in 246 anyway so i dont see the reason of your reply :S this option doesnt exist so i can make that mistake :S It existed when I tried to save the ico file; so, make sure you are using the latest version of the plugin, too.
  11. !!! Are you having problems Installing or Uninstalling? ^Check that first.
  12. The only time I ever read any portion of the help file was small bits of proofreading and when it was referenced in a few posts.
  13. He just had horrible focus, usedHonda. Don't fret. Nice idea, though. Funny Squirrel looks kinda fat. How many acorns you got in that park?
  14. Pretty nice; every image is unique compression-wise.
  15. bool [,] surfaceIndex = null; int div = 40000; int treshold = 200; int distanceX = 5; int distanceY = 5; int color_element; bool applyFilter = true; // if (false) { tresholding_only(); } unsafe void Render(Surface dst, Surface src, Rectangle rect) { surfaceIndex = new bool[rect.Right,rect.Bottom]; for (int y = rect.Top; y < rect.Bottom; ++y) { for (int x = rect.Left; x < rect.Right; ++x) { ColorBgra color = src[x, y]; // RGB to grayscale color_element = (byte)((double)color.R * 0.299 + (double)color.G * 0.587 + (double)color.B * 0.114); if (!applyFilter) // tresholding only { dst[x, y] = (color_element > treshold) ? ColorBgra.FromBgra(255, 255, 255, 255) : ColorBgra.FromBgra(0, 0, 0, 255); } else // if applyFilter { // clear destination image dst[x, y] = ColorBgra.FromBgra(255,255,255, 255); // store position matrix surfaceIndex[x, y] = ((x % distanceX == 0) && (y % distanceY == 0) && (color_element < treshold)); } // endof if applyFilter } // foreach(x) } // foreach(y) if (applyFilter) { // second pass for (int y = rect.Top; y < rect.Bottom; ++y) { for (int x = rect.Left; x < rect.Right; ++x) { if (surfaceIndex[x,y]) { // draw square 4x4 pixel for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { dst[x + i,y + j] = ColorBgra.FromBgra(128, 0, 0, 255); } } // graphics.DrawString() } } // foreach(x) } // foreach(y) } // if applyFilter } Laziness rules, BoltBait.
  16. Holy jesus this is pretty! With a little polar to rect ()
  17. Not Perfect how? rect to polar consumes a looooot of quality from the image (y row is just a little better than half quality, x row is worse at the top and better at the bottom)
  18. They're poking fun at how long it will take. My guess is v4.5, after the recoding. But meh.
  19. Okay, I got it. You weren't thinking in the right direction int Amount1=0; //[0,100]Slider 1 Description int Amount2=0; //[0,100]Slider 2 Description int Amount3=0; //[0,100]Slider 3 Description void Render(Surface dst, Surface src, Rectangle rect) { Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); float width = dst.Bounds.Right - dst.Bounds.Left; long CenterX = (long)(((selection.Right - selection.Left) / 2)+selection.Left); long CenterY = (long)(((selection.Bottom - selection.Top) / 2)+selection.Top); float r, theta, offx, offy, setx, sety; for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { r = y/2; theta = (float)((System.Math.PI*2)*(x/width)); offx = (float)(r*System.Math.Cos(theta)); offy = (float)(r*System.Math.Sin(theta)); setx = (float)(CenterX+offx); sety = (float)(CenterY-offy); dst[x,y] = src.GetBilinearSample(setx, sety); } } } It's actually rather simple.
  20. Please don't type in CAPS (I'm sure it's a rule, and it's annoying) Also, three exclamation points ("!") are enough.
×
×
  • Create New...