Jump to content

BoltBait

Administrator
  • Posts

    15,728
  • Joined

  • Last visited

  • Days Won

    405

Everything posted by BoltBait

  1. Displaying the File Extension in Windows Vista and Windows 7 Click the Start menu. ... Type "folder options" (without the quotes). ... A dialog box with the title "Folder Options" will appear. ... Click to uncheck the box for "Hide extensions for known file types". Click the "OK" button at the bottom of the dialog box. NOW try to change your file extension.
  2. I don't see one already built. However, if you could provide the file type specifications and some sample files, I'm sure one of the programmers around here would be happy to make one for you.
  3. This may help: http://forums.getpaint.net/index.php?/topic/692-install-update-or-uninstall-trouble-read-this/?p=2795
  4. Perhaps I mistyped the search string as it is hard to see in the video. Can you copy it right out of the installer and try again?
  5. That path name that the installer is trying to use must come from the registry. Try again to find it and eliminate it.
  6. Go into regedit and search for "CurriculumSoftware\Paint.net" and see if you can find something about the installer. If so, delete that key. Be sure to start at the top of regedit when searching.
  7. One last idea: Right click on that file on your desktop and choose "Properties" from the menu. On the properties screen, click on the "General" tab and look at the lower right corner of that tab for an "Unblock" button. If there, click it and then click "Apply". Try the install again. Also, you may need to run REGEDIT and delete the following key before trying to install: EDIT: It looks like some part of your system is using a network drive. Is this true? If so, can you eliminate that part from the install? Can you disconnect from your network while installing? Or, you could run REGEDIT and do a search (F3) for "\Paint.NET\Staging\" and delete that entire key as well. _____________
  8. OK, one more thing. Instead of double clicking on the icon to start the installer, try right-clicking on it and choose "Run as Administrator". Does that make a difference?
  9. That's what the script I posted above does. If you want to code your own plugin, here are some tutorials to get you started: http://boltbait.com/pdn/CodeLab/help/
  10. You're trying to install this application into your documents folder. That's not good. Try installing paint.net to the default file location.
  11. That would be really handy. This is not the first request we've had for access to the current palette.
  12. I'm not stuck on that name at all. Like I said, I just wrote this in 5 minutes as a "proof of concept" just to see if I could solve the problem.
  13. After the using the built-in effect, try this CodeLab script to eliminate stray pixels... // Name: Stray Pixels // Submenu: Color // Author: BoltBait // Title: Eliminate Stray Pixels // URL: http://BoltBait.com/pdn #region UICode int Amount1 = 1; // [0,4] Size #endregion void Render(Surface dst, Surface src, Rectangle rect) { for (int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { ColorBgra CurrentPixel = src[x,y]; ColorBgra newPixel = src[x,y]; ColorBgra testPixel = src[x,y]; int MatchCount = 0; for (int TestY = y - 1; TestY < y + 2; TestY++) { for (int TestX = x - 1; TestX < x + 2; TestX++) { if ((TestX >= 0) && (TestX < src.Width) && (TestY >= 0) && (TestY < src.Height)) { if ((TestX != x) || (TestY != y)) { testPixel = src[TestX,TestY]; if (CurrentPixel != testPixel) { newPixel = testPixel; } else { MatchCount = MatchCount+1; } } } } } if (MatchCount < Amount1) { CurrentPixel = newPixel; } dst[x,y] = CurrentPixel; } } }It is a bit rough as I wrote it in 5 minutes and haven't really tested it properly.
  14. Nope. EDIT: Well....... maybe. It is stored in the registry under Computer\HKEY_CURRENT_USER\Software\Paint.NET\CurrentPalette Not sure the format... you'll have to play with it. Also, you could prompt the user for a palette file (from the palette folder) and go that way. Here is some code to get you started: http://forums.getpaint.net/index.php?/topic/31921-adding-a-help-button-to-codelab-plugins/?p=427601
  15. Outline twice, in two different colors. Then after cleaning up the ends, use the magic wand to delete the color you don't want.
  16. You probably tried pyrochild's outline plugin. Try mine instead: Draw your line on its own layer, then run my Effects > Object > Outline object... Hope this helps. ____________________
  17. When you download paint.net it comes as a zip file. Be sure to unzip the files to your desktop before starting the installer. Many people report trouble if trying to run the installer from inside the zip file.
  18. Paint.net has a built-in effect that may do the trick. Try Adjustments > Posterize. Move the sliders down to, like, 2 or 3. Or, you could try this plugin for 2 colors: Stencil.zip Once installed, it is under Effects > Color > Stencil // Name: Stencil // Submenu: Color // Author: BoltBait // Title: Stencil v1.0 // Desc: Reduce photograph down to 2 colors // Keywords: posterize|stencil // URL: http://www.BoltBait.com/pdn #region UICode int Amount1 = 10; // [-100,100] Balance ColorBgra Amount2 = ColorBgra.FromBgr(255,255,255); // Bright Color ColorBgra Amount3 = ColorBgra.FromBgr(0,0,0); // Dark Color #endregion // Setup for using pixel op private UnaryPixelOps.Desaturate desaturateOp = new UnaryPixelOps.Desaturate(); // Here is the main render loop function void Render(Surface dst, Surface src, Rectangle rect) { // Setup for calling the Brightness and Contrast Adjustment function BrightnessAndContrastAdjustment bacAdjustment = new BrightnessAndContrastAdjustment(); PropertyCollection bacProps = bacAdjustment.CreatePropertyCollection(); PropertyBasedEffectConfigToken bacParameters = new PropertyBasedEffectConfigToken(bacProps); bacParameters.SetPropertyValue(BrightnessAndContrastAdjustment.PropertyNames.Brightness, Amount1); bacParameters.SetPropertyValue(BrightnessAndContrastAdjustment.PropertyNames.Contrast, 100); bacAdjustment.SetRenderInfo(bacParameters, new RenderArgs(dst), new RenderArgs(src)); // Call the Brightness and Contrast Adjustment function bacAdjustment.Render(new Rectangle[1] {rect},0,1); // Now in the main render loop, the dst canvas has an adjusted version of the src canvas for (int y = rect.Top; y < rect.Bottom; y++) { if (IsCancelRequested) return; for (int x = rect.Left; x < rect.Right; x++) { ColorBgra CurrentPixel = dst[x,y]; CurrentPixel = desaturateOp.Apply(CurrentPixel); if (CurrentPixel.R > 128) { CurrentPixel = Amount2; } else { CurrentPixel = Amount3; } dst[x,y] = CurrentPixel; } } } For a truly complicated, but amazing, color reduction effect, try this plugin: http://forums.getpaint.net/index.php?/topic/29428-z
  19. midora is correct. I was quoting from memory and mine is somewhat faulty.
  20. Small change is clicking the ^ v arrows by the number. Large change is using the keyboard arrows <- and -> to control slider.
  21. Those increments are only used when the control has focus and you're using the arrows to move the slider.
  22. Your best bet is to create a new layer first and draw your lines on that layer.
  23. As a publisher, you should hire a graphics artist. Problem solved.
  24. Try here: http://forums.getpaint.net/index.php?/topic/927-icon-cursor-and-animated-cursor-format-v37-may-2010/
×
×
  • Create New...