Jump to content

Panhead

Members
  • Posts

    1,111
  • Joined

  • Last visited

Everything posted by Panhead

  1. there is one on dA, let me find it EDIT: http://skizatch.deviantart.com/art/Paint-NET-Icon-and-Logo-49639853
  2. i was kinda thinking the same thing, and that came from TLh
  3. the odd thing has to do with the top right corner, the code i tried was to figure out a different equation for when the canvas has dimensions like 801x801, and then run it only when the canvas had odd dimensions, which i know is rare to have a canvas like that, but still i would like to be efficient, i think i just need to learn the different resources that are available in the PDN program, like Math.Abs....i dont know what that is, i knew i had to know a ratio, but i just didnt know what the variables name was. ill try this code out in a little, i got to go do something
  4. hello, its Panhead (no duh) ive been messing around with codelab trying to make a plugin that creates a simple X on the canvas, so far i can only create an X on a square even dimensioned canvas, i know its simple 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 CurrentPixel; for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { long middleX = CenterX; long middleY = CenterY; long oddIdentifierY = (middleY % 2); long oddIdentifierX = (middleX % 2); CurrentPixel = src[x,y]; // TODO: Add pixel processing code here if ((oddIdentifierY == 1) && (oddIdentifierX == 1)) { if ((x == y - (y - x)) && (y == (( CenterY * 2) - x))) { // 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; } if (x == y) { CurrentPixel.R = (byte)PrimaryColor.R; CurrentPixel.G = (byte)PrimaryColor.G; CurrentPixel.B = (byte)PrimaryColor.B; CurrentPixel.A = (byte)PrimaryColor.A; } } if ((oddIdentifierY == 0) && (oddIdentifierX == 0)) { if ((x == y - (y - x)) && (y == (( CenterY * 2) - (x + 1)))) { // 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; } if (x == y) { CurrentPixel.R = (byte)PrimaryColor.R; CurrentPixel.G = (byte)PrimaryColor.G; CurrentPixel.B = (byte)PrimaryColor.B; CurrentPixel.A = (byte)PrimaryColor.A; } } dst[x,y] = CurrentPixel; } } } ok the first if statement isnt running, because when i run it on an odd canvas it still runs only the forth if statement, did i code the first one right? im not sure, if i can get this done, i will work on being able to do it on a rectangular canvas. any help would be appreciated
  5. hhhmmm ive been trying to learn C# this helps a little at the moment, i want to look over it more, that will probably help, i dont know if i know enough C# yet though :?
  6. so true, awesome work as usual Rick, cant wait to see what you give us next
  7. i believe there is a blood tut, and i suggest you read the rulesa topic like this just got locked here
  8. really, ok thats weird, oh i just thought of something, i wonder if it matters of how close the pen is to the pad....
  9. sometimes when im in PDN i will get this weird looking thing on the top left of my screen (see attachment) does anyone have any idea what this does or is? it usually only happens when i am using my pen tablet.
  10. is my custom brush work around any good :? :?:
  11. i have a bamboo too, it works great, you would have to ask Rick more about this, but PDN is PDN, its free, you get what he provides, or what any plugin authors provide
  12. do you have a writing tablet, you would need vista for PDN to work with one, well, the only one i have heard of working is a Wacom, and it works fine for me
  13. wwhaaa i just had a great, simple, incredible idea, if Rick were to be able to implement a feature on the clone stamp tool so that it doesnt move as you move, then we would have a great work around for custom brushes. i dont know what this entails, but i think it could work
  14. wow, amazing job wither, i mean, its excellent, very very good job, keep it up
  15. oh, i miss stated what i meant, i meant if you could do the paneling plugin with the move tool
  16. i have a couple requests is it possible to allow the user to change the primary color in the middle of a plugin a pan feature added to the move tool<< constraints on the elliptical selection similar to the rectangular selection
  17. not sure if this will help, but try duplicating, object outline, and a transparent gradient EDIT: nevermind, it doesnt
  18. think i found a bug, i had a picture open, then i tried to open a .cur file with pdn, and pdn just closed my open pic and opened the .cur file
  19. i dont know if i understand completely, wouldnt you just hold shift as you make your selection
  20. you can start with Withers basic tutorial let me find it ill post where it is EDIT:here it is http://paintdotnet.forumer.com/viewtopic.php?f=15&t=21605
  21. um, i like it, it would be really cool to get more lines inside the ribbon
×
×
  • Create New...