How to find every pixel between two points in java?

Hi sir / mem im creating a desktop application in java Swing for doctor.I want every pixel value not to be counted between two points. Suppose I have one point (100,145), and the second point (173 190), and I want to get a pixel between these two points. Each pixel (x, y) has a value between these two points. How can i do this?

+3
source share
1 answer

Check out Breshenem's algorithm . Here is a Java implementation.

+7
source

All Articles