programmers-lounge-basicgraphics.blogspot.com
Programmers Lounge - Graphics Basics: Bresenham's Line (for slope 0 to 1)
http://programmers-lounge-basicgraphics.blogspot.com/2007/08/bresenhams-line-for-slope-0-to-1.html
Programmers Lounge - Graphics Basics. All the basic graphics programs goes here. Friday, August 17, 2007. Bresenham's Line (for slope 0 to 1). Bresenham's Line Implementation for 0 =m =1 and drawing from left to right. - Subhranath Chunder */. X1,y1,x2,y2;. Printf( "Enter the co-ordinates of the first point (a b): ". Printf( "Enter the co-ordinates of the second point (a b): ". Printf( " Press any key to continue ". Initgraph(&driver,&mode, "F: TC BGI". LineBres(x1,y1,x2,y2);. Error . 5. Putpixel(x,y, 2.
programmers-lounge-basicgraphics.blogspot.com
Programmers Lounge - Graphics Basics: August 2007
http://programmers-lounge-basicgraphics.blogspot.com/2007_08_01_archive.html
Programmers Lounge - Graphics Basics. All the basic graphics programs goes here. Friday, August 17, 2007. Midpoint ellipse algorithm - Subhranath Chunder */. X,y,rx,ry,driver=DETECT,mode;. Printf( "Enter the co-ordinate of the center of the elipse: ". Printf( "Enter the radius along x-axis: ". Printf( "Enter the radius along y-axis: ". Printf( " Press any key to continue ". Initgraph(&driver,&mode, "f: tc bgi". EllipseMidPoint(x,y,rx,ry);. Y=ry,a,b;. SetOthers(x,y,xCenter,yCenter);. X pow(rx, 2. CircleMi...
programmers-lounge-basicgraphics.blogspot.com
Programmers Lounge - Graphics Basics: Mid-point Circle Translation
http://programmers-lounge-basicgraphics.blogspot.com/2007/08/mid-point-circle-translation.html
Programmers Lounge - Graphics Basics. All the basic graphics programs goes here. Friday, August 17, 2007. Midpoint circle translation in homogeneous coordinate form - Subhranath Chunder */. X,y,radius,driver=DETECT,mode,xt,yt;. Mid-point and radius of the circle are accepted */. Printf( "Enter the co-ordinate of the centre: ". Printf( "Enter the radius of the circle: ". Printf( " Press any key to continue ". Graphics mode initialized */. Initgraph(&driver,&mode, "F: tc bgi". CircleMidPoint(x,y,radius, 0.
programmers-lounge-basicgraphics.blogspot.com
Programmers Lounge - Graphics Basics: Mid-point Circle Algorithm
http://programmers-lounge-basicgraphics.blogspot.com/2007/08/mid-point-circle-algorithm.html
Programmers Lounge - Graphics Basics. All the basic graphics programs goes here. Friday, August 17, 2007. Midpoint circle algorithm - Subhranath Chunder */. X,y,radius,driver=DETECT,mode;. Printf( "Enter the co-ordinate of the centre: ". Printf( "Enter the radius of the circle: ". Printf( " Press any key to continue ". Initgraph(&driver,&mode, "F: tc bgi". CircleMidPoint(x,y,radius);. SetOthers(x,y,xCenter,yCenter);. SetOthers(x,y,xCenter,yCenter);. SetPixel(xCenter x,yCenter y);. Putpixel(x,y, 2.
programmers-lounge-basicgraphics.blogspot.com
Programmers Lounge - Graphics Basics: DDA Line Implementation
http://programmers-lounge-basicgraphics.blogspot.com/2007/08/dda-line-implementation.html
Programmers Lounge - Graphics Basics. All the basic graphics programs goes here. Friday, August 17, 2007. DDA Line Implementation - Subhranath Chunder */. X1,y1,x2,y2;. Printf( "Enter the co-ordinates of the first point (a b): ". Printf( "Enter the co-ordinates of the second point (a b): ". Printf( " Press any key to continue ". Initgraph(&driver,&mode, "F: TC BGI". LineDDA(x1,y1,x2,y2);. Putpixel(x,y, 2. Thank u for giving such a help. February 22, 2010 at 2:57 PM. Subscribe to: Post Comments (Atom).
programmers-lounge-basicgraphics.blogspot.com
Programmers Lounge - Graphics Basics: Mid-point Circle Scaling
http://programmers-lounge-basicgraphics.blogspot.com/2007/08/mid-point-circle-scaling.html
Programmers Lounge - Graphics Basics. All the basic graphics programs goes here. Friday, August 17, 2007. WAP to generate a circle. Write a function to scale the circle by sx amount in x-direction and sy amount in y-direction, where sx and sy are integers provided by the user. Use matrix method. - Subhranath Chunder */. X,y,radius,driver=DETECT,mode,sx,sy;. Mid-point and radius of the circle are accepted */. Printf( "Enter the co-ordinate of the centre: ". Printf( "Enter the radius of the circle: ".
programmers-lounge-basicgraphics.blogspot.com
Programmers Lounge - Graphics Basics: Mid-point Ellipse Algorithm
http://programmers-lounge-basicgraphics.blogspot.com/2007/08/mid-point-ellipse-algorithm.html
Programmers Lounge - Graphics Basics. All the basic graphics programs goes here. Friday, August 17, 2007. Midpoint ellipse algorithm - Subhranath Chunder */. X,y,rx,ry,driver=DETECT,mode;. Printf( "Enter the co-ordinate of the center of the elipse: ". Printf( "Enter the radius along x-axis: ". Printf( "Enter the radius along y-axis: ". Printf( " Press any key to continue ". Initgraph(&driver,&mode, "f: tc bgi". EllipseMidPoint(x,y,rx,ry);. Y=ry,a,b;. SetOthers(x,y,xCenter,yCenter);. X pow(rx, 2.
programmers-lounge-basicgraphics.blogspot.com
Programmers Lounge - Graphics Basics: Line Translation (DDA used here)
http://programmers-lounge-basicgraphics.blogspot.com/2007/08/line-translation-dda-used-here.html
Programmers Lounge - Graphics Basics. All the basic graphics programs goes here. Friday, August 17, 2007. Line Translation (DDA used here). WAP to generate a line using DDA. Write a function to translate the line by tx amount in x-direction and ty amount in y-direction, where tx and ty are integers provided by the user. Use matrix method. - Subhranath Chunder */. X1,y1,x2,y2,xt,yt;. Two end-points of the line are accepted */. Printf( "Enter the co-ordinates of the first point (a b): ". X and y is plotted...
programmers-lounge-basicgraphics.blogspot.com
Programmers Lounge - Graphics Basics: Rectangle using Bresenham's line
http://programmers-lounge-basicgraphics.blogspot.com/2007/08/rectangle-using-bresenhams-line.html
Programmers Lounge - Graphics Basics. All the basic graphics programs goes here. Friday, August 17, 2007. Rectangle using Bresenham's line. WAP to draw a rectangle whose lower left corner, length and breadth are provided by the user. Use Bresenham’s algorithm to draw the sides of the rectangle - Subhranath Chunder */. X,y,length,breadth;. Printf( "Enter the co-ordinates of the lower left corner (a b): ". Printf( "Enter the length of the rectangle: ". Printf( "Enter the breadth of the rectangle: ". Rectan...