Illnab1024
Members-
Posts
1,178 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Illnab1024
-
Looking for "Channel Mixer" for RGB2BW
Illnab1024 replied to ursart's topic in Paint.NET Discussion and Questions
I'm workin' on it... And here it is: http://paintdotnet.12.forumer.com/viewtopic.php?t=4242 -
The Pictorium! Post your created or edited images here!
Illnab1024 replied to aatwo's topic in The Pictorium
#2 Finally! Nice drawing, nice cartoon, and can't wait to see more super jesus extreme! -
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.
-
This is just odd zoom resampling, and the grid is an effect of the brain's tendency to "complete" lines (an illusion, then.)
-
Paint.net crashed today after I installed new version
Illnab1024 replied to Dakota's topic in Troubleshooting & Bug Reports
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%?) -
The Pictorium! Post your created or edited images here!
Illnab1024 replied to aatwo's topic in The Pictorium
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. -
The Pictorium! Post your created or edited images here!
Illnab1024 replied to aatwo's topic in The Pictorium
Border too... pink. Try red. -
What feature do you think Pdn needs the most?
Illnab1024 replied to Picc84's topic in Paint.NET Discussion and Questions
That's 4.0 stuff, Down. I think it has been suggested, can't remember where. -
Interlace plugin (updated 2007/04/17)
Illnab1024 replied to tunedude's topic in Plugins - Publishing ONLY!
Sounds to me like his math isn't based on the proper rectangle values -
Icon, Cursor, and Animated Cursor Format v3.7 (May 2010)
Illnab1024 replied to evanolds's topic in FileType Plugins
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. -
!!! Are you having problems Installing or Uninstalling? ^Check that first.
-
The Pictorium! Post your created or edited images here!
Illnab1024 replied to aatwo's topic in The Pictorium
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? -
Pretty nice; every image is unique compression-wise.
-
Icon, Cursor, and Animated Cursor Format v3.7 (May 2010)
Illnab1024 replied to evanolds's topic in FileType Plugins
Make sure your saving at 256x256 and not 246x246. -
The Pictorium! Post your created or edited images here!
Illnab1024 replied to aatwo's topic in The Pictorium
jpope, May I join the list of people who hate you? -
*Finished* SOTW #1 (Easter) Congrats to BuzzKill!
Illnab1024 replied to jake2k's topic in Paint.NET Discussion and Questions
There's mine -
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.
-
Holy jesus this is pretty! With a little polar to rect ()
-
HELP! Polar To Rect Conversion (In Codelab)
Illnab1024 replied to El Sid's topic in Plugin Developer's Central
That's just a quality issue. -
HELP! Polar To Rect Conversion (In Codelab)
Illnab1024 replied to El Sid's topic in Plugin Developer's Central
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) -
Two (and a half) ideas for Paint.NET
Illnab1024 replied to deathstroke50's topic in Paint.NET Discussion and Questions
They're poking fun at how long it will take. My guess is v4.5, after the recoding. But meh. -
HELP! Polar To Rect Conversion (In Codelab)
Illnab1024 replied to El Sid's topic in Plugin Developer's Central
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.