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 https://github.com/aspose-tasks/Aspose.Tasks-for-Java
 2// The path to the documents directory.
 3String dataDir = Utils.getDataDir(RenderDataWithFormate24bppRgb.class);
 4
 5Project project = new Project(dataDir + "file.mpp");
 6ImageSaveOptions options = new ImageSaveOptions(SaveFileFormat.TIFF);
 7options.setHorizontalResolution(72);
 8options.setVerticalResolution(72);
 9options.setPixelFormat(PixelFormat.Format24bppRgb);
10project.save(dataDir + "resFile.tif", options);
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.