Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include <traster.h></traster.h>
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
namespace TScannerUtil {
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
Shinya Kitaoka 120a6e
void copyRGBBufferToTRaster32(unsigned char *rgbBuffer, int rgbLx, int rgbLy,
Shinya Kitaoka 120a6e
                              const TRaster32P &rout, bool internal);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
void copyRGBBufferToTRasterGR8(unsigned char *rgbBuffer, int rgbLx, int rgbLy,
Shinya Kitaoka 120a6e
                               int rgbWrap, const TRasterGR8P &rout);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
void copyGR8BufferToTRasterGR8(unsigned char *gr8Buffer, int rgbLx, int rgbLy,
Shinya Kitaoka 120a6e
                               const TRasterGR8P &rout, bool internal);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
void copyGR8BufferToTRasterBW(unsigned char *gr8Buffer, int rgbLx, int rgbLy,
Shinya Kitaoka 120a6e
                              const TRasterGR8P &rout, bool internal,
Shinya Kitaoka 120a6e
                              float thres);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
void copyBWBufferToTRasterGR8(const unsigned char *buffer, int rgbLx, int rgbLy,
Shinya Kitaoka 120a6e
                              const TRasterGR8P &rout, bool isBW,
Shinya Kitaoka 120a6e
                              bool internal);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
void copy90BWBufferToRasGR8(unsigned char *bwBuffer, int bwLx, int bwLy,
Shinya Kitaoka 120a6e
                            int bwWrap, bool isBW, TRasterGR8P &rout,
Shinya Kitaoka 120a6e
                            int mirror, int ninety);
Toshihiro Shimizu 890ddd
};