Zoom functionality

Hello, I’m currently working on a graphics program similar to Incscape, but I’ve been using Aseprite for a while and just love the zoom.

Would someone be so kind as to explain to me how the zoom works behind the scenes for Aseprite please?

A little more background my program is in C#, javascript, html and css using Blazor. I know that Aseprite is made using C++, but I can definitely learn something if you explain how it works :).

If this is the wrong place to ask this type of question please refere me to the right place :).

Thanks in advance!