The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



ToggleBit


Unit:SDL_dstruct
Class:TByteMatrix
Declaration:procedure ToggleBit (col, row, ixBit: integer);

The method ToggleBit inverts the bit addressed by the parameters col (column index), row (row index), and ixBit (bit index). The parameters col and row may take values between 1 and NrOfColumns, or 1 and NrOfRows, respectively. The parameter ixBit may take values between 0 and 7. If any parameter holds an invalid value, no action is performed.


Last Update: 2023-Feb-06