I want to create a long, skinny Image containing only text.
This makes a square image of the default size.
Image@Graphics[
{
FontSize->20,
Text["now is the time for all good men to come to the aid of their country"]
}
]

So I prescribe the dimensions I want:
Image@Graphics[
{
FontSize->20,
Text["now is the time for all good men to come to the aid of their country"]
},
ImageSize->{1000,30}
]

and the result is cropped well inside the ImageSize so some of the text is missing. But the Graphics alone is appearing correctly.
Graphics[
{
FontSize->20,
Text["now is the time for all good men to come to the aid of their country"]
},
ImageSize->{1000,30}
]

Why does Image mysteriously crop the input?
Answer
Image defaults to a certain size, but can be adjusted with its own ImageSize.
g=Graphics[{FontSize -> 20, Text["now is the time for all good men to come to the aid of their country"]};
Image[g, ImageSize -> {1000, 30}]
Comments
Post a Comment