I need a little help with bitmap operations in C#
I want to take a UInt16
, isolate an arbitrary number of bits, and set them using another UInt16
value.
Example:
10101010 -- Original Value
00001100 -- Mask - Isolates bits 2 and 3
Input Output
00000000 -- 10100010
00000100 -- 10100110
00001000 -- 10101010
00001100 -- 10101110
^^