Jump to content

MadJik

Members
  • Posts

    2,690
  • Joined

  • Last visited

  • Days Won

    68

Everything posted by MadJik

  1. New journey with PDN effects and plugins. It ends up with this ! I call it : Visiteur
  2. The second is: We are still wishing to have a tut for this
  3. I use photobucket.com without problem... few ADS (c'est la pub et les popups, sur soundclick j'ai meme eu un programme qui voulait s'installer tout seul )
  4. I was looking for buttons maker / texturing stuff for web creating. I had a try with PDN and I adopt it at once. Now I'm digging around its possibilities, reading the forums (GD, plugins, tuts...) and contributing when I can (bubbles, eyes...). Also it makes me approach the C# language (thx CodeLab). So mainly I use PDN for web and textures... To Tubular tos: http://www.soundclick.com is ADS a lot ! I download your music. It sounds good =))) as background when creating new PDN... PS:The pictures on the site are too small.
  5. Keyboard Z and Mouse right click to zoom out the drawing area (not the image)! Then M and drag to place correctly the picture... Could you post the picture to let us see the problem?
  6. ===> try to zoom out 50% or 25% then you will see all the corner of your pasted pict. Drag it to move it where you want....
  7. If you are talking about photo quality then you aren't working the good way: you should try to work with the largest picture instead downsizing it. You will be much more fine in your manipulation. And when finished you could make copies resized to a smaller size.
  8. yes because you image is too small but you could drag the circle down right and move the selection up left till you image is in the area... it is not easy in this way. I suggest you to open first you picture, resize it before you copy/paste it !
  9. Nether do I. But maybe you can use the selection tool to select the size you want. And then crop to selection. V2.72 it does work but it is a good idea !
  10. Hi, When you add a new layer you can't resize it. It has the image size. When you copy/paste external picture that is larger than the actual image size, you have the question to enlarge or keep the size. If you say Yes:enlarge then the image (all the layer) will have the size of the pasted picture. Else No:keep size then you could move the pasted picture to place a part of it to the image area AND/OR resize the pasted picture. (to resize drag the circle at the corner of the selection) Tuts are one thing. But you also have general description of the tools in the help file of PDN. :wink: I hope been clear enough to help...
  11. Bubble vs Orb ... Glass vs Plastic ... etc It is a matter of taste. My last use of a bubble:
  12. Pro Evolution Soccer is a Football Game. PS2 is Play Station II. He want to personalize the witdh advertising screen behind the goals. So I'm afraid it isn't doable to send PC image file to PS2...
  13. Well, I'm not able to explain sin/cos here in english... Also it is difficult to pre-evaluate the curve we will obtain when we change CoefA or CoefB or CoefC. First formula is : RO = sin( CoefA * ANGLE / CoefB) This is a simple sinus curve. Then to draw a circle we need to calculate X,Y X = Radius * cos(ANGLE) Y = Radius * sin(ANGLE) Radius is normaly a "fix" value. if you put that in a loop for ANGLE = -PI to PI you could plot a circle. But in this program instead Radius, we use the first formula. It means the radius is changing at each plot... CoefA is the number of period for the sinus curve (in a period sin goes like this : 0...-1...0...1...0). Each -1 or 1 is a peak. If CoefA = 2 then we have 4 peaks. 6 : 12 peaks, etc... CoefB is a decal factor. CoefB=1 : no decal. You could see that I'm calling the peaks ! Experiment differentes values to feel how it works... Test (CoefC = CoefB): CoefA=2 CoefB=1 CoefA=6 CoefB=1 CoefA=7 CoefB=6 Change the type from Integer to Float and test CoefA=2 CoefB=0.5 CoefA=1.5 CoefB=1 (the fly) CoefC should be equal to CoefB if we want to have all periods finished. If we choose CoefC < CoefB then we obtain an "open" curve. If we choose CoefC > CoefB then we redraw on the same plots. It's too much plots. NB: In the formula we have : CoefA / CoefB It means CoefA=1/CoefB=2 is same as CoefA=2/CoefB=4 ,CoefA=3/CoefB=6, etc... I have an excel file with the graph function PM me if you want it... I have used some curves and polar inversion to do this: http://paintdotnet.12.forumer.com/viewtopic.php?p=16898#16898
  14. SpiroShapes aka Drawing Curved Shapes What's this? Based directly on BoltBait code for his Polygon.dll, another way to draw amazing lines/curves: EDIT: Old CodeLab code replaced by plugin presentation! I've called it SpiroShapes, because it makes me think about the 'drawing machine' Spirograf. Some examples... here is the DLL The MadJik's All plugins package is available ! http://forums.getpaint.net/index.php?showtopic=7186 How to install Close Paint.net Classic version of Paint.net Unzip and (re)place the DLL in your Effect folder usually: C:/Program Files/Paint.NET/Effects Microsoft Store version of Paint.net Unzip and (re)place the DLL in your Effect folder usually: /My Documents/paint.net App Files/Effects/ You have to adapt for your language My Documents The User interface This plugin is added to the menu Effects, submenu Render.
  15. I tried to redo your red eye and post a tut here... http://paintdotnet.12.forumer.com/viewtopic.php?p=16828#16828 Not exactly the same but it does it!
  16. No problem! I'm also sharing ideas :wink: I'm not c# users. But I know differents other programming languages so I can manage to adapt some code lab. I was just trying to make your code working and add some ideas but I didn't test every cases to find out bugs (if any).
  17. Color mixture art :?: :idea: or big image to extract smaller parts for buttons
  18. Buzzkill: my pleasure :wink: El Sid: Nice one, nice sig as well :!:
  19. Test also with other values : int verticies =9; // number of points (3-10?), default 5, slider double angfact = 4; // angle factor to draw
  20. Hi I have got an error line 43: ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor; PrimaryColor isn't recognize (paint 2.72!) I change it to ColorBgra PrimaryColor = (ColorBgra) 0; for the tests. Try this code to have stars: void Render(Surface dst, Surface src, Rectangle rect) { int rpercent = 95; // percent of radius (1-100), default 100, slider int verticies = 5; // number of points (3-10?), default 5, slider int rotation = 0; // degrees to rotate the shape (0-359), default 0, slider double angfact = 2; // angle factor to draw crossing lines, default 1, slider PdnRegion selectionRegion = EnvironmentParameters.GetSelection(src.Bounds); Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); // Because I have to reset the destination every time // this is reeeeeaaaaallllly slow for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { if (selectionRegion.IsVisible(x, y)) { dst[x,y] = src[x,y]; } } } // If this was a tool, this is where the starting nub is located long CenterX = (long)(((selection.Right - selection.Left) / 2)+selection.Left); long CenterY = (long)(((selection.Bottom - selection.Top) / 2)+selection.Top); // calculate actual radius // If this was a tool, you should calculate this from the second nub location double r = (double)(Math.Min(CenterX-selection.Left,CenterY-selection.Top)/100.0*rpercent); ColorBgra PrimaryColor = (ColorBgra) 0; ColorBgra CurrentPixel; double th = 360.0/verticies; double X1 = 0, Y1 = 0, X2 = 0, Y2 = 0; double angle = 0; // Find the first vertex angle = Math.PI * ((th ) + rotation) / 180.0; X1 = (r * Math.Cos(angle*angfact)) + CenterX; Y1 = (r * Math.Sin(angle*angfact)) + CenterY; for (int P = 0; P<=verticies; P++) { // Find next end point (X2,Y2) angle = Math.PI * ((th * P) + rotation) / 180.0; X2 = (r * Math.Cos(angle*angfact)) + CenterX; Y2 = (r * Math.Sin(angle*angfact)) + CenterY; // Draw line from (X1,Y1) to (X2,Y2) DrawLine((int)X1,(int)Y1,(int)X2,(int)Y2, dst, PrimaryColor, selectionRegion); // Get ready for the next line X1 = X2; Y1 = Y2; } } void DrawLine(int x1, int y1, int x2, int y2, Surface dst, ColorBgra LineColor, PdnRegion selectionRegion) { int i; double roundx,roundy,xi,yi,dx,dy,x,y,l; dx=x2-x1; dy=y2-y1; if(Math.Abs(dx)>Math.Abs(dy)) { l=dx; } else { l=dy; } if (l<0) { DrawLine(x2,y2,x1,y1,dst,LineColor,selectionRegion); } else { xi=dx/l; yi=dy/l; x=x1; y=y1; if (selectionRegion.IsVisible((int)x, (int)y)) { dst[(int)x, (int)y] = LineColor; } for(i=1;i<=l;i++) { x=x+xi; y=y+yi; roundx=x+0.5; roundy=y+0.5; if (selectionRegion.IsVisible((int)roundx, (int)roundy)) { dst[(int)roundx, (int)roundy] = LineColor; } } } }
  21. Well it was one of my first orb... but ok now I am able to do better than that. Old AV: New AV:
×
×
  • Create New...