⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 image2ps.hh

📁 PIXIL is a small footprint operating environment, complete with PDA PIM applications, a browser and
💻 HH
字号:
/*********************************************************************  postscript/image2ps.hh  purpose:    Print image as postscript.  notes:  to do:   - a unified filter approach could be useful. This would allow     to build a filter chain like "RunLength"->"Ascii85".  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:    28/Jul/99 - Dirk Farin - RGB color image output    26/Jul/99 - Dirk Farin - first implementation *********************************************************************/#ifndef LIBVIDEOGFX_POSTSCRIPT_IMAGE2PS_HH#define LIBVIDEOGFX_POSTSCRIPT_IMAGE2PS_HH#include "libvideogfx/graphics/basic/image.hh"#include "libvideogfx/postscript/layout.hh"#include <iostream.h>class Image2Postscript{public:  enum PSImageEncoding { Hex, Ascii85 };   Image2Postscript() : d_ostr(NULL), d_enc(Ascii85) { }  ~Image2Postscript() { }  void SetOutput(ostream& ostr) { d_ostr=&ostr; }  void SetPrintingArea(const PrintingArea& a) { d_area=a; }  void SetEncodingMethod(PSImageEncoding enc) { d_enc=enc; }  void DrawImage(const Image_YUV<Pixel>&);  void DrawImage(const Image_RGB<Pixel>&);private:  void WriteLine_ASCIIHex(const Pixel*,int len);  void WriteLine_ASCII85 (const Pixel*,int len);  PrintingArea    d_area;  PSImageEncoding d_enc;  ostream*        d_ostr;};#endif

⌨️ 快捷键说明

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