Rendering Project Data with Format24bppRgb

Rendering Project Data to Format24bppRgb and Controlling the Horizontal and Vertical Resolution Format24bppRgb specifies that the format is 24 bits per pixel; 8 bits each are used for the red, green, and blue components. Aspose.Tasks has the capability to render the project to Format24bppRgb by providing public property ImageSaveOptions.PixelFormat. Also the horizontal and vertical resolution in dpi can be controlled using ImageSaveOptions.HorizontalResolution and ImageSaveOptions.VerticalResolution.

 1// For complete examples and data files, please go to
 2// The path to the documents directory.
 3String dataDir = Utils.getDataDir(RenderDataWithFormate24bppRgb.class);
 5Project project = new Project(dataDir + "file.mpp");
 6ImageSaveOptions options = new ImageSaveOptions(SaveFileFormat.TIFF);
 9options.setPixelFormat(PixelFormat.Format24bppRgb); + "resFile.tif", options);
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.