Working with the XPS File Format

Snowbound Software’s RasterMasterTM for the .NET Platform includes a build option with the CIMG_decompress_bitmap_xps(String *filename, int iPage) and the CIMG_get_pages_xps(String *filename)  functions that allow you to work with the XPS file format.

Note: These functions are only available in the Visual Studio 2005 .NET library build with .NET Framework 3.0 support.

CIMG_decompress_bitmap_xps ()

The function decompresses an XPS file.

The following shows the CIMG_decompress_bitmap_xps(String *filename, int iPage) function syntax and variable descriptions:

Syntax

int CIMG_decompress_bitmap_xps(String *filename, int iPage);

Remark

The table below lists the CIMG_decompress_bitmap_xps function variable descriptions.

Variable

Description

filename

Path/filename of the XPS file

iPage

The page index of the XPS document to render

 
   

 

Returns

Integer

CIMG_get_pages_xps ()

This function returns the number of pages for the XPS file format.

The following shows the CIMG_get_pages_xps(String *filename)  function syntax and variable descriptions:

Syntax

int CIMG_get_pages_xps (String *filename);

Remark

The table below lists the CIMG_get_pages_xps function variable description.

Variable

Description

filename

Path/filename of the XPS file

 
   

 

Returns

Integer

 

 

Category:

Online Demo