Adjusts integer bounds so they align with the resolution grid.
This ensures that the width and height of the bounds are evenly divisible
by the resolution, centering the snapped bounds around the original center.
- Parameters:
bounds (tuple of int) – (minx, miny, maxx, maxy) in integer units.
resolution (int or tuple of int) – Desired resolution per axis.
- Returns:
tuple of int – Snapped bounds aligned to the resolution grid.