Skip to content

Latest commit

 

History

History
83 lines (64 loc) · 2.83 KB

ne-d2d1_1-d2d1_map_options.md

File metadata and controls

83 lines (64 loc) · 2.83 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NE:d2d1_1.D2D1_MAP_OPTIONS
D2D1_MAP_OPTIONS (d2d1_1.h)
Specifies how the memory to be mapped from the corresponding ID2D1Bitmap1 should be treated.
D2D1_MAP_OPTIONS
D2D1_MAP_OPTIONS enumeration [Direct2D]
D2D1_MAP_OPTIONS_DISCARD
D2D1_MAP_OPTIONS_READ
D2D1_MAP_OPTIONS_WRITE
d2d1_1/D2D1_MAP_OPTIONS
d2d1_1/D2D1_MAP_OPTIONS_DISCARD
d2d1_1/D2D1_MAP_OPTIONS_READ
d2d1_1/D2D1_MAP_OPTIONS_WRITE
direct2d.__d2d1_map_options
direct2d\__d2d1_map_options.htm
Direct2D
8706c3e3-eb29-4760-bdfd-f19afc6f2bf7
12/05/2018
D2D1_MAP_OPTIONS, D2D1_MAP_OPTIONS enumeration [Direct2D], D2D1_MAP_OPTIONS_DISCARD, D2D1_MAP_OPTIONS_READ, D2D1_MAP_OPTIONS_WRITE, d2d1_1/D2D1_MAP_OPTIONS, d2d1_1/D2D1_MAP_OPTIONS_DISCARD, d2d1_1/D2D1_MAP_OPTIONS_READ, d2d1_1/D2D1_MAP_OPTIONS_WRITE, direct2d.__d2d1_map_options
d2d1_1.h
Windows
Windows 8 and Platform Update for Windows 7 [desktop apps \| UWP apps]
Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps \| UWP apps]
Windows
D2D1_MAP_OPTIONS
19H1
D2D1_MAP_OPTIONS
d2d1_1/D2D1_MAP_OPTIONS
c++
APIRef
kbSyntax
HeaderDef
D2d1_1.h
D2D1_MAP_OPTIONS

D2D1_MAP_OPTIONS enumeration

-description

Specifies how the memory to be mapped from the corresponding ID2D1Bitmap1 should be treated.

-enum-fields

-field D2D1_MAP_OPTIONS_NONE:0

-field D2D1_MAP_OPTIONS_READ:1

Allow CPU Read access.

-field D2D1_MAP_OPTIONS_WRITE:2

Allow CPU Write access.

-field D2D1_MAP_OPTIONS_DISCARD:4

Discard the previous contents of the resource when it is mapped.

-field D2D1_MAP_OPTIONS_FORCE_DWORD:0xffffffff

-remarks

The D2D1_MAP_OPTIONS_READ option can be used only if the bitmap was created with the D2D1_BITMAP_OPTIONS_CPU_READ flag.

These flags will be not be able to be used on bitmaps created by the ID2D1DeviceContext. However, the ID2D1SourceTransform will receive bitmaps for which these flags are valid.

D2D1_MAP_OPTIONS_DISCARD can only be used with D2D1_MAP_OPTIONS_WRITE. Both of these options are only available through the effect author API, not through the Direct2D rendering API.

-see-also

ID2D1Bitmap1::Map