Jump to content

BoltBait

Administrator
  • Posts

    15,651
  • Joined

  • Last visited

  • Days Won

    390

Everything posted by BoltBait

  1. Try the different resampling methods, like Nearest Neighbor.
  2. http://forums.getpaint.net/index.php?/topic/9349-
  3. Install my plugin pack. Then use Effects > object > feather.
  4. Step 1: install my plugin pack. Step 2: copy the alpha image to the clipboard. Step 3: Effects > Object > Paste alpha.
  5. *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++; } } }
  6. 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.
  7. I bet that there is a really smart user (pyro) who could write a program to scrape all 300 DLL files for the info.
  8. 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.
  9. No update required in my opinion. If you want to change the font, use Verdana. That's my favorite.
  10. This plugin should help you: http://forums.getpaint.net/index.php?/topic/16347-circle-text/
  11. Google up a picture of sky, copy, paste, done?
  12. Instead of a Mac, why not buy an Ultrabook and a car?
  13. Yes, everything was migrated over from the old site. But, it looks like that tutorial got lost. Sorry about that.
  14. 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?
  15. If you place a simi-transparent pixel on top of a fully opaque pixel, the result will be a fully opaque pixel.
  16. I bet if you asked your girlfriend she'd say the same thing.
  17. Like this: http://forums.getpaint.net/index.php?/topic/12188-
  18. I will be adding it to CodeLab when I modify it for 4.0.
  19. That is "by design." If pyrochild added zoom blur to his effect it would probably do what you want.
  20. 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.
×
×
  • Create New...