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

📄 markblks.cc

📁 PIXIL is a small footprint operating environment, complete with PDA PIM applications, a browser and
💻 CC
字号:
/* *  markblks.cc */#include <iostream.h>#include "markblks.hh"#include "libvideogfx/graphics/draw/draw.hh"void BlockMarker::Overlay(Image_YUV<Pixel>& img,const Bitmap<bool>& markerbm) const{  Bitmap<Pixel>& bm  = img.AskBitmap(Image<Pixel>::Bitmap_Y);  const bool*const* markp = markerbm.AskFrame_const();  ImageSpec_YUV spec;  img.GetParam(spec);  int w = markerbm.AskWidth();  int h = markerbm.AskHeight();  cout << spec.width << " " << d_size_h << " " << w << endl;  //352 8 22  assert(spec.width  >  (d_size_h*(w-1)) &&	 spec.width  <= (d_size_h* w  ));  assert(spec.height >  (d_size_v*(h-1)) &&	 spec.height <= (d_size_v* h  ));  for (int y=0;y<h;y++)    for (int x=0;x<w;x++)      {	if (markp[y][x] != d_inverse)	  {	    int x0 = x*d_size_h;	    int y0 = y*d_size_v;	    int x1 = x0+d_size_h-1;	    int y1 = y0+d_size_v-1;	    DrawLine(bm,x0,y0,x1,y0, d_color);	    DrawLine(bm,x0,y1,x1,y1, d_color);	    DrawLine(bm,x0,y0,x0,y1, d_color);	    DrawLine(bm,x1,y0,x1,y1, d_color);	  }      }}

⌨️ 快捷键说明

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