I am trying to make an image out of a graphic, which is a rectangle with given size.
However, the dimension of the image do not correspond to the size given to the rectangle:
im = Image[Graphics[Rectangle[{0, 0}, {10, 20}]]];
ImageDimensions[im]
{221, 432}
Anyone knows how to do it ?
im = Image[ Graphics[Rectangle[{0, 0}, {10, 20}], ImageSize -> {10, 20}]]
? $\endgroup$