regions.hh

来自「pixil 最新的嵌入linux 應用程序集,別的地方很難下載」· HH 代码 · 共 50 行

HH
50
字号
/*********************************************************************  postscript/regions.hh  purpose:    Draw segmented regions.    Takes a bitmap a input that has a region id assigned to each    element. The visualizer class will then draw the borders between    adjacent regions.  notes:  to do:  author(s):   - Dirk Farin, farin@ti.uni-mannheim.de     University Mannheim, Dept. Circuitry and Simulation     B 6,26 EG, room 0.10 / D-68131 Mannheim / Germany  modifications:    23/Jul/99 - Dirk Farin - speedup and output file size reduction      by combining adjacent line segments into a single line.    21/Jul/99 - Dirk Farin - first implementation *********************************************************************/#ifndef LIBVIDEOGFX_POSTSCRIPT_REGIONS_HH#define LIBVIDEOGFX_POSTSCRIPT_REGIONS_HH#include "libvideogfx/graphics/basic/bitmap.hh"#include "libvideogfx/postscript/layout.hh"#include <iostream.h>class Regions2Postscript{public:   Regions2Postscript() : d_ostr(NULL) { }  ~Regions2Postscript() { }  void SetOutput(ostream& ostr) { d_ostr=&ostr; }  void SetPrintingArea(const PrintingArea& a) { area=a; }  void DrawRegions(const Bitmap<int>&);private:  PrintingArea area;  ostream* d_ostr;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?