Bug introduced in 13.1 or earlier
I am using Rasterize
on a Graphics
object (because I want to count the number of black and white pixels). However, applying it introduces a new, blank area into the rasterized version of the Graphics
object (see the image below). Why is this and how to avoid it?
EDIT: The code used to generate the Graphics
object:
posList = Table[
{RandomReal[{0, 1}], RandomReal[{0, 1/29}]}
, {n, 1, 100}];
graphics = Graphics[{
EdgeForm[None], Black,
Table[Ellipsoid[posList[[n]], {0.5/29, 0.5/29}/2], {n,1,100}]
}, PlotRange -> {{0, 1}, {0, 1/29}}];
Graphics
, useGraphics[..., PlotRangePadding -> 0]
. $\endgroup$ImageMargins
andImagePaddings
. $\endgroup$