Category 2D interface, Object ProRaster

Function ProRasterFileWrite


Description
Outputs a standard Creo Parametric raster output file. Note:Use this function to export a solid model only. To convert drawings to the specified formats, use the function ProPrintExecute().
Replacement in Object TOOLKIT: pfcWindow::ExportRasterImage
pfcBaseSession::ExportCurrentRasterImage
Synopsis
#include <ProUtil.h>
ProErrorProRasterFileWrite(
int window_id
/* (In)
the handle of the window that will be exported
*/
ProRasterDepth depth
/* (In)
the depth of the output image
*/
double width
/* (In)
the width of the output image in inches
*/
double height
/* (In)
the height of the output image in inches
*/
ProDotsPerInch dots_per_inch
/* (In)
the dots per inch of the output image
*/
ProRasterType type
/* (In)
the output image type
*/
ProPath output_file
/* (In)
An output filename, including the extension
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully created the raster file.
PRO_TK_GENERAL_ERRORA general error occurred and the function failed.
PRO_TK_NO_PERMISSIONThe function does not have permission to operate on this model.
PRO_TK_BAD_CONTEXTThe function is not available in Design Test Mode.

Manual References:

  1. Interface: Data Exchange: Exporting 3D Models
  2. Interface: Data Exchange: Exporting 3D Models

Sample Code References:

  1. pt_examples ( TestInterface.c )