15,793,139 members
Home / Discussions / Graphics

# Graphics

 Re: 3D Model for game AmitDey23-Sep-08 23:17 AmitDey 23-Sep-08 23:17
 can someone help me in designing my MDi or my mainform.. cutedrew20-Sep-08 23:52 cutedrew 20-Sep-08 23:52
 Re: can someone help me in designing my MDi or my mainform.. Smithers-Jones24-Sep-08 1:32 Smithers-Jones 24-Sep-08 1:32
 Particle Deposition Neil Ramirez17-Sep-08 17:39 Neil Ramirez 17-Sep-08 17:39
 Re: brush problem in c#... oobimoo17-Sep-08 9:32 oobimoo 17-Sep-08 9:32
 Re: brush problem in c#... Syed Mehroz Alam17-Sep-08 16:48 Syed Mehroz Alam 17-Sep-08 16:48
 Re: brush problem in c#... Dan17-Sep-08 20:16 Dan 17-Sep-08 20:16
 The best way to handle this situation is to use an interpolation function to create a curve that smoothly joins the input points of the mouse. The easiest pseudo sample is below, but you can expand it to use bicubic or any spline function. ```void DrawPoint( double x, double y ) { ...paint single brush dab. } void DrawLine( double x0, double y0, double x1, double y1, double spacing ) { // get delta double dx = x1-x0; double dy = y1-y0; // Get length double dist = sqrt( dx * dx + dy * dy ); // Normalize dx *= 1.0 / dist; dy *= 1.0 / dist; // Travel down the line ( x0, y0 ) ( x1, y1 ) for ( double p = spacing; p <= dist; p+= spacing ) { // Draw a single point at spacing pixels apart. double px = x0 + p * dx; double py = y0 + p * dy; DrawPoint( px, py ); } } void MyPaintCode( ) { for ( int i = 0; i < NumberofPoints; i++ ) { // Draw lines between input points with 1 pixel spacing. PaintLine( Input_x[ i ], Input_y[ i ], 1.0 ); } }```
 Capture Video Harvey Saayman17-Sep-08 7:18 Harvey Saayman 17-Sep-08 7:18
 Re: Capture Video Tim Craig17-Sep-08 15:03 Tim Craig 17-Sep-08 15:03
 Re: Capture Video Dave Kreskowiak17-Sep-08 18:14 Dave Kreskowiak 17-Sep-08 18:14
 Re: High Quality Real Vista Icons Dave Kreskowiak17-Sep-08 18:13 Dave Kreskowiak 17-Sep-08 18:13
 glReadPixels problem Tomas(cz)15-Sep-08 22:39 Tomas(cz) 15-Sep-08 22:39
 Re: glReadPixels problem Steve Echols17-Sep-08 20:56 Steve Echols 17-Sep-08 20:56
 Shoemake's Mysterious Translation Controller [modified] Steve Katic14-Sep-08 14:07 Steve Katic 14-Sep-08 14:07
 [Message Deleted] Steve Katic14-Sep-08 14:35 Steve Katic 14-Sep-08 14:35
 Re: Shoemake's Mysterious Translation Controller (Take Two) Tim Craig14-Sep-08 15:34 Tim Craig 14-Sep-08 15:34
 Re: Shoemake's Mysterious Translation Controller (Take Two) Steve Katic14-Sep-08 15:55 Steve Katic 14-Sep-08 15:55
 Re: Shoemake's Mysterious Translation Controller (Take Two) [modified] Steve Katic14-Sep-08 16:13 Steve Katic 14-Sep-08 16:13
 Create real time graphical line chart from data save in txt file format yefeng_law13-Sep-08 7:52 yefeng_law 13-Sep-08 7:52
 Re: Create real time graphical line chart from data save in txt file format Tim Craig13-Sep-08 13:03 Tim Craig 13-Sep-08 13:03
 Re: Create real time graphical line chart from data save in txt file format yefeng_law20-Sep-08 8:15 yefeng_law 20-Sep-08 8:15
 Re: Create real time graphical line chart from data save in txt file format Tim Craig21-Sep-08 19:25 Tim Craig 21-Sep-08 19:25
 Strange error capturing the desktop to a bitmap rikshot13-Sep-08 6:48 rikshot 13-Sep-08 6:48
 Re: Strange error capturing the desktop to a bitmap Mark Salsbery13-Sep-08 10:05 Mark Salsbery 13-Sep-08 10:05
 Last Visit: 31-Dec-99 19:00     Last Update: 2-Dec-23 21:19 Refresh ᐊ Prev1...33343536373839404142 Next ᐅ