Jump to content

Search the Community

Showing results for tags 'adjustments'.

  • 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 (paint.net's online 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






  1. 'Color Matrix' Adjustment Plugin paint.net >= 4.3.2 requires that all OptionBasedLibrary files must be placed in the Effects and the FileTypes folder! Summary Adjusts all individual pixels in the selected area of the active layer using a color transformation matrix. http://www.comsquare.ch/files/downloads/ColorMatrix.Effect/ColorMatrix.Effect.Dialog.jpg The plugin contains a set of predefined matrices to manipulate the individual RGBA channels, adapt transparency or to simulate the effect of different color blindness defects. Changing the matrix will show 'User defined' in the preset selector. Here the list of presets: Identity - Does nothing RGB (solid) - Sets the alpha channel to solid RGB (inverted) - Inverts the RGB channels and keeps alpha RGB to Gray - Converts RGB to gray and keeps alpha RGB to Gray (inverted) RGB to Transparency RGB to Transparency (inverted) RGB to BGR (or back) RGB to Sepia Red to Gray (solid) Red only (solid) Green to Gray (solid) Green only (solid) Blue to Gray (solid) Blue only (solid) Transparency to Gray (solid) Transparency to Gray (solid, inverted) Transparency only Cyan only (solid) Magenta only (solid) Yellow only (solid) Red-Blind (Protanopia) Red-Weak (Protanomaly) Green-Blind (Deuteranopia) Green-Weak (Deuteranomaly) Blue-Blind (Tritanopia) Blue-Weak (Tritanomaly) Monochromacy (Achromatopsia) Weak Monochromacy (Achromatomaly) How does it work? The following formula is applied to each pixel: (R,G,B,A,255) = (((R,G,B,A,255) / 255) * matrix) * 255 Result values <0 or >255 are clamped. The render code is simple because it just provides the image and the matrix to Windows GDI+. Keywords Adjustment, Color matrix, Color blindness Author Martin Osieka Download Find the latest version of the plugin ColorMatrix v1.1 (25.6.2015) here: ColorMatrixEffectv1.1.zip Installation Follow the instructions carefully Unzip "ColorMatrix.Effect vX.X.zip" Copy the two files ColorMatrix.Effect.dll/.dlc to the Paint.NET\Effects\ folder A typical location is "C:\Program Files\Paint.NET\Effects". .dll contains the module code .dlc contains the module configuration (like translated text) Copy the two files OptionBasedLibrary vX.X.dll/.dlc to the Paint.NET\ folder (not to the Effects folder!) A typical location is "C:\Program Files\Paint.NET". After a restart of Paint.NET you will find the plugin at Menu->Adjustments->Color Matrix... oder für deutsche Anwender unter Menü->Korrekturen->Farbmatrix.. Compatibility Paint.NET 3.5.11 and 4.0.5 Supported languages The language used in the plugin depends on the language setting of Paint.NET and the support of this language by the plugin. The fallback is the first supported language of the plugin. Languages are defined in the .dlc files. This plugin supports the following languages in the moment: English Deutsch You may add your own translation to the .dlc file. Known issues None Example Using the matrix preset "RGB inverted" -1 0 0 0 0 0 -1 0 0 0 0 0 -1 0 0 0 0 0 1 0 1 1 1 0 1 Applying the formula R' = R/255; G' = G/255; B' = B/255; A' = A/255 R" = R' * -1 + G' * 0 + B' * 0 + A' * 0 + 1 = 1 - R' G" = R' * 0 + G' * -1 + B' * 0 + A' * 0 + 1 = 1 - G' B" = R' * 0 + G' * 0 + B' * -1 + A' * 0 + 1 = 1 - B' A" = R' * 0 + G' * 0 + B' * 0 + A' * 1 + 0 = A' R = R"*255; G = G"*255; B = B"*255; A = A"*255 History 1.1 (25.6.2015) - Added 'RGB (solid)' entry to set the alpha channel to opaque - Added column titles - Renamed the dll file. You have to remove the old ColorMatrix.dll/.dlc file - Updated OptionBasedLibrary 1.0 (16.5.2015) - First release
  2. This plugin allows you to modify multiple channels of an image in various ways. Once installed, it can be found in the Adjustments menu, since it is more of an adjustment utility than an effect. Basics - How the Plugin Works In the plugin's dialog, you can configure multiple channel modifications. Each modification allows you to manipulate one channel of the image with one of the built in operations. Every operation uses one or more arguments to calculate the new value for the target channel. The number, form and usage of those arguments depends on the chosen operation. The modifications are executed per pixel and in the order you have arranged them. Use the ˄ and ˅ buttons to re-arrange the modifications, the + button to add more, the × button to remove one, and check/uncheck the Enabled flag to switch a modification on and off. Download and Installation Download from code.lwchris.de (my webspace) To install this plugin, please follow the usual steps when installing Paint.NET plugins: Download the zip file Extract the content Move the DLL file into the "Effects" folder in Paint.NET's root directory (for example "C:\Program Files\Paint.NET\Effects") Restart Paint.NET The plugin will appear as "Modify Channels..." in the Adjustments, not the Effects menu Changelog Channels Depending on whether you have to select the target channel to write to or the source channel to read from, different channels are available: Red/Green/Blue/Alpha - Gets or sets the value for the respective channel. These values always include the changes from previous modifications. Temp 1/Temp 2 - Gets or sets the value of the respective temporary channel Source Red/Green/Blue/Alpha - Gets the original, unmodified value for the respective channel (read-only) Average - Gets the average of the current Red, Green and Blue channel values (read-only) Grayscale - Sets the Red, Green and Blue channel to the given value (write-only) Channel value types The Red, Green, Blue and Alpha channels are int channels (and since Grayscale is just a shortcut for assigning all three at once, it has the same limitations). This means assigned values will be rounded to whole numbers, but are allowed to go way below 0 or above 255. After the last channel modification, their values are clamped to 0-255 and then interpreted as the resulting RGBA color. Temp 1 and Temp 2 are double channels, therefore they can store floating-point values. Reading from Average returns a double. Assigning that value to an integer channel will cause the assigned value to be rounded. Operations Operations can be split into four types: constant, unary, binary or ternary, depending on the number and type of arguments they take. 1. Constant operation The constant operation takes one constant value as argument. Constant (value) - Returns value 2. Unary operations Unary operations take one source channel as argument. Identity (channel) - Returns value of the channel Invert (channel) - Returns 255 - value of the channel Absolute (channel) - Returns -1 * value of the channel if value of the channel < 0, or value of the channel otherwise 3. Binary operations Binary operations take two constant or unary operations as argument. For Divide, the arguments may be augmented with an additional constant. Minimum (arg1, arg2) - Returns arg1 if arg1 < arg2, or arg2 otherwise Maximum (arg1, arg2) - Returns arg1 if arg1 > arg2, or arg2 otherwise Add (arg1, arg2) - Returns arg1 + arg2 Subtract (arg1, arg2) - Returns arg1 - arg2 Multiply (arg1, arg2) - Returns arg1 * arg2 Divide (arg1, arg2, [value]) - Returns arg1 / arg2; if arg2 is a channel, provide value as return value in case the channel value is almost 0 (i. e. < 0.00000001) 4. Ternary operations Ternary operations take one source channel and two constant values as arguments. Clamp (channel, min, max) - Returns min if value of the channel < min, max if value of the channel > max, or value of the channel otherwise L-Threshold (channel, min, value) - Returns value if value of the channel < min, or value of the channel otherwise U-Threshold (channel, max, value) - Returns value if value of the channel > max, or value of the channel otherwise Specification A specification of all possible channel modifications, given in EBNF. Examples Create an opacity map (the darker, the more opaque): Grayscale = Identity Alpha Alpha = Constant 255 Transform into pencil sketch: Alpha = Invert Average Grayscale = Identity Average Swap the red and blue channel: Red = Identity Blue Blue = Identity Source Red Note that Blue = Identity Red does not work, because the first channel modification has already changed the value of the Red channel Legal notes I hate this part, too, but it is somewhat obligatory for software... The plugin is free to use for anything permitted by applicable law (including commercial purposes). You are however not allowed to modify or sell this plugin. Do not redistribute the plugin except by sharing links to this forum post please. If you want to include it in your plugin pack, please ask for my permission first. The plugin is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall I or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the plugin or the use or other dealings in the plugin.
  3. 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: http://forums.getpaint.net/index.php?/topic/13003-a **Read the tutorial here: http://forums.getpaint.net/index.php?/topic/28423-a 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: HueSatPlusSrc.zip Enjoy
  4. 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! https://github.com/bsneeze/pdn-gradientmapping
  5. Override HSV.zip (Installation: extract the .zip and run Install_OverrideHSV.bat. Alternatively, copy Override HSV.dll to your Effects folder) This is a simple plugin which allows you to edit any of the HSV channels and set all pixels to any value you wish. You could think of this as the typical hue/sat tool except rather than adding/subtracting, you are overwriting channels with a certain value. Access it from Adjustments > Override HSV. The UI provides 3 sliders with checkboxes to enable them. Example image for comparison Setting hue of all pixels to 0 (red) Setting saturation of all pixels to 100% Setting the value of all pixels to 100%
  6. Overview Color Replacer can convert pixels in the current selection from one color to another. Pixels with colors that almost match (based on a % match called tolerance) will be affected too, but the original color will be mixed with the new color. It is located under the Adjustments tab. Purpose and Application Use this plugin to remove backgrounds that are close to being single colors. Affected color: The color that you want to change. New color: The new color to choose. Affected color transparency: The transparency of the color to be changed. New color transparency: The transparency of the new color. Tolerance: Instead of just replacing the exact color you choose, why not replace colors relatively close to it as well? Increasing the tolerance increases the range (in RGB) of colors that can be selected. Higher tolerances catch more similar colors. 255 catches everything. Max hue/sat/val difference: These are restrictions placed on the tolerance. When you specify a color, some photos may need a high tolerance to match the colors of your choice. For example, a red gradient for the background of an orange gradient logo. In this case, the maximum hue difference must be limited so only pixels within a certain hue range of the initial color are selected... leaving the orange pixels alone. Color mixing hardness: When pixels are replaced by the chosen color, the further they were from the original color, the less effect the color replacement has. This hardness setting allows you to change this behavior by either tweaking the softness or setting it to 255 so there is no soft color mixing. Remarks When replacing with transparency, consider getting AA's Assistant so that you can remove some of the aftermath (color replacement is imperfect by nature and will usually leave expanses of tinted, lightly transparent areas that AA's Assistant removes). Download: Replace Colors Source code: Github The MIT license does not apply to past users of the source code. Those users still have my explicit permission to do whatever they want. I just had to use a license to avoid ambiguity.
  7. Adjustments > Invert Anything This plugin allows you to invert a pretty wide variety of things all in one plugin. I'm 99% sure most of this exists elsewhere, but there are a couple things that don't exist yet. Red/Green/Blue -- inverts the red, blue and/or green channels. Will essentially turn yellow into blue, red into cyan, and so on. Hue/Saturation/Value Inverts the hue, saturation or value. Alpha -- Inverts the alpha channel -- transparent pixels will become more opaque, and vice-versa. Fully transparent pixels will apparently turn black. Contrast This feature came from a different plugin I'm working on. Essentially you're inverting things on either side of the median. If you're doing this with red contrast+green contrast+blue contrast on something colorful, for example, you'll get an image that's significantly more gray. Something with more washed-out colors will become more colorful. Essentially you're pulling the colors further away from the median towards the median (making them gray) and vice-versa. Other effects work much the same way, except instead of the median being gray it'll be whatever the median value for that setting is -- hue contrast for example will pull things closer or further away from cyan because that's the median hue. Plugin Examples This plugin offers a large amount of options, so rather than show them all I'll show each individual setting and a few interesting combinations all in one image. First, here's a source image. This cat is pretty useful for testing color/adjustment plugins -- lots of different colors, a good bit of white and black as well. Here are some different settings. The "Everything" means "everything but alpha + alpha contrast". Download Link https://github.com/Xhin23/Paint.net-Plugins/blob/master/Invert_Anything.dll
  8. 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 Download from my plugin set
  9. Download from my plugin set Get some really cool presets by ssaamm: http://forums.getpaint.net/index.php?/topic/21783-vintage-effect-pack-for-curves/ 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! https://github.com/bsneeze/pdn-curvesplus
  10. This effect is similar to the Photoshop's Dynamic Contrast filter and allows you to create images with high contrast. You can find this effect in Adjustments menu. Download from my PluginPack Amount - the range of adjustment of contrast. Threshold - sets the threshold for enabling a color (and its shades) or a mixture of colors in the Blue -> Red -> Green direction. Intensity - sets the pixel intensity of the image. When Amount = 0, the Threshold and Intensity controls have no effect on the image and are therefore disabled. Examples of the plugin work: Before: After: CodeLab source code: To have a clearer understanding of how this effect works, upload the image below. Run the effect. Set the Amount and Threshold controls to the leftmost position. Slowly move the Threshold control to the rightmost position and watch the colors contrast change. Set the Amount control to the rightmost position and move the Threshold control again from left to right, watching the colors change. View how the effect works with different settings on all three sliders. Here are some examples: I hope you will like this effect and find a use for it.
  11. Even though I have done this sort of thing for G'MIC-QT as a cli command, I decided to make it as a plugin just out of doing something different. What this plugin does is modulo functions, but on the end of modulo expression, the value is added by 1. Essentially useful for gradient map preparation, and that's the main reason why this exist. It can also be used for glitch art. Plugin Download - Image Modulo Toolkit.zip - ( Added new features in 10/09/2020 - Clipboard, Invert ) After you install the plugin, it's under Adjustments menu. Here's examples of how it works using various Mode option and 64 as the maximum resulting number. Target Image Regular Modulo Regular Modulo Continuous Divisive Modulo Divisive Modulo Continuous Modulo Addition Modulo Addition Continuous ------------- Introduction to new features Clipboard - The main purpose of using this is to create new gradients from existing gradient. Invert* - Before - - After - Invert* = This is mainly used to choose darkening option over lightening option in case of Modulo Addition series ------------- Special note : I will not be adding features to this plugin. If you want to add features, you are welcome to do so and post it in this thread. Otherwise, I will refer you to my g'mic-qt filter which is Modulus Operations which is under Testing->Reptorian License : GPLv3 - Source codes - CodeLab G'MIC-QT EDIT: @toe_head2001 has provided cleaner code of the current plugin. So I inserted it in here for quicker access. EDIT: Added new features in 10/09/2020 EDIT: Added G'MIC-QT source code to the g'mic-qt filter, and a special note for feature requests.
  12. This effect allows you to change the color transparency separately in the R, G, and B channels. Download from my PluginPack You can find this effect in Adjustments menu. This effect has a simple intuitive interface. The English or Russian interface of the effect is detected automatically. Original image: Result of applying the effect with default settings: The result of applying the effect with the Invert checkbox checked: CodeLab source code: If the original image had transparent sections, they will be keep. I hope you will find a use for this effect.
  13. 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. Download from my PluginPack 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.
  14. 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: I hope you will like this effect and find a use for it.
  15. Two Tone Threshold Found under: Adjustments .dll name = TwoToneThreshold Two Tone Threshold is an Adjustment which assesses the tones in an image and apportions two colours between the thresholds. In other words it turns colour images into black & white! ... or set your Primary and Secondary colours to something more lurid! ... or Primary color and alpha etc etc. It's in my updated plugin pack Red ochre v10 plugin pack As with all plugins - try it, if you like it, keep it - if not, uninstall it! There are many other plugins with a similar function but I wanted one where I could easily adjust the contrast via two thresholds. Enjoy!
  16. I was adjusting some photographs the other day and kept having to toggle between the Brightness/Contrast adjustment and the Hue/Saturation/Lightness adjustment to get just the right colors. So... I combined all of the most common adjustments onto one screen: Then, I bundled in my Black and White+ plugin. NO MORE TOGGLING! Until I add this to my pack, download here: CombinedAdjustments.zip Install the normal way, unzip the download to your desktop and run the "Install" batch file. You'll find this in your Adjustments menu. Enjoy! 😎
  17. I've added an extra option which allows the post-effect Alpha values to be displayed as gray-scale colors. The intention is that this option would be ticked to allow the result of the effect to be easily assessed - and then untick before clicking OK. 32495_741da9c1d40fae38dc1154c962507162.Zip
  18. Adjustments > Remove Black This is a simple little plugin that turns black pixels into transparent pixels, then turns other pixels into alpha versions of themselves depending on their darkness so the effect is smoother. I apologize if this exists elsewhere -- the code is really really simple so I bet someone else has run across it. I doubt they have my threshold slider though. Threshold -- changes the amount of pixels that get alpha adjustments applied to them. Lower settings will have more of the image turning into alpha, higher settings will have smaller amounts. Let's take a look at the plugin: I've chosen this as my base image -- there is color here, but also a lot of darker pixels. On the layer underneath it, I have a circular rainbow texture I made with my Radial Prism plugin. Here's what your default settings look like. This essentially replaces the black pixels with the rainbow pixels in the layer underneath it in a smooth way. This has threshold set to 1 -- this tends to be the most intuitive use of the plugin, but also the least useful in my experience. Here's a higher threshold. Now the rainbow has essentially become an outline. Some tips for use I've been using this plugin for years despite not releasing it until today. Here's a couple things I've noticed: Putting a radial prism on the layer below an image works pretty fantastic across the board -- this forms the basis of my "pure color" technique where the image becomes nothing but color. If you use a Drop shadow when the plugin is set to a low threshold, you get some really good tinting effects. If you use black instead of a color you can smoothly append the underlayer, or if you have the image itself underneath it this is a great way of adding extra shadow without messing up the detail. I have an upcoming recoloring tutorial that uses this technique. Here's are a couple snippets where I've used the plugin to good effect with these techniques: Download Link https://github.com/Xhin23/Paint.net-Plugins/blob/master/Remove_Black.dll
  19. Plugin: TransparentToTransparentWhite.zip 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.
  20. 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 Dimmer.zip
  21. Black and White+ version 1.1 Black and White+ includes 3 different algorithms to convert a color image into a black-and-white image. Luminosity Method Shade of Gray = 0.299 * Red + 0.587 * Green + 0.114 * Blue This is the default method. This is how the built-in Black-and-White effect converts a color image to black-and-white. This method gives different weights to Red, Green, and Blue. Other methods treat each color equally. Average Method Shade of Gray = (Red + Green + Blue) / 3 Lightness Method Shade of Gray = [Max(Red,Green,Blue) + Min(Red,Green,Blue)] / 2 Every color photograph is different. You'll just need to try each method to see which one works best for your specific photograph. Brightness/Contrast In addition to converting your photograph to black-and-white, I've also provided access to the Brightness and Contrast adjustments. For a more dramatic effect, decrease the brightness (try -10) and increase the contrast (try +10). Download Download this effect as part of my plugin pack: https://forums.getpaint.net/topic/113220-b Source Code Here is the icon: and here is the CodeLab source: // Name: Black and White+ // Author: BoltBait // Submenu: Adjustments // Title: BoltBait's Black and White+ v1.1 // Version: 1.1 // Desc: Convert image to Black and White // Keywords: Black and White|B&W // URL: http://BoltBait.com/pdn #region UICode ListBoxControl Amount1 = 0; // |Luminosity Method|Average Method|Lightness Method IntSliderControl Amount2 = 0; // [-100,100] Brightness/Contrast IntSliderControl Amount3 = 0; // [-100,100] #endregion BrightnessAndContrastAdjustment bacAdjustment = new BrightnessAndContrastAdjustment(); PropertyCollection bacProps; private double Max3(double x, double y, double z) { return (x > y) ? ((x > z) ? x : z) : ((y > z) ? y : z); } private double Min3(double x, double y, double z) { return (x < y) ? ((x < z) ? x : z) : ((y < z) ? y : z); } protected override void OnDispose(bool disposing) { if (disposing) { if (bacAdjustment != null) bacAdjustment.Dispose(); bacAdjustment = null; } base.OnDispose(disposing); } void PreRender(Surface dst, Surface src) { bacProps = bacAdjustment.CreatePropertyCollection(); PropertyBasedEffectConfigToken bacParameters = new PropertyBasedEffectConfigToken(bacProps); bacParameters.SetPropertyValue(BrightnessAndContrastAdjustment.PropertyNames.Brightness, Amount2); bacParameters.SetPropertyValue(BrightnessAndContrastAdjustment.PropertyNames.Contrast, Amount3); bacAdjustment.SetRenderInfo(bacParameters, new RenderArgs(dst), new RenderArgs(src)); } unsafe void Render(Surface dst, Surface src, Rectangle rect) { // Call the Brightness and Contrast Adjustment function bacAdjustment.Render(new Rectangle[1] {rect},0,1); for (int y = rect.Top; y < rect.Bottom; y++) { if (IsCancelRequested) return; ColorBgra* dstPtr = dst.GetPointAddressUnchecked(rect.Left, y); for (int x = rect.Left; x < rect.Right; x++) { ColorBgra CurrentPixel = *dstPtr; byte K = CurrentPixel.R; if (!(CurrentPixel.R == CurrentPixel.G && CurrentPixel.G == CurrentPixel.B)) { switch (Amount1) { case 0: K = (byte)((0.299f * CurrentPixel.R) + (0.587f * CurrentPixel.G) + (0.114f * CurrentPixel.B)); break; case 1: K = (byte)((CurrentPixel.R + CurrentPixel.G + CurrentPixel.B) / 3.0); break; case 2: K = (byte)((Max3(CurrentPixel.R, CurrentPixel.G, CurrentPixel.B) + Min3(CurrentPixel.R, CurrentPixel.G, CurrentPixel.B)) / 2.0); break; default: break; } } CurrentPixel = ColorBgra.FromBgra(K,K,K,CurrentPixel.A); *dstPtr = CurrentPixel; dstPtr++; } } } Note: User MJW also made a Black and White+ plugin. His has way more adjustments than mine. I'm not sure, but you might be able to use his to get the same results as mine... I just couldn't figure out how to do it. If you like LOTS of things to tinker with, you might give his a try. The above is for Paint.NET v4.1.4+ Paint.NET v3.5.11 I'm sure someone will come along shortly and compile this for you.
  22. 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
  23. 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. BlackAndWhite+.zip
  24. This is my first plugin and though it's pretty basic (and might have been done before), I think it's useful. Essentially it takes a black and white image and converts it to a "black and transparent" image. The whole point is that if you have a sketch, applying this plugin will make all of the white parts transparent so that you can color it, add a background, whatever. Download the zipped DLL >> Isolate Lineart
  25. 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: TransparentToTransparentBlack.zip The code:
  • Create New...