I found a solution, but I fear it might be too time-intensive so I'm open to other solutions.
My solution was to find the image pixels with coordinates closest to each edge of the line, then use their indices as the 2D plot coordinates. However, this requires that I perform 192 x 192 operations for each end of the line, so I'm not sure if this will be viable for an interactive display.