17. How To Tutorial # 5: How to change the output image resolution
The X and Y resolution of the rendered output image is set with the Nt_RESOLUTION
option of the command. See the Nt_RESOLUTION option in for further information.
The following snippet of C code shows how to set the output
resolution to 320x200:
resolution_example()
{
Nd_Int Nv_XY_Res_Params[2];
/* Set the output resolution to 320x200 pixels */
Nv_XY_Res_Params[Na_X_VALUE] = 320;
Nv_XY_Res_Params[Na_Y_VALUE] = 200;
Ni_Option(Nt_RESOLUTION, (Nd_Int *) Nv_XY_Res_Params, Nt_CMDEND);
}