Search the Community

Showing results for tags 'adjustments'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Information
    • Forum Rules
    • Paint.NET Search
    • Official Paint.NET website
    • Help Files (the official documentation)
  • Paint.NET
    • Paint.NET Discussion and Questions
    • The Pictorium
    • Tutorials - Publishing ONLY!
    • Competitions
    • Plugins - Publishing ONLY!
    • Troubleshooting & Bug Reports
  • Off-Topic
    • Grand Theory of Everything
  • Paint.NET Programming / Development
    • Plugin Developer's Central
    • Preview Center
    • Translation and Localization

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL









Found 17 results

  1. Plugin: This is a trivial but sometimes useful adjustment that converts all transparent pixels to transparent white. I already had a plugin to convert transparent pixels to transparent black, but for those who only want to make all the transparent pixels the same color, transparent white may be preferable, since that's Paint.NET's usual transparent color. For example, it's the color used for Erase Selection.
  2. This plugin is all about "dimming" a certain channel, which means desaturating the highest-saturation pixels first and working its way down smoothly. There are also other RGB adjustment algorithms that add fine adjustment. First, let's look at the menu. ((NOTE)): Default settings should have all X-axis's set to 1.00. This makes the image appear as itself. Apologies, since I'm dealing with limitations in Codelab here. Red -- X axis -- Adjusts the red channel according to the "dimmer" algorithm. Red -- Y axis -- Adjusts the red channel according to a standard "levels" type algorithm. Green -- X axis -- Adjusts the green channel according to the "dimmer" algorithm. Green -- Y axis -- Adjusts the green channel according to a standard "levels" type algorithm. Blue -- X axis -- Adjusts the blue channel according to the "dimmer" algorithm. Blue -- Y axis -- Adjusts the blue channel according to a standard "levels" type algorithm. Proportional Shift -- Alters the Y-axis levels algorithm so the color shift is proportional to the distance between the current value and the max or min values. If that's confusing for you (it is!), here's a better explanation. If you use the in-built "levels" plugin in, say, red, it will raise or lower the red channel's value globally. So if you have a piece where one section has a red value of 60 and another section has a red value of 200, the "levels" algorithm will raise them both by a fixed amount. So the 60-red will now be 64-red and the 200-red will now be 204-red. More saturated sections will max out at 255, while all other red channels increase by that fixed amount. The Y-axis of each part of this plugin will follow this algorithm perfectly. However, if you turn on the "proportional shift" option, the channel will instead increase by a proportional amount. 155-red would increase to 205-red, while 55-red would increase to 155-red, because in both cases it's increasing by half the distance to 255. If you go in the negative direction, the setting would decrease each by its distance to 0, so for example 50-red would decrease to 25-red, while 100-red would decrease to 50-red. Combined with the fact that black pixels are ignored on the decrease and white pixels are ignored on the increase, this option gives a smoother color transition. Now, the X-axis algorithm is more complicated. What this does is "dims" a channel by decreasing the saturation, starting with the most saturated pixels and ending with the least. So your 255-reds and 244-reds are the first to be desaturated, while the 30-reds, etc wait until lower settings. The algorithm is set up in such a way that there are no jagged pixels, so this too is a smooth transition. Combined together, the two algorithms give a fine adjustment of all three channels. I stuck the controls into a double vector so it's easier to make adjustments without switching between sliders. It's hard to give examples of this plugin's use because the settings can be subtle. Nonetheless: Seed Image "Dimmed" Blue to 38. Same as above, but "leveled" blue to 0.47 Same as above, but proportional Unrelated to the above; increased all levels to the max with "proportional" on. Also unrelated; decreased all levels to the minimum with proportional on, and then dimmed blue to 0.49 Actual Plugin: Color
  3. I know, very specific. This was made for a request I got from my friend ugng. He told me to publish it here in case some random dude comes up and wants to use this for whatever reason. Anyway! Posterize Alpha Limits the amount of steps in an alpha channel. Like posterize but for alpha channel Enjoy this spicy gif I made. Does this gif work? It doesn't work in the post preview. Hopefully it does. Love you all! UPDATE: added icon made by ugng alphalevels.dll
  4. Black and White+ is a simple plugin to convert an image to black and white. The primary additional option (that may or may not merit the "+") is the ability to specify the weights for each color channel. It's in the Adjustment menu. The plugin: The Help Menu description: Black and White+ converts a color image to a grayscale (or two-color) image. The controls are: Red Weight: The weight for the red channel when converting from color to brightness. Green Weight: The weight for the green channel when converting from color to brightness. Blue Weight: The weight for the blue channel when converting from color to brightness. Minimum-Channel Weight: The weight for the minimum channel when converting from color to brightness. Maximum-Channel Weight: The weight for the maximum channel when converting from color to brightness. Normalize Weights: When enabled, the weights will be divided by their sum so that the total weight is one. (Note: If only a single channel is non-zero, normalizing the weights will cause it to always have a weight of one.) Brightness: Increases or decreases the brightness. MIdpoint Adjustment: Increases or decreases the brightness of the center values while not affecting the lowest and highest values. Use Primary Color and Secondary Color: When enabled, the brightness will be used to interpolate between the Primary Color and the Secondary Color instead of black and white. Show Original Image: When enabled, the unmodified image will be displayed. The CodeLab code: The icon: Maximilian has a 3.5.11 version. EDIT (6/17/2018): Version 1.1. Added controls for min and max color channels. EDIT (6/18/2018): Version 1.1.6744.2631. Corrected website URL.
  5. This plugin allows to you adjust the saturation of the red, green and blue colors each one separately. You can find this effect in Adjustments menu. Incompatible with 3.5x. Examples of the plugin work: @ingwer has made amazing video about use of this effect. See the topic CodeLab - First Steps (Saturation RGB) for information about how to create this effect. I hope this effect will be applied in your work.
  6. Download from my plugin set Get some really cool presets by ssaamm: Here's what Rick Brewster has to say on the matter: Paint.NET Plugin spotlight: Curves+ This adjustment appears in the Adjustments menu. Amazing! Adjustments > Curves+ Curves+ is exactly like the Curves adjustment that comes with Paint.NET. OK, not really. It is actually far more powerful. Enjoy Download from my plugin set For developers:Curves+ is on GitHub!
  7. Download from my plugin set Tutorial by forum moderator David Atwell: The Wonderful World of Gradient Mapping Get some nice gradients here: Presets for Gradient Mapping by ReMake This adjustment appears in the Adjustments menu. Amazing! Adjustments > Gradient Mapping Use this plugin to create a custom gradient and map it to your image based on any supported input channel. One of the primary uses of this plugin is to create a multi-colored gradient. Just use Paint.NET's built-in gradient tools to draw the gradient shape you want, then use this plugin to create your desired gradient. Download from my plugin set For developers: Gradient Mapping is on GitHub!
  8. Transparent to Transparent Black is an utterly trivial Adjustment that changes all the transparent pixels to transparent black (0, 0, 0, 0). It can sometimes be useful, particularly when using the Texture Merger. DLL, Version 1.0: The code:
  9. Overview This plugin lets you change the RGB, HSV, or alpha channel of the image. It replaces my old Saturation to Alpha plugin and a lot of other users' channel-manipulating plugins. After choosing a channel to manipulate, you can perform arithmetic operations, inversion, channel swapping, contrast and truncation. Located in the Adjustments tab. Purpose and Application I find this useful mainly to set the alpha of an image and colorize a grayscale image, since you can't color a grayscale image using the Hue/Saturation tool if it has 0 saturation. Truncation makes a neat 4-bit or 8-bit effect, I suppose. Options Invert: Takes the maximum value of the channel and subtracts the current value from it, then overwrites the current value with this new one. Overwrite: Choose a channel, then choose a second channel to replace it. The value of the first channel is overwritten by the value of the second channel. This does not swap their values. Set: Directly set the value of a channel. Sharpen: Increase the contrast of the channel. This does not decrease contrast. Add: Add a value to each pixel in the selected channel. Subtract: Subtract a value to each pixel in the selected channel. Multiply: Multiply a value to each pixel in the selected channel. Divide: Divide a value to each pixel in the selected channel. Make less than: Clamps the maximum value of each channel to the set value. Make greater than: Clamps the minimum value of each channel to the set value. Truncate: Makes all values in the selected channel multiples of the set value. Remarks This effect can closely simulate my "color to alpha" and "truncate resolution" plugins. It can simulate the "Transparency" plugin perfectly. It can simulate BoltBait's "gray to alpha" fairly well. It can perform "Black and White" and "Invert Colors". I will probably update this at some point to make it more professional and allow multiple-channel adjustments at one time. Download: Channel Operations Source code: Github Source code usage before the MIT license was applied is not restricted by that license. I just had to choose a license because "no license" was ambiguous.
  10. SubLCD This is a usability update of @xrl's original SubLCD resize plugin. See changelog below. Adjustments -> SubLCD Features Example Images Before (Actual and Zoomed-in) After (Actual and Zoomed-in) Changelog v1.2 by toe_head2001 (Jan 9, 2016) Fixed: Now works properly on selections (for real this time). Rectangular selections worked, but non-rectangular did not. Fixed: Now works when run from the 'Plugin Browser' v1.1 by toe_head2001 (Oct 9, 2015) New: Pre-resize and post-crop are no longer necessary. Simply run the plugin. New: Now works properly on selections v1.0 by xrl (Jan 15, 2008) Initial release Download Source Code
  11. Due to a request here: I created a Temperature / Tint Adjustment plugin. It is found under the Adjustment menu. User Interface: Algorithm: This is where I found the algorithm that I used: Here you can visualize the sliders overlaid on the standard color wheel: CodeLab Script: // Name: Temperature/Tint // Submenu: Adjustment // Author: BoltBait // Title: BoltBait's Temperature/Tint v1.3 // Version: 1.3 // Desc: Adjust the Temperature or Tint of a photograph // Keywords: Temperature|Tint // URL: #region UICode IntSliderControl Amount1 = 0; // [-20,20] Temperature IntSliderControl Amount2 = 0; // [-20,20] Tint CheckboxControl Amount3 = false; // [0,1] Preview original image #endregion private byte Clamp2Byte(int iValue) { if (iValue < 0) return 0; if (iValue > 255) return 255; return (byte)iValue; } unsafe void Render(Surface dst, Surface src, Rectangle rect) { for (int y = rect.Top; y < rect.Bottom; y++) { if (IsCancelRequested) return; ColorBgra* srcPtr = src.GetPointAddressUnchecked(rect.Left, y); ColorBgra* dstPtr = dst.GetPointAddressUnchecked(rect.Left, y); for (int x = rect.Left; x < rect.Right; x++) { ColorBgra CurrentPixel = *srcPtr; if (!Amount3) { CurrentPixel.R = Clamp2Byte(CurrentPixel.R + Amount1); // Temperature CurrentPixel.B = Clamp2Byte(CurrentPixel.B - Amount1); // Temperature CurrentPixel.G = Clamp2Byte(CurrentPixel.G + Amount2); // Tint } *dstPtr = CurrentPixel; srcPtr++; dstPtr++; } } } Download: Download as part of my plugin pack, here: Support: This plugin is for 4.0.6+ If you are running Paint.NET 3.5.11, you can build your own copy using the CodeLab source above. You'll need to update the UICode region by replacing "IntSliderControl" with "int" and "CheckboxControl" with "bool". Or, if CodeLab scares you, download the 3.5.11 version here:
  12. This is a plugin intended to help remove the backgrounds from images. I wasn't sure where to put it, but decided to make it an Adjustment. The controls are: Match Color is normally the color to be erased, but it can optionally be the color to keep. It can be either the User Match Color, or the Primary or Secondary Color. User Match Color is the Match Color when User Match Color is specified. Hue Tolerance determines how closely the pixel's hue must match the Match Color's hue. Saturation Tolerance determines how closely the pixel's saturation must match the Match Color's saturation. Value Tolerance determines how closely the pixel's value must match the Match Color's value. RGB Tolerance specifies the maximum allowed Euclidean distance between the pixel's RGB color and the Match Color's RGB color. Gray Upper Limit (S×V) specifies the threshold for product of the saturation and value below which the Match Color or pixel's color will be classified as gray. Gray does not match any hue except gray, unless the Gray Matches All Hues option is selected. Portion of Non-Erased Color to Preserve determines how much of the "non-erased" color should remain in the pixel. The color and alpha of the pixel are adjusted to account for the degree to which the pixel color matches the Match Color. Specifically (assuming the Match Color is being erased), the color is adjusted so that the alpha is as small as possible while keeping the same color if the pixel is alpha-blended into a Match Color background layer. This can be used to achieve a softer edge. Though its not really intended to be used when the Erase Non-Matching Pixels option is selected, it does work. The erased pixels will all be the Match Color, with appropriate alphas. The value can range from 0, to entirely erase the matching pixel, to 1, to preserve as much of the pixel's color as possible. Normally, it will probably be either 0 or 1. Gray Matches All Hues specifies that colors classified as gray match all hues. Erase Non-Matching Pixels specifies that matching pixels are kept and non-matching pixels are erased. Here is the source: Here is the icon: Here is the plugin: I will happily consider any suggestions to make the interface clearer. I will also appreciate any spelling corrections. EDIT: Fixed several bugs. Changed some of the wording in the interface. Added the RGB Tolerance. Changed the version to 1.1.
  13. This plugin is designed for fine color adjustments. It appears under Adjustments menu. Download as part of my plugin pack. Menu location: Adjustments. Updated to version 1.2 (2008-12-24)! Changes: few code optimizations. Updated to version 1.1 (2008-08-31)! - Compatibility fix for 3.36 You can adjust saturation, brightness, contrast and hue for each color (hue) range separately or all together. Amount of adjustment between the ranges is changed gradually, so there is no sharp cut-off, for example between red and yellow. Due to high precision calculations in the code, this plugin renders saturation and hue better than PdN's original Hue/Saturation effect. (the issue has been discussed here) Example: this pic asks for some saturation, but regular saturation adjustment is likely to make sky over-saturated. That's where Color Mixer comes handy. Settings used: Saturation: base 134, cyan 83, blue 74 Brightness: cyan -13, blue -13 Contrast: yellow -13, green -28 I may want to improve the UI soon, so far all your requests are welcome. I have thought about placing all the hue nubs into a single continuous hue-gradient bar. Save/Load settings option is also on my wishlist (wish I knew how to do it :wink: ).
  14. Hue / Saturation Plus This plugin is for Paint.NET 4.0+ only. It will not work on v3.5.11 or below, sorry. NOTE: User evanolds has made a more feature rich version of this plugin.* I am releasing this as a demonstration for how to add slider decorations to 4.0 plugins.** *evanolds plugin can be found here: **Read the tutorial here: That said, here's what it looks like: Download Users can download here: BoltBait's Plugin Pack for Paint.NET v4.0+ I think the best way to get used to how this effect works is to play with this using a picture of a color wheel. That way you'll see how the condition works. The adjustments work exactly the same as the built-in Hue / Saturation effect. Programmer's Section Programmers can download the CodeLab script here: Download the Visual Studio project here: Enjoy
  15. Download from my plugin set Improve Your Photography With Classical Art! Inspired by a similar feature in Adobe Photoshop, this plugin uses an existing image as a color template to recolor your image. Works best on photographs. Logos and simple graphics will usually look rather hideous. Adjustments > Color Match... Here are some samples, using Microsoft Windows Vista's Sample Pictures folder. For reference, we'll start with the original, before using the plugin: The rest show the source image in the corner: Click "Show" for more examples Hidden Content: Download from my plugin set
  16. Transparency Adjustment Effect I noticed (and submitted a bug report) that when I changed a layer's opacity and merged another layer onto it, the result was less than I expected. The transparency never came out as you saw it on the screen. This turned out to be a problem when I was making collages of pictures and I was attempting to put drop shadows around some of the pictures. When I merged the picture layer with its drop shadow layer, it didn't look good at all. Since there is no way in Paint.NET to directly adjust the opacity of a selection independent of the entire layer, I decided to write an effect to do it. The Effect DLL If you like it, you can download the precompiled effect here: BoltBait's Plugin Pack for pdn 3.5 or here: BoltBait's Plugin Pack for pdn 4.0 How to Use In order to use this effect, first select the pixels that you want to adjust. If you do not make a selection, the current layer will be affected. Then, click the Adjustments menu and select Transparency. Move the slider to the left to make your selection more transparent or move your slider to the right to make your selection less transparent. If you would like to adjust transparent pixels, be sure to uncheck the "Ignore transparent pixels" check box. Completely transparent pixels will be filled with the secondary color before being adjusted. When your selection looks the way you want, click OK. Otherwise, click Cancel to undo your changes. Enjoy I hope you find this effect useful. Oh, and by the way, there are several people on this board who will be happy to know that I wrote the UI myself.
  17. Often when I use posterize, I'm annoyed by the color shifts that occur because the truncation shifts the relationship between r, g, and b. In an attempt to reduce the problem, I wrote a CodeLab plugin that converts the color into HSV space, truncates the values, then converts back to RGB. Each component (hue, saturation, and value) can individually be selected to be posterized or not. Posterizing only the value is probably the closest to normal posterization. Following the philosophy that what's worth doing is worth overdoing, I added individual level controls for each of the 6 primary colors of light and pigment. For example, there can be 8 levels of red values and only 2 levels of blue values. To avoid the tedium of setting each value separately, there's also minimum level control for each component. This control overrides any individual control set to a smaller value, so it can act as a master control. The 6 color sections are normally centered on their associated color, but the offset angle can be set plus or minus 30 degrees. This is occasionally useful to achieve a better picture. Here is the