Gabrol Posted June 11, 2007 Share Posted June 11, 2007 well... I use PDN to make Isometric Pixel Art, but the lines doesn't reeeaaally helps Quote Link to comment Share on other sites More sharing options...
Racingdj08 Posted June 11, 2007 Share Posted June 11, 2007 hold shift to make a perfectly straight line Quote My to be Gamertag for Xbox 360: RaDJ038v2 Currently it is: RacingDJ0388 Forget the gamertag change. Its fine. Link to comment Share on other sites More sharing options...
Gabrol Posted June 11, 2007 Author Share Posted June 11, 2007 Holding Shift Green=how it must be PS: I can make perfect lines with mspaint .-. Quote Link to comment Share on other sites More sharing options...
BoltBait Posted June 11, 2007 Share Posted June 11, 2007 If you are doing pixel art, what are you doing using the line tool? True pixel artists would never use anything but the pencil tool. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Computer Dominos Game Link to comment Share on other sites More sharing options...
Gabrol Posted June 11, 2007 Author Share Posted June 11, 2007 Lol, if i use only the pencil, it will be bore XD( and a LOT of people make iso pixel art with lines 2x1 .-.") and what about the line? Quote Link to comment Share on other sites More sharing options...
drakaan Posted June 11, 2007 Share Posted June 11, 2007 Holding ShiftGreen=how it must be PS: I can make perfect lines with mspaint .-. I was about to mention various and sundry things about slopes and those lines' slopes being different, etc, but then I tries to do what (I think) the poster is trying to do. He's right (to my surprise)...If I make a 200 x 100 px image and try to carefully draw a non-antialiased line from corner to corner, it has a varying slope. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted June 11, 2007 Share Posted June 11, 2007 Holding shift constrains the line to an angle that is a multiple of 15 degrees. The angle you want, if you build the triangle and solve it (opposite edge is 1, adjacent edge is 2, hypotenuse is sqrt(5)), is not a multiple of 15 degrees. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
barkbark00 Posted June 11, 2007 Share Posted June 11, 2007 Repro: Draw a 1px non-AA diagonal line 200px across and 100px down in MSPaint. Then do the same thing in PdN. Results don't match... :? Quote  Take responsibility for your own intelligence. -Rick Brewster Link to comment Share on other sites More sharing options...
drakaan Posted June 11, 2007 Share Posted June 11, 2007 Repro:Draw a 1px non-AA diagonal line 200px across and 100px down in MSPaint. Then do the same thing in PdN. Results don't match... :? Wow...this just hit me. Are we *seriously* saying that we wish PDN was more like MS Paint? :shock: Quote Link to comment Share on other sites More sharing options...
Ash Posted June 11, 2007 Share Posted June 11, 2007 Wow...this just hit me.Are we *seriously* saying that we wish PDN was more like MS Paint? :shock: I would guess at least in this case. Quote All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ] Link to comment Share on other sites More sharing options...
barkbark00 Posted June 11, 2007 Share Posted June 11, 2007 Repro:Draw a 1px non-AA diagonal line 200px across and 100px down in MSPaint. Then do the same thing in PdN. Results don't match... :? Wow...this just hit me. Are we *seriously* saying that we wish PDN was more like MS Paint? :shock: For a while I was a serious "fanboy" of MS Paint's skew option...until MadJik put the Oblique Effect Plugin out there! Quote  Take responsibility for your own intelligence. -Rick Brewster Link to comment Share on other sites More sharing options...
Gabrol Posted June 12, 2007 Author Share Posted June 12, 2007 Repro:Draw a 1px non-AA diagonal line 200px across and 100px down in MSPaint. Then do the same thing in PdN. Results don't match... :? Wow...this just hit me. Are we *seriously* saying that we wish PDN was more like MS Paint? :shock: For a while I was a serious "fanboy" of MS Paint's skew option...until MadJik put the Oblique Effect Plugin out there! lol, another bore way to make perfect lines XD Do it's impossible to create a plugin with "Paint Lines" ? Quote Link to comment Share on other sites More sharing options...
BoltBait Posted June 12, 2007 Share Posted June 12, 2007 Do it's impossible to create a plugin with "Paint Lines" ? I have already written that plugin: http://paintdotnet.12.forumer.com/viewtopic.php?t=3409 Quote Download: BoltBait's Plugin Pack | CodeLab | and a Computer Dominos Game Link to comment Share on other sites More sharing options...
barkbark00 Posted June 12, 2007 Share Posted June 12, 2007 With the Arrow plugin I get this in a 200x100 selection(brush width set to 1px): Magnified: Quote  Take responsibility for your own intelligence. -Rick Brewster Link to comment Share on other sites More sharing options...
Gabrol Posted June 12, 2007 Author Share Posted June 12, 2007 Do it's impossible to create a plugin with "Paint Lines" ? I have already written that plugin: http://paintdotnet.12.forumer.com/viewtopic.php?t=3409 It's really next, but not perfect x/ Quote Link to comment Share on other sites More sharing options...
MadJik Posted June 13, 2007 Share Posted June 13, 2007 Short solution using CodeLab and based on the Drawline function from BoltBait: int Amount1=1; //[0,1] Orientation 0=up-down;1=down-up void Render(Surface dst, Surface src, Rectangle rect) { PdnRegion selectionRegion = EnvironmentParameters.GetSelection(src.Bounds); Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); int x1,y1,x2,y2; if (Amount1==0) { x1=selection.Left; y1=selection.Top; x2=selection.Right; y2=selection.Bottom; } else { x1=selection.Left; y2=selection.Top; x2=selection.Right; y1=selection.Bottom; } 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++) if (selectionRegion.IsVisible(x, y)) dst[x,y] = src[x,y]; DrawLine(x1,y1,x2,y2, dst, PrimaryColor, selectionRegion); } 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=Math.Abs(x2-x1); dy=Math.Abs(y2-y1); if(Math.Abs(dx)>Math.Abs(dy)) l=dx; else l=dy; xi=2*dx/l; yi=2*dy/l; if ((x2 { if (xi>=1.5) {xi=2;yi=-1;} else if (yi>=1.5) {xi=1;yi=-2;} } else { if (xi>=1.5) {xi=2;yi=1;} else if (yi>=1.5) {xi=1;yi=2;} } 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 / 2.0; y = y + yi / 2.0; roundx = x + 0.5; roundy = y + 0.5; if (selectionRegion.IsVisible((int)roundx, (int)roundy)) { dst[(int)roundx, (int)roundy] = LineColor; } } } EDIT:Amount1 to change the orientation... Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.