18 # include <vcl_msvc_warnings.h> 64 void line(
float x1,
float y1,
float x2,
float y2);
66 void point(
float x,
float y,
float point_size = 0);
68 void ellipse(
float x,
float y,
float a_axis,
float b_axis,
int angle = 0);
70 void circle(
float x,
float y,
float radius);
129 #endif // vul_psfile_h_
std::streampos header_pos
void set_paper_layout(vul_psfile::paper_layout layout)
std::streampos sobj_t_pos
void reset_bounding_box()
Rewrite output bounding box parameters.
void set_scale_x(float sx)
set the horizontal scaling (in percent); no scaling is 100.
void point(float x, float y, float point_size=0)
Add a point at the given coordinates to the Postscript file.
void circle(float x, float y, float radius)
Add a circle with the given centre point and radius to the Postscript file.
std::streampos translate_pos
void line(float x1, float y1, float x2, float y2)
Add a line between the given points to the Postscript file.
void set_line_width(float f_width)
void set_scale_y(float sy)
set the vertical scaling (in percent); no scaling is 100.
bool graphics_prolog_exists
paper_type printer_paper_type
void graphic_header()
Set graphic coordinate (translate and rotate to local coordinate).
paper_orientation printer_paper_orientation
void print_greyscale_image(const unsigned char *data, int sizex, int sizey)
Write 8 bit grey scale image.
void sobj_rgb_params(char const *str, bool filled)
Utility program used in point(), line(), ellipse() and circle().
void print_graphics_prolog()
the defined procedure for PostScript script use.
void set_paper_orientation(vul_psfile::paper_orientation o)
void set_reduction_factor(int rf)
void set_paper_type(vul_psfile::paper_type type)
void set_bg_color(float r, float g, float b)
void compute_bounding_box()
Recalculate bounding box and scale x and y (if necessary).
void set_fg_color(float r, float g, float b)
bool set_parameters(int sizex, int sizey)
Set ox, oy , iw, ih, iwf, ihf parameters for PostScript file use.
void object_translate_and_scale()
Set object translate and scale.
void reset_postscript_header()
Reset PostScript header file.
void ellipse(float x, float y, float a_axis, float b_axis, int angle=0)
Add an ellipse to the Postscript file.
vul_psfile(char const *filename, bool debug_output=false)
Default constructor.
~vul_psfile() override
Destructor.
void image_translate_and_scale()
Set Image translate and scale.
void postscript_header()
PostScript file header. Automatically called by the constructor.
void set_min_max_xy(float x, float y)
Set Bounding Box Min and Max x, y.
std::ofstream output_filestream
paper_layout printer_paper_layout
void print_color_image(const unsigned char *data, int sizex, int sizey)
Write 24 bit colour image.