D1191: GDI Compatible Bitmap Option Was Used Incorrectly
D2D1_BITMAP_OPTIONS_GDI_COMPATIBLE must be combined with D2D1_BITMAP_OPTIONS_TARGET
The application specified an incompatible combination of the D2D1_BITMAP_OPTIONS flags.
Add D2D1_BITMAP_OPTIONS_TARGET to the D2D1_BITMAP_OPTIONS flags.