Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include <traster.h></traster.h>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
namespace TScannerUtil
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
/* copia un rettangolo da rin a rout,
Toshihiro Shimizu 890ddd
 * specchiandolo orizzontalmente se mirror e' dispari,
Toshihiro Shimizu 890ddd
 * e poi ruotandolo del multiplo di novanta gradi specificato
Toshihiro Shimizu 890ddd
 * da ninety in senso antiorario
Toshihiro Shimizu 890ddd
 *
Toshihiro Shimizu 890ddd
 */
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void copyRGBBufferToTRaster32(unsigned char *rgbBuffer, int rgbLx, int rgbLy, const TRaster32P &rout, bool internal);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void copyRGBBufferToTRasterGR8(unsigned char *rgbBuffer, int rgbLx, int rgbLy, int rgbWrap,
Toshihiro Shimizu 890ddd
							   const TRasterGR8P &rout);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void copyGR8BufferToTRasterGR8(unsigned char *gr8Buffer, int rgbLx, int rgbLy, const TRasterGR8P &rout, bool internal);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void copyGR8BufferToTRasterBW(unsigned char *gr8Buffer, int rgbLx, int rgbLy, const TRasterGR8P &rout, bool internal, float thres);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void copyBWBufferToTRasterGR8(const unsigned char *buffer, int rgbLx, int rgbLy, const TRasterGR8P &rout, bool isBW, bool internal);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void copy90BWBufferToRasGR8(unsigned char *bwBuffer, int bwLx, int bwLy, int bwWrap, bool isBW,
Toshihiro Shimizu 890ddd
							TRasterGR8P &rout, int mirror, int ninety);
Toshihiro Shimizu 890ddd
};