Jump to content

bresenhem's line drawing algorithm

Featured Replies

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

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.