Is there a method to measure (in pixel) width and height of an expression without making it to an Image
?
I found a method for measuring width and height of an expression in this forum,
but it uses Rasterize
and ImageDimensions
.
It means it uses unnecessary CPU or RAM resources.
Also it is less intuitive. Moreover, I think MMA FrontEnd already knows the answer!
If you double click the expression, MMA FrontEnd highlights the boundary of the expression in blue.
It means MMA FrontEnd knows the answer before making it into an image.
Rasterize[Style[x^2+y^2,40], "RasterSize"]
? $\endgroup$