ReMake Posted September 16, 2015 Share Posted September 16, 2015 This is very simple effect which allows to eliminate dark or light areas of the image. Good deletes black or white color (as a special case of dark or light, respectively). The effect has a very simple interface. You can find it under Effects-> Color-> Eliminate Dark/Light. Download from my PluginPack Original image: Eliminate dark areas: Eliminate light areas: Below the sourse code for CodeLab. // Author: ReMake // Submenu: Color // Name: Eliminate Dark/Light // Title: Eliminate Dark/Light v1.0 ReMake 2015 // Desc: The Paint.Net effect eliminating dark or light areas of the image // Keywords: paint.net|effect|eliminate|dark|light // URL: http://www.getpaint.net/redirect/plugins.html #region UICode byte Amount1 = 0; // [1] Eliminate|Dark|Light #endregion void Render(Surface dst, Surface src, Rectangle rect) { ColorBgra CurrentPixel; for (int y = rect.Top; y < rect.Bottom; y++) { if (IsCancelRequested) return; for (int x = rect.Left; x < rect.Right; x++) { CurrentPixel = src[x,y]; int R = CurrentPixel.R; int G = CurrentPixel.G; int B = CurrentPixel.B; int A = CurrentPixel.A; if (A != 0) { switch (Amount1) { case 0: // Dark A = Math.Max(Math.Max(R, G), В); break; case 1: // Light A = 255 - Math.Min(Math.Min(R, G), В); break; } } CurrentPixel.A = Int32Util.ClampToByte(A); dst[x,y] = CurrentPixel; } } } This is аn icon for the effect: P.S. I decided to start a new topic, because the former name of the topic Eliminate Black/Eliminate White was wrong. 6 Quote Link to comment Share on other sites More sharing options...
Eli Posted September 16, 2015 Share Posted September 16, 2015 Thanks Mr ReMake! 1 Quote Link to comment Share on other sites More sharing options...
Pixey Posted September 16, 2015 Share Posted September 16, 2015 Thank you so much @Remake. I loved your last one, so I know I will love this one too 1 Quote How I made Jennifer & Halle in Paint.net My Gallery | My Deviant Art "Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon. Link to comment Share on other sites More sharing options...
Oceana Posted September 16, 2015 Share Posted September 16, 2015 Thank you Remake, a useful plugin 1 Quote Link to comment Share on other sites More sharing options...
Maximilian Posted September 16, 2015 Share Posted September 16, 2015 Congrats on the new release, Remake! 1 Quote Link to comment Share on other sites More sharing options...
ReMake Posted September 16, 2015 Author Share Posted September 16, 2015 Thanks Mr ReMake! Thank you so much @Remake. I loved your last one, so I know I will love this one too Thank you Remake, a useful plugin Congrats on the new release, Remake! Thanks to all. I hope this effect will be useful to many users. Quote Link to comment Share on other sites More sharing options...
AgentGoodspeed Posted September 16, 2015 Share Posted September 16, 2015 Could you please post an example of what this effect does? Quote Link to comment Share on other sites More sharing options...
ReMake Posted September 16, 2015 Author Share Posted September 16, 2015 Could you please post an example of what this effect does? See an old topic Eliminate Black/Eliminate White. Quote Link to comment Share on other sites More sharing options...
Seerose Posted September 17, 2015 Share Posted September 17, 2015 ReMake! Thank you so much for the new version. The picture from your own garden. **** Original Photo ======================= 1 Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi Link to comment Share on other sites More sharing options...
AgentGoodspeed Posted September 17, 2015 Share Posted September 17, 2015 See an old topic Eliminate Black/Eliminate White. Cool, thanks Quote Link to comment Share on other sites More sharing options...
ReMake Posted April 20, 2020 Author Share Posted April 20, 2020 (edited) Version 1.1 - added a help file and both interfaces (en and ru) are merged into one plugin. Added new images. Edited April 20, 2020 by ReMake 2 1 Quote 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.