app/src/main/jni/ImageTool.cpp
int CImageTool::SetVerLineToBlack ( DSCC_BYTE *p, int WidthInBytes, int Height, int x, int y, int h, int bUpSideDown )
{//Called by SetLine(). Do not use it independently
    DSCC_BYTE mask = 128>>(x%8) ;
	if( bUpSideDown )
		p += (Height-1-y)*WidthInBytes + x/8 ;
	else
		p += y*WidthInBytes + x/8 ;
    for ( int i=0 ; i<h ; i++, p-=WidthInBytes )
        *p |= mask ;
    return 0 ;
}
/********************************************************************************
/*	Name:		SetVerLineToBlack
/*	Funcation:	Set all pixels on a vertical line to black, for binary image
/*
/********************************************************************************/
SetVerLineToBlack
Funcation:      Set all pixels on a vertical line to black, for binary image
SetVerLineToBlack Funcation : Set all pixels on a vertical line to black for binary image
int CImageTool::SetVerLineToBlack ( DSCC_BYTE *p, int WidthInBytes, int Height, int x, int y, int h, int bUpSideDown )
{
    DSCC_BYTE mask = 128>>(x%8) ;
	if( bUpSideDown )
		p += (Height-1-y)*WidthInBytes + x/8 ;
	else
		p += y*WidthInBytes + x/8 ;
    for ( int i=0 ; i<h ; i++, p-=WidthInBytes )
        *p |= mask ;
    return 0 ;
}
int CImageTool :: SetVerLineToBlack ( DSCC_BYTE * p , int WidthInBytes , int Height , int x , int y , int h , int bUpSideDown ) { DSCC_BYTE mask = 128 >> ( x % 8 ) ; if ( bUpSideDown ) p += ( Height - 1 - y ) * WidthInBytes + x / 8 ; else p += y * WidthInBytes + x / 8 ; for ( int i = 0 ; i < h ; i ++ , p -= WidthInBytes ) * p |= mask ; return 0 ; }
Name:           SetVerLineToBlack
Funcation:      Set all pixels on a vertical line to black, for binary image
Name : SetVerLineToBlack Funcation : Set all pixels on a vertical line to black for binary image
//Called by SetLine(). Do not use it independently