SeedRandom[8]
plot = ParametricPlot[
Evaluate@BezierFunction[temPoint = RandomReal[{-50, 50}, {5, 2}]][
t], {t, 0, 1}, AxesOrigin -> {0, 0}]
We can hightlight a random point in this graphics.
SeedRandom[3]
Show[plot,
Epilog -> {Red, AbsolutePointSize[10],
Point[randomPoint =
RandomReal /@ RegionBounds@DiscretizeGraphics[plot]]}]
We can change the plot
to image.
Image[plot]
Then its coordinate system will be a image coordinate system.To guarantee the randomPoint
be the original graphics' position in the new coordinate system,I use RescalingTransform
try to implement this target.
HighlightImage[
Image[plot], {Red, PointSize[.03],
Point[RescalingTransform[
First@Values[AbsoluteOptions[plot, PlotRange]],
Transpose[{{0, 0}, ImageDimensions@Image[plot]}]]@randomPoint]}]
But as you see,there is a error in this method obviously.