MCPcopy Create free account
hub / github.com/creatale/node-dv / Clear

Method Clear

deps/tesseract/cube/bmp_8.cpp:110–117  ·  view source on GitHub ↗

clears the contents of the bmp

Source from the content-addressed store, hash-verified

108
109// clears the contents of the bmp
110bool Bmp8::Clear() {
111 if (line_buff_ == NULL) {
112 return false;
113 }
114
115 memset(line_buff_[0], 0xff, stride_ * hgt_ * sizeof(*line_buff_[0]));
116 return true;
117}
118
119bool Bmp8::LoadFromCharDumpFile(CachedFile *fp) {
120 unsigned short wid;

Callers 3

NAN_SETTERFunction · 0.45
NAN_METHODFunction · 0.45
c_clear_windowFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected