Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+21 votes

we're able to make our canvas and the pane that wraps the canvas to have the same width and height by:

videoCanvas.widthProperty().bind(paneHoldingVideoCanvas.widthProperty());
videoCanvas.heightProperty().bind(paneHoldingVideoCanvas.heightProperty());
videoCanvas.widthProperty().addListener((obs, oldV, newV) -> repaintCanvas());
videoCanvas.heightProperty().addListener((obs, oldV, newV) -> repaintCanvas());

but they dont have the same start point, so basically they are not completely in the same place. What should we do now?

asked in CSC285_Fall2018 by (100 points)

1 Answer

+7 votes

If you used a StackPane to place your canvas and ImageView objects, then I think these previous to Q&As would help? Sorry if this isn't what you meant.

http://lovelace.augustana.edu/q2a/index.php/248/how-to-draw-points-display-them-on-the-video

and resizing help,

http://lovelace.augustana.edu/q2a/index.php/246/there-properties-the-video-resize-the-imageview-the-canvas

answered by (100 points)
...