3D to 2D using Grasshopper

Hi there!
I’m using a C# script to save images of grasshopper viewport. Let’s say there is a 3D point A. Is it possible to obtain the pixel coordinates (x,y) of this point A with respect to the image that I’m saving using the C# script? I tried using the make2D but couldn’t get it working using Grasshopper.