I have an image assigned to myPicture
myPicture =
Image[myPicture, ImageSize -> {500, 300}]
I get result like this, after evaluation:
My problem is that the image is not fitted to the rectangle. How can I solve that one?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityI have an image assigned to myPicture
myPicture =
Image[myPicture, ImageSize -> {500, 300}]
I get result like this, after evaluation:
My problem is that the image is not fitted to the rectangle. How can I solve that one?
ImageResize[myPicture, {500, 300}]
or
Show[myPicture, ImageSize -> {500, 300}, AspectRatio -> 3/5]
or, more generally,
Show[myPicture, ImageSize -> {500, 300}, AspectRatio -> Full]