Bsoft 2.1.4
Bernard's software package
rwPostScript.cpp File Reference

Functions for (reading and) writing postscript image files. More...

#include "ps_plot.h"
#include "rwPostScript.h"
#include "utilities.h"

Functions

int writePostScriptSlice (ofstream *fimg, Bimage *p, long n, long z, double tx, double ty, long m)
 Writing an image slice to a postscript file. More...
 
int writePostScriptImage (Bimage *p)
 Writing a postscript image. More...
 
int writePostScriptImage (Bimage *p, vector< Vector3< double > > &t)
 Writing the slices arranged in a postscript image. More...
 

Variables

int verbose
 

Detailed Description

Functions for (reading and) writing postscript image files.

Author
Bernard Heymann
Date
Created: 20010614
Modified: 20171124

Function Documentation

◆ writePostScriptImage() [1/2]

int writePostScriptImage ( Bimage p)

Writing a postscript image.

Parameters
*pthe image structure.
Returns
int 0.

Every sub-image is drawn on its own page One-dimensional images are written as graphs. Three-dimensional images are montaged with all the slices of each sub-image arrayed on a page.

◆ writePostScriptImage() [2/2]

int writePostScriptImage ( Bimage p,
vector< Vector3< double > > &  t 
)

Writing the slices arranged in a postscript image.

Parameters
*pthe image structure.
&tarray of slice locations.
Returns
int 0.

Every sub-image is drawn on its own page One-dimensional images are written as graphs. Three-dimensional images are montaged with all the slices of each sub-image arrayed on a page.

◆ writePostScriptSlice()

int writePostScriptSlice ( ofstream *  fimg,
Bimage p,
long  n,
long  z,
double  tx,
double  ty,
long  m 
)

Writing an image slice to a postscript file.

Parameters
*fimgoutput stream.
*pthe image structure.
nsub-image.
zslice within the sub-image.
txtranslation in x.
tytranslation in y.
mslice number.
Returns
int 0.

Every sub-image is drawn on its own page One-dimensional images are written as graphs. Three-dimensional images are montaged with all the slices of each sub-image arrayed on a page.

Variable Documentation

◆ verbose

int verbose
extern