Hello sir/mem i m making Desktop App in java Swing for doctor.I want to find each pixel value not count between two points.suppose i have one point (100,145) and second point is (173,190) and i want to get pixel between this two points.means every pixels of (x,y) value between that two points.so how can i do that?
Look up the Bresenham algorithm. Here is an implementation in Java.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With