32 {
33 ASSERT_HOST(pix !=
nullptr && pixGetDepth(pix) == 32 && blob !=
nullptr);
35 int height = pixGetHeight(pix);
36 const int box_width = 5;
37
38
39
40 Box *box = boxCreate(tbox.
left(), height - tbox.
top(),
44 pixRenderBoxArb(pix, box, box_width, 255, 0, 0);
45 break;
47 pixRenderBoxArb(pix, box, box_width, 0, 255, 255);
48 break;
50 pixRenderBoxArb(pix, box, box_width, 0, 255, 0);
51 break;
53 pixRenderBoxArb(pix, box, box_width, 0, 255, 0);
54 break;
56 default:
57
58 pixRenderBoxArb(pix, box, box_width, 255, 255, 0);
59 break;
60 }
61 boxDestroy(&box);
62}
BlobSpecialTextType special_text_type() const
const TBOX & bounding_box() const