Shmelly Posted March 29, 2010 Share Posted March 29, 2010 Could somebody make a plugin for me that: Turns every pixel's color to your primary color. And, changes that pixels Alpha to your primary color's alpha, unless that pixel is completly transparent, and you check a certain checkbox. I would really appreciate it, I was planning to use this to gray out buttons, and things of that sort. :oops: Quote Come on, I don't Shmell THAT bad... Link to comment Share on other sites More sharing options...
jerry533482 Posted March 29, 2010 Share Posted March 29, 2010 couldn't you accomplish this with adjustments>black & white? Quote Space...The Final Frontier. -James Tiberius Kirk; circa 2260s My gallery: Jerry's Paint.NET creations My tuts: sun galaxy rings My youtube: http://www.youtube.com/jerry533482 YLOD VICTIM Link to comment Share on other sites More sharing options...
Shmelly Posted March 29, 2010 Author Share Posted March 29, 2010 Well, yes, I could. But, I also want this to recolor text, and other things, that need more that a Grayscale. Quote Come on, I don't Shmell THAT bad... Link to comment Share on other sites More sharing options...
Sarkut Posted March 29, 2010 Share Posted March 29, 2010 You could apply Boltbait's Transparency plugin set to fully Opaque, then: Magic Wand the remaining 100% Alpha while holding down the Shift key (50% tolerance), invert the selection, Paintbucket fill at 100% tolerance, with Overwrite blending. Quote Link to comment Share on other sites More sharing options...
Shmelly Posted March 29, 2010 Author Share Posted March 29, 2010 Thanks for your help, I fiddled around with some code, and I got something very near what I would like. However, I can't get codelab to create DLLs for me, could somebody build this, call it "Single Color", put it under "Color", and post a download link? It would be greatly appreciated. void Render(Surface dst, Surface src, Rectangle rect) { Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor; ColorBgra CurrentPixel; for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { CurrentPixel = src[x,y]; CurrentPixel.R = (byte)PrimaryColor.R; CurrentPixel.G = (byte)PrimaryColor.G; CurrentPixel.B = (byte)PrimaryColor.B; // CurrentPixel.A = (byte)PrimaryColor.A; dst[x,y] = CurrentPixel; } } } Quote Come on, I don't Shmell THAT bad... Link to comment Share on other sites More sharing options...
Sarkut Posted March 29, 2010 Share Posted March 29, 2010 Single Color Quote Link to comment Share on other sites More sharing options...
Shmelly Posted March 29, 2010 Author Share Posted March 29, 2010 Thanks. Quote Come on, I don't Shmell THAT bad... Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted March 29, 2010 Share Posted March 29, 2010 I think Mike Ryan's Silhouette Plus would have done the job. Silhouette converts the entire canvas into your selected color while preserving the alpha levels of each pixel. As well, you can also specify an alpha range in which to silhouette. This is usefull for object manipulation and for testing the transparency of the canvas is particular areas. Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
Shmelly Posted March 29, 2010 Author Share Posted March 29, 2010 Wow, that is much better. Thanks. Quote Come on, I don't Shmell THAT bad... Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.