Rect.roundToPixel
graphene.rect.Rect roundToPixel()Rounds the origin and the size of the given rectangle to their nearest integer values; the rounding is guaranteed to be large enough to contain the original rectangle.
Returns
the pixel-aligned rectangle.
Deprecated
Use [graphene.rect.Rect.round] instead