title | ms.assetid | description | keywords | topic_type | api_name | api_type | ms.topic | ms.date | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
D1165 Read And Discard Map Options Are Incompatible |
5b1f47c8-bfbf-4251-bcfb-a8bf0e60d308 |
D2D1\_MAP\_OPTIONS\_READ is not compatible with D2D1\_MAP\_OPTIONS\_DISCARD |
|
|
|
|
reference |
05/31/2018 |
D2D1_MAP_OPTIONS_READ is not compatible with D2D1_MAP_OPTIONS_DISCARD
Direct2D may output this message if an application calls ID2D1Bitmap1::Map with both D2D1_MAP_OPTIONS_READ and D2D1_MAP_OPTIONS_DISCARD options.
The READ and DISCARD options do not agree with each other because allowing read access to undefined data has limited usefulness for an application. See D2D1_MAP_OPTIONS for a description of map options. When calling ID2D1Bitmap1::Map, consider which type of access the application needs.