Jump to content

BoltBait

Administrator
  • Posts

    15,728
  • Joined

  • Last visited

  • Days Won

    405

Everything posted by BoltBait

  1. I think you would be better off looking for a vector editor for font creation. I know that I can create fonts with CorelDRAW, for example. I've never used InkScape, but you might want to try that... I'm just not sure if they have a font editor for it. But, at least it's a vector editor. Sorry, wish I could be more help.
  2. You can also do this with my Transparency Adjustment plugin... But, this seems more convenient since it is in the same menu.
  3. So... don't save as jpg. Try png or gif instead. More info here: viewtopic.php?f=15&t=3172 viewtopic.php?f=15&t=6440
  4. Please ask your question here: viewtopic.php?f=16&t=23093 Also, you may want to check your caps lock key. It appears to be defective. Please review the board rules: viewtopic.php?f=20&t=3446
  5. Of course! Let's look at the default script: #region UICode int Amount1=0; //[0,100]Slider 1 Description int Amount2=0; //[0,100]Slider 2 Description int Amount3=0; //[0,100]Slider 3 Description #endregion void Render(Surface dst, Surface src, Rectangle rect) { // Delete any of these lines you don't need Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); long CenterX = (long)(((selection.Right - selection.Left) / 2)+selection.Left); long CenterY = (long)(((selection.Bottom - selection.Top) / 2)+selection.Top); ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor; ColorBgra SecondaryColor = (ColorBgra)EnvironmentParameters.SecondaryColor; int BrushWidth = (int)EnvironmentParameters.BrushWidth; ColorBgra CurrentPixel; for(int y = rect.Top; y { for (int x = rect.Left; x { CurrentPixel = src[x,y]; // TODO: Add pixel processing code here // Access RGBA values this way, for example: // CurrentPixel.R = (byte)PrimaryColor.R; // CurrentPixel.G = (byte)PrimaryColor.G; // CurrentPixel.B = (byte)PrimaryColor.B; // CurrentPixel.A = (byte)PrimaryColor.A; dst[x,y] = CurrentPixel; } } } Obviously, you can't use the following variables: Amount1, Amount2, Amount3... etc. -- these are use for UI elements dst, src -- pointers to the destination and source surfaces rect -- rectangle of the current part of the selection that we are working on selection -- this is used to get the bounds of the current selection CenterX, CenterY -- used to point to the center pixel of the current selection PrimaryColor, SecondaryColor -- used to hold current color values BrushWidth -- used to hold the current brush width as set in the main PdN UI CurrentPixel -- used in the main loop for working with the current pixel x, y -- loop variables That's about it. Of course, there are others, but these are the obvious ones.
  6. Drawing to the source surface is bad, mkay? ...like "crossing the streams" bad. Don't do it. If you've never written an effect before, you should probably start here: http://www.boltbait.com/pdn/codelab/help/overview.html If you have additional questions after reading that page (and any linked pages that look interesting), just post them.
  7. Sorry, Oma, I read too quickly. Yes, you managed to describe in less than a thousand words what I needed a picture to describe. Anyway, I do not believe you can change the default colors. However, you can put your most used colors at the start of the palette and have easy access to them.
  8. After pressing the copy layer button, the new copy shows up higher in the layer list than the original and the new layer becomes highlighted. But, I have to ask... if the two layers are identical... does it matter?
  9. Heh. I never win, but it doesn't stop me from entering. The only one that I thought I should have won was the Tron one (or maybe the Jerbert one).
  10. Sorry, that level of automation is not currently supported by Paint.NET.
  11. Why not just use the one you found (above)? I usually do a Google Image Search (GIS) when I need something. Anyway, here's my attempt (which should show you why I usually stay out of threads like this): How about choosing 2 gold colors (one darker than the other), then render > clouds, add noise (color saturation 0), motion blur (dir 0, large distance). Draw a black border around your shape. Select that border (magic wand) and copy it to a new layer. Gaussian blur that layer. Lame, I know. But, hopefully it gives you some ideas.
  12. Yes. That's exactly it. I'm curious if another DLL is "messing" with my stuff. In fact, you may want to uninstall Paint.NET and completely delete the Paint.NET directory before reinstalling a fresh copy of Paint.NET and then installing the effect DLL files one-by-one.
  13. Yata, I would recommend taking ALL files out of your C:/Program Files/Paint.NET/Effects folder. Then, put each plugin back in, one-by-one, testing Paint.NET each time.
  14. Sure. Just be sure to save your file in .PDN format. You may also need to save your file in another format (jpg or png) for sharing with friends.
  15. Please use search. This has been asked for before... and shot down by Rick. Closing.
  16. Yata, I'm running the same setup and I don't see any problems. Seems like there must be something else going on there. Did the plugin DLL files get corrupted? How about Paint.NET, is it corrupted? Are the DLL files "unblocked"?
  17. Please don't ever use "anti-aliasing" and "very simple" in the same sentence. Thank you.
  18. This is typically how people choose colors in Paint.NET: http://www.getpaint.net/doc/latest/en/ColorsWindow.html
  19. I am giving this code to you. I will not be publishing it on my own site or plugin pack in its current state (and probably never). Any of the advanced coders can tell you that there are some obvious optimizations that should be made before it is ready for release. Seriously, I only wrote this in order to teach you how to do it.
  20. Here is another version of the one I posted above. It includes outline width and works with complex selections: BoltBaitOutlineSelection.zip And, here is the source (ugly, I know): // Author: BoltBait // Submenu: Selection #region UICode int Amount1 = 2; // [1,10] Outline Width ColorBgra Amount2 = ColorBgra.FromBgr(0,0,0); // Outline Color #endregion void Render(Surface dst, Surface src, Rectangle rect) { PdnRegion selectionRegion = EnvironmentParameters.GetSelection(src.Bounds); ColorBgra CurrentPixel; int Width=Amount1*2; int m,n; for(int y = rect.Top; y { for (int x = rect.Left; x { CurrentPixel = src[x,y]; for (int v=0; v { m = y-(Width/2)+v; if (m { m=0; CurrentPixel = Amount2; } if (m>=src.Height) { m=src.Height; CurrentPixel = Amount2; } for (int w=0; w { n = x-(Width/2)+w; if (n { n=0; CurrentPixel = Amount2; } if (n>=src.Width) { n=src.Width; CurrentPixel = Amount2; } if (!selectionRegion.IsVisible(n,m)) CurrentPixel = Amount2; } } dst[x,y] = CurrentPixel; } } } Anti-aliasing is an exercise left up to the reader.
×
×
  • Create New...