format24bpprgbでプロジェクトデータをレンダリングします
プロジェクトデータをフォーマット24BPPRGBにレンダリングし、水平および垂直解像度を制御します Format24BPPRGBは、フォーマットがピクセルあたり24ビットであることを指定します。それぞれ8ビットは、赤、緑、青のコンポーネントに使用されます。 Aspose.Tasks には、公共の財産Imageseaveoptions.pixelformatを提供することにより、プロジェクトをFormat24bpprgbにレンダリングする機能があります。また、DPIの水平解像度と垂直解像度は、imagesaveoptions.horizontalresolutionおよび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);