ReMake Posted March 17, 2020 Share Posted March 17, 2020 This effect allows you to change the color intensity separately in the R, G, and B channels. It can be useful for giving a photo a retro effect or for changing the color of items in the image. Download from my PluginPack You can find this effect in Adjustments menu. The effect has a simple intuitive interface. Before: After: CodeLab source code: Spoiler // Name:Intensity RGB // Submenu: // Author:ReMake // Title:Intensity RGB // Version:1.0 // Desc:Adjusting the intensity of the R, G, and B channels separately // Keywords:paint.net|effect|intensity|rgb // URL:https://www.getpaint.net/redirect/plugins.html // Help: #region UICode IntSliderControl red = 215; // [0,255] Red IntSliderControl green = 75; // [0,255] Green IntSliderControl blue = 10; // [0,255] Blue #endregion void Render(Surface dst, Surface src, Rectangle rect) { Rectangle selection = EnvironmentParameters.SelectionBounds; ColorBgra CurrentPixel; for (int y = rect.Top; y < rect.Bottom; y++) { if (IsCancelRequested) return; for (int x = rect.Left; x < rect.Right; x++) { if (IsCancelRequested) return; CurrentPixel = src[x,y]; byte intensity = CurrentPixel.GetIntensityByte(); int R = (CurrentPixel.R*red + intensity*(255-red))/255; int G = (CurrentPixel.G*green + intensity*(255-green))/255; int B = (CurrentPixel.B*blue + intensity*(255-blue))/255; CurrentPixel.R = (byte)R; CurrentPixel.G = (byte)G; CurrentPixel.B = (byte)B; dst[x,y] = CurrentPixel; } } } private void OnWindowHelpButtonClicked(IWin32Window owner, string helpContent) { MessageBox.Show(owner, "Intensity RGB v1.0\n\nAdjusting the intensity of the R, G, and B channels separately.\n\nCopyright ©2020 by ReMake\nAll rights reserved.", "Intensity RGB", MessageBoxButtons.OK, MessageBoxIcon.Information); } and icon I hope you will like this effect and find a use for it. 3 Quote Link to comment Share on other sites More sharing options...
Vagabondi Posted March 17, 2020 Share Posted March 17, 2020 2 hours ago, ReMake said: I hope you will like this effect and find a use for it. Absolutely yes. 1 Quote my gallery is here Link to comment Share on other sites More sharing options...
ReMake Posted March 17, 2020 Author Share Posted March 17, 2020 A perfect illustration of the effect. Thank you for sharing, @Vagabondi. 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.