void dcTileView::attachDown(Mat img){ Mat aimg = adjustSize(toBGR(img)); int max = getMaxXY().y; imgs.push_back(aimg); Rect r(0, max, aimg.cols, aimg.rows ) ; rects.push_back(r); }
void dcTile::tile(short opt, Mat img){ Mat aimg = adjustSize(toBGR(img)); Point mx = getMaxXY(); imgs.push_back(aimg); Rect r; switch(opt) { case TILE_V: r = Rect(0, mx.y, aimg.cols, aimg.rows ); break; case TILE_H: r = Rect(mx.x, 0, aimg.cols, aimg.rows ); } rects.push_back(r); }
//set the draw color with a ClrRGBA value void WindowSFML::setDrawClr(ClrRGBA clrIn) { drawClr=toBGR(clrIn); drawAlpha=clrIn.a/255.0; }
//set the draw color with an int (usually the lowest few numbers will be standard template colors, and anything higher will be the same as 0) void WindowSFML::setDrawClr(int clrIn) { drawClr=toBGR(clrIn); }
//set the draw color with an unsigned char void WindowSFML::setDrawClr(unsigned char clrIn) { drawClr=toBGR(clrIn); }