// Load the MPP file
Project project = new Project("SourceDirectory\\Tasks\\project_test.mpp");

// Create an instance of the ImageSaveOptions class
ImageSaveOptions options = new ImageSaveOptions(SaveFileFormat.BMP);

// Save the BMP image
project.Save("OutputDirectory\\image_out.bmp", (SaveOptions)options);