public IEnumerable<PointF> GetPixelCoordinates()
{
Rectangle bounds = GetBoundingBoxRounded(true);
for (int x = bounds.Left; x <= bounds.Right; x++)
{
for (int y = bounds.Top; y <= bounds.Bottom; y++)
{
PointF p = new PointF(x, y);
if (Contains(p))
yield return p;
}
}
}