ALINE - Draw grid on canvas

I’m looking for some guidance to drawing with ALINE in canvas. I have a large user supplied image I’m trying to draw a grid over. Is there a feature to scale a grid with canvas?

Here’s my simple example which illustrates my problem. Any thoughts?

    public void Update()
    {
        //obviously don't do this.
        var rect = GameObject.Find("SpriteSheet").GetComponent<RectTransform>(); 

        using (draw.InLocalSpace(rect)) {
            Draw.ingame.WireGrid(
                Vector3.zero,
                Quaternion.Euler(-90f, 0f, 0f),
                new int2(32, 32),
                new float2(32, 32),
                Color.gray
            );
        }
    }

Hi

I’m not quite sure what you are asking?
If you want to draw a grid in screen space I’d recommend

var tileSize = 5;
using(Draw.ingame.InScreenSpace(camera)) {
     Draw.ingame.WireGrid(new Vector3(Screen.width*0.5, Screen.height * 0.5, 0.0), Quaternion.Euler(-90f, 0f, 0f), new int2((int)Screen.width/tileSize), (int)Screen.height/tileSize)), new float2(tileSize, tileSize));
}