pankajkumar Posted May 30, 2013 Posted May 30, 2013 how to find pixels required for generating a line from(0,0) to (10,5) initial calculation- x=0 y=0 Δx=x2-x1 = 10-0= 10 Δy=y2-y1, 5-0, 5→2Δy=10 m= Δy/Δx = 5/10 = 1/2 2Δy-2Δx = 10-20 = -10 first plot(0,0) now incrementing through main loop yields next plots. now how to find next plot. i am confuse here
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now