Export a Tiff file
I'm trying to save a image of a part as a tiff-file, but I can't get it to work.
This is there I came to, it failed on the last line.
I also need to orientate the part in "default orientation" and show in "ho hidden"
Can anyone help?
private RasterImageExportInstructions getRasterInstructions(RasterType type) throws jxthrowable {
double rasterHeight = 7.5;
double rasterWidth = 10.0;
DotsPerInch dpi = DotsPerInch.RASTERDPI_100;
RasterDepth depth = RasterDepth.RASTERDEPTH_24;
RasterImageExportInstructions instructions;
TIFFImageExportInstructions tiff_instrs = pfcWindow.TIFFImageExportInstructions_Create (rasterHeight, rasterWidth);
instructions = tiff_instrs;
return instructions;
}
RasterImageExportInstructions instructions;
TIFFImageExportInstructions tiff_instrs = pfcWindow.TIFFImageExportInstructions_Create(7.5, 10.0);
instructions = tiff_instrs;
RasterType type = null;
RasterImageExportInstructions instructions = getRasterInstructions (RasterType.RASTER_TIFF);
instructions.SetImageDepth(RasterDepth.RASTERDEPTH_8);
instructions.SetDotsPerInch(DotsPerInch.RASTERDPI_100);
String sModelName = model.GetFullName() + ".tif";
MySession.ExportCurrentRasterImage (sModelName, instructions);
Regards
Allan

