-
Posts
15,651 -
Joined
-
Last visited
-
Days Won
390
Everything posted by BoltBait
-
Losing quality when resizing
BoltBait replied to alice0's topic in Paint.NET Discussion and Questions
Try the different resampling methods, like Nearest Neighbor. -
http://forums.getpaint.net/index.php?/topic/9349-
-
Install my plugin pack. Then use Effects > object > feather.
-
How to Write an Effect Plugin (Part 3 of 4 - Complex)
BoltBait replied to BoltBait's topic in Plugin Developer's Central
What he said ^^ -
Screenshot please?
-
Use one image as the alpha channel of another
BoltBait replied to mezcaholic's topic in Paint.NET Discussion and Questions
You are very kind. -
Use one image as the alpha channel of another
BoltBait replied to mezcaholic's topic in Paint.NET Discussion and Questions
Step 1: install my plugin pack. Step 2: copy the alpha image to the clipboard. Step 3: Effects > Object > Paste alpha. -
*idea!* *tinker* *tinker* *tinker* *give up* // Author: BoltBait // Submenu: Artistic // Name: Chalkboard // URL: http://www.BoltBait.com/pdn // Title: BoltBait's Chalkboard v1.0 #region UICode int Amount1 = 10; // [0,100] Radius int Amount2 = -10; // [-100,100] Brightness int Amount3 = 10; // [-100,100] Contrast double Amount4 = 0.9; // [0,1] Strength bool Amount5 = false; // [0,1] Invert Mask #endregion // Setup for using pixel op private UnaryPixelOps.Desaturate desaturateOp = new UnaryPixelOps.Desaturate(); private UnaryPixelOps.Invert invertOp = new UnaryPixelOps.Invert(); // Setup for using Darken blend op private UserBlendOps.MultiplyBlendOp multiplyOp = new UserBlendOps.MultiplyBlendOp(); // Here is the main render loop function unsafe void Render(Surface dst, Surface src, Rectangle rect) { // Setup for calling the Gaussian Blur effect GaussianBlurEffect blurEffect = new GaussianBlurEffect(); PropertyCollection blurProps = blurEffect.CreatePropertyCollection(); PropertyBasedEffectConfigToken BlurParameters = new PropertyBasedEffectConfigToken(blurProps); BlurParameters.SetPropertyValue(GaussianBlurEffect.PropertyNames.Radius, Amount1); blurEffect.SetRenderInfo(BlurParameters, new RenderArgs(dst), new RenderArgs(src)); // Call the Gaussian Blur function blurEffect.Render(new Rectangle[1] {rect},0,1); // Setup for calling the Brightness and Contrast function BrightnessAndContrastAdjustment bacAdjustment = new BrightnessAndContrastAdjustment(); PropertyCollection cProps = bacAdjustment.CreatePropertyCollection(); PropertyBasedEffectConfigToken cParameters = new PropertyBasedEffectConfigToken(cProps); cParameters.SetPropertyValue(BrightnessAndContrastAdjustment.PropertyNames.Brightness, Amount2); cParameters.SetPropertyValue(BrightnessAndContrastAdjustment.PropertyNames.Contrast, Amount3); bacAdjustment.SetRenderInfo(cParameters, new RenderArgs(dst), new RenderArgs(dst)); // Call the Brightness and Contrast function bacAdjustment.Render(new Rectangle[1] {rect},0,1); // Now in the main render loop, the dst canvas has a blurred version of the src canvas for (int y = rect.Top; y < rect.Bottom; y++) { 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; ColorBgra DestPixel = *dstPtr; // Desaturate pixels CurrentPixel = desaturateOp.Apply(CurrentPixel); DestPixel = desaturateOp.Apply(DestPixel); // Calculate difference in src and blurred dest pixel DestPixel.R = (byte)Math.Abs(CurrentPixel.R - DestPixel.R); DestPixel.G = (byte)Math.Abs(CurrentPixel.G - DestPixel.G); DestPixel.B = (byte)Math.Abs(CurrentPixel.B - DestPixel.; // Invert mask if (Amount5) DestPixel = invertOp.Apply(DestPixel); // Apply strength DestPixel.A = (byte)((double)DestPixel.A * Amount4); // Shade final pixel CurrentPixel = multiplyOp.Apply(*srcPtr, DestPixel); *dstPtr = CurrentPixel; srcPtr++; dstPtr++; } } }
-
Reformatting the Plugin Index
BoltBait replied to Ego Eram Reputo's topic in Paint.NET Discussion and Questions
But, a CSV file can be opened by anyone. -
Reformatting the Plugin Index
BoltBait replied to Ego Eram Reputo's topic in Paint.NET Discussion and Questions
superkingt, I like the idea of the effect names in one color of blue with other links in another darker color. That pulls your eye to the effect names and makes them easier to scan. -
Reformatting the Plugin Index
BoltBait replied to Ego Eram Reputo's topic in Paint.NET Discussion and Questions
I bet that there is a really smart user (pyro) who could write a program to scrape all 300 DLL files for the info. -
Reformatting the Plugin Index
BoltBait replied to Ego Eram Reputo's topic in Paint.NET Discussion and Questions
Could you also include the DLL filename where the effect is located? How about the path to the effect once loaded, like pdnnoob said above, like: "Effects > Selection > Bevel", etc. Reason: I often see people install effects then not know where to find them in the menu. -
Reformatting the Plugin Index
BoltBait replied to Ego Eram Reputo's topic in Paint.NET Discussion and Questions
No update required in my opinion. If you want to change the font, use Verdana. That's my favorite. -
A how-to question
BoltBait replied to pilotwritergeorge's topic in Paint.NET Discussion and Questions
This plugin should help you: http://forums.getpaint.net/index.php?/topic/16347-circle-text/ -
Google up a picture of sky, copy, paste, done?
-
Instead of a Mac, why not buy an Ultrabook and a car?
-
Yes, everything was migrated over from the old site. But, it looks like that tutorial got lost. Sorry about that.
-
History of what I've done?
BoltBait replied to Andreas's topic in Paint.NET Discussion and Questions
No. -
How is calculated the resulting color's alpha?
BoltBait replied to guix's topic in Paint.NET Discussion and Questions
Alpha 128 is half opaque. So, half opaque plus another half (of what's left) is three quarters opaque. 192 is three quarters of 255. Clear? -
How is calculated the resulting color's alpha?
BoltBait replied to guix's topic in Paint.NET Discussion and Questions
If you place a simi-transparent pixel on top of a fully opaque pixel, the result will be a fully opaque pixel. -
Effect red coat "Schinderlist"
BoltBait replied to gabonik's topic in Paint.NET Discussion and Questions
I bet if you asked your girlfriend she'd say the same thing. -
Effect red coat "Schinderlist"
BoltBait replied to gabonik's topic in Paint.NET Discussion and Questions
Like this: http://forums.getpaint.net/index.php?/topic/12188- -
I will be adding it to CodeLab when I modify it for 4.0.
-
Unknown Effect & Sharper Outline?
BoltBait replied to ronanzer0's topic in Paint.NET Discussion and Questions
That is "by design." If pyrochild added zoom blur to his effect it would probably do what you want. -
Unknown Effect & Sharper Outline?
BoltBait replied to ronanzer0's topic in Paint.NET Discussion and Questions
I'm afraid that what ever I did you'd never be happy. So, no. I will make no further edits. The source code is here, if you'd like to do it yourself.