ShapeManipulator.cpp
// True if the specified point is filled, false otherwise.
True if the specified point is filled, false otherwise.
True if the specified point is filled false otherwise .
bool ShapeManipulator::IsBitFilled(int xp, int yp, CsBitPlane &bitPlane)
{
    char* row = &bitPlane.pImage[0] + (yp * bitPlane.stride) + (xp / 8);
    switch (xp % 8)
    {
        case 0:
            return ((*row) & 0x80) == 0;
        case 1:
            return ((*row) & 0x40) == 0;
        case 2:
            return ((*row) & 0x20) == 0;
        case 3:
            return ((*row) & 0x10) == 0;
        case 4:
            return ((*row) & 0x08) == 0;
        case 5:
            return ((*row) & 0x04) == 0;
        case 6:
            return ((*row) & 0x02) == 0;
        case 7:
            return ((*row) & 0x01) == 0;
    }
    return false;
}
bool ShapeManipulator :: IsBitFilled ( int xp , int yp , CsBitPlane & bitPlane ) { char * row = & bitPlane . pImage [ 0 ] + ( yp * bitPlane . stride ) + ( xp / 8 ) ; switch ( xp % 8 ) { case 0 : return ( ( * row ) & 0x80 ) == 0 ; case 1 : return ( ( * row ) & 0x40 ) == 0 ; case 2 : return ( ( * row ) & 0x20 ) == 0 ; case 3 : return ( ( * row ) & 0x10 ) == 0 ; case 4 : return ( ( * row ) & 0x08 ) == 0 ; case 5 : return ( ( * row ) & 0x04 ) == 0 ; case 6 : return ( ( * row ) & 0x02 ) == 0 ; case 7 : return ( ( * row ) & 0x01 ) == 0 ; } return false ; }
True if the specified point is filled, false otherwise.
True if the specified point is filled false otherwise .