base_pixmap.h.svn-base

来自「SumatraPDF是一款小型开源的pdf阅读工具。虽然玲珑小巧(只有800多K」· SVN-BASE 代码 · 共 32 行

SVN-BASE
32
字号
/* TODO: move this into draw module *//*pixmaps have n components per pixel. the first is always alpha.premultiplied alpha when rendering, but non-premultiplied for colorspaceconversions and rescaling.*/typedef struct fz_pixmap_s fz_pixmap;typedef unsigned char fz_sample;struct fz_pixmap_s{	int x, y, w, h, n;	fz_sample *samples;};fz_error *fz_newpixmapwithrect(fz_pixmap **mapp, fz_irect bbox, int n);fz_error *fz_newpixmap(fz_pixmap **mapp, int x, int y, int w, int h, int n);fz_error *fz_newpixmapcopy(fz_pixmap **pixp, fz_pixmap *old);void fz_debugpixmap(fz_pixmap *map, char *prefix);void fz_clearpixmap(fz_pixmap *map);void fz_droppixmap(fz_pixmap *map);fz_error *fz_scalepixmap(fz_pixmap **dstp, fz_pixmap *src, int xdenom, int ydenom);/* needed for tiled rendering */fz_error *fz_newscaledpixmap(fz_pixmap **dstp, int w, int h, int n, int xdenom, int ydenom);fz_error *fz_scalepixmaptile(fz_pixmap *dstp, int xoffs, int yoffs,			     fz_pixmap *tile, int xdenom, int ydenom);

⌨️ 快捷键说明

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