@@ -5,7 +5,7 @@ ms.date: "11/04/2016"
5
5
f1_keywords : ["CD2DBrush", "AFXRENDERTARGET/CD2DBrush", "AFXRENDERTARGET/CD2DBrush::CD2DBrush", "AFXRENDERTARGET/CD2DBrush::Attach", "AFXRENDERTARGET/CD2DBrush::Destroy", "AFXRENDERTARGET/CD2DBrush::Detach", "AFXRENDERTARGET/CD2DBrush::Get", "AFXRENDERTARGET/CD2DBrush::GetOpacity", "AFXRENDERTARGET/CD2DBrush::GetTransform", "AFXRENDERTARGET/CD2DBrush::IsValid", "AFXRENDERTARGET/CD2DBrush::SetOpacity", "AFXRENDERTARGET/CD2DBrush::SetTransform", "AFXRENDERTARGET/CD2DBrush::m_pBrush", "AFXRENDERTARGET/CD2DBrush::m_pBrushProperties"]
6
6
helpviewer_keywords : ["CD2DBrush [MFC], CD2DBrush", "CD2DBrush [MFC], Attach", "CD2DBrush [MFC], Destroy", "CD2DBrush [MFC], Detach", "CD2DBrush [MFC], Get", "CD2DBrush [MFC], GetOpacity", "CD2DBrush [MFC], GetTransform", "CD2DBrush [MFC], IsValid", "CD2DBrush [MFC], SetOpacity", "CD2DBrush [MFC], SetTransform", "CD2DBrush [MFC], m_pBrush", "CD2DBrush [MFC], m_pBrushProperties"]
7
7
---
8
- # CD2DBrush Class
8
+ # ` CD2DBrush ` Class
9
9
10
10
A wrapper for ` ID2D1Brush ` .
11
11
@@ -21,41 +21,41 @@ class CD2DBrush : public CD2DResource;
21
21
22
22
| Name| Description|
23
23
| ----------| -----------------|
24
- | [ CD2DBrush::CD2DBrush] ( #cd2dbrush ) | Constructs a CD2DBrush object.|
25
- | [ CD2DBrush::~ CD2DBrush] ( #_dtorcd2dbrush ) | The destructor. Called when a D2D brush object is being destroyed.|
24
+ | [ ` CD2DBrush::CD2DBrush ` ] ( #cd2dbrush ) | Constructs a ` CD2DBrush ` object.|
25
+ | [ ` CD2DBrush::~CD2DBrush ` ] ( #_dtorcd2dbrush ) | The destructor. Called when a D2D brush object is being destroyed.|
26
26
27
27
### Public Methods
28
28
29
29
| Name| Description|
30
30
| ----------| -----------------|
31
- | [ CD2DBrush::Attach] ( #attach ) | Attaches existing resource interface to the object|
32
- | [ CD2DBrush::Destroy] ( #destroy ) | Destroys a CD2DBrush object. (Overrides [ CD2DResource::Destroy] ( ../../mfc/reference/cd2dresource-class.md#destroy ) .)|
33
- | [ CD2DBrush::Detach] ( #detach ) | Detaches resource interface from the object|
34
- | [ CD2DBrush::Get] ( #get ) | Returns ID2D1Brush interface|
35
- | [ CD2DBrush::GetOpacity] ( #getopacity ) | Gets the degree of opacity of this brush|
36
- | [ CD2DBrush::GetTransform] ( #gettransform ) | Gets the current transform of the brush|
37
- | [ CD2DBrush::IsValid] ( #isvalid ) | Checks resource validity (Overrides [ CD2DResource::IsValid] ( ../../mfc/reference/cd2dresource-class.md#isvalid ) .)|
38
- | [ CD2DBrush::SetOpacity] ( #setopacity ) | Sets the degree of opacity of this brush|
39
- | [ CD2DBrush::SetTransform] ( #settransform ) | Applies the specified transform to the brush, replacing the existing transformation. All subsequent drawing operations occur in the transformed space|
31
+ | [ ` CD2DBrush::Attach ` ] ( #attach ) | Attaches existing resource interface to the object|
32
+ | [ ` CD2DBrush::Destroy ` ] ( #destroy ) | Destroys a ` CD2DBrush ` object. (Overrides [ ` CD2DResource::Destroy ` ] ( ../../mfc/reference/cd2dresource-class.md#destroy ) .)|
33
+ | [ ` CD2DBrush::Detach ` ] ( #detach ) | Detaches resource interface from the object|
34
+ | [ ` CD2DBrush::Get ` ] ( #get ) | Returns ` ID2D1Brush ` interface|
35
+ | [ ` CD2DBrush::GetOpacity ` ] ( #getopacity ) | Gets the degree of opacity of this brush|
36
+ | [ ` CD2DBrush::GetTransform ` ] ( #gettransform ) | Gets the current transform of the brush|
37
+ | [ ` CD2DBrush::IsValid ` ] ( #isvalid ) | Checks resource validity (Overrides [ ` CD2DResource::IsValid ` ] ( ../../mfc/reference/cd2dresource-class.md#isvalid ) .)|
38
+ | [ ` CD2DBrush::SetOpacity ` ] ( #setopacity ) | Sets the degree of opacity of this brush|
39
+ | [ ` CD2DBrush::SetTransform ` ] ( #settransform ) | Applies the specified transform to the brush, replacing the existing transformation. All subsequent drawing operations occur in the transformed space|
40
40
41
41
### Public Operators
42
42
43
43
| Name| Description|
44
44
| ----------| -----------------|
45
- | [ CD2DBrush::operator ID2D1Brush* ] ( #operator_id2d1brush_star ) | Returns ID2D1Brush interface|
45
+ | [ ` CD2DBrush::operator ID2D1Brush* ` ] ( #operator_id2d1brush_star ) | Returns ` ID2D1Brush ` interface|
46
46
47
47
### Protected Data Members
48
48
49
49
| Name| Description|
50
50
| ----------| -----------------|
51
- | [ CD2DBrush::m_pBrush] ( #m_pbrush ) | Stores a pointer to an ID2D1Brush object.|
52
- | [ CD2DBrush::m_pBrushProperties] ( #m_pbrushproperties ) | Brush properties.|
51
+ | [ ` CD2DBrush::m_pBrush ` ] ( #m_pbrush ) | Stores a pointer to an ` ID2D1Brush ` object.|
52
+ | [ ` CD2DBrush::m_pBrushProperties ` ] ( #m_pbrushproperties ) | Brush properties.|
53
53
54
54
## Inheritance Hierarchy
55
55
56
- [ CObject] ( ../../mfc/reference/cobject-class.md )
56
+ [ ` CObject ` ] ( ../../mfc/reference/cobject-class.md )
57
57
58
- [ CD2DResource] ( ../../mfc/reference/cd2dresource-class.md )
58
+ [ ` CD2DResource ` ] ( ../../mfc/reference/cd2dresource-class.md )
59
59
60
60
` CD2DBrush `
61
61
@@ -65,7 +65,7 @@ class CD2DBrush : public CD2DResource;
65
65
66
66
## <a name =" _dtorcd2dbrush " ></a > ` CD2DBrush::~CD2DBrush `
67
67
68
- The destructor. Called when a D2D brush object is being destroyed.
68
+ The destructor. Called when a ` D2D ` brush object is being destroyed.
69
69
70
70
```
71
71
virtual ~CD2DBrush();
@@ -81,12 +81,12 @@ void Attach(ID2D1Brush* pResource);
81
81
82
82
### Parameters
83
83
84
- *pResource*\
85
- Existing resource interface. Cannot be NULL.
84
+ *` pResource` *\
85
+ Existing resource interface. Can't be ` NULL` .
86
86
87
87
## <a name="cd2dbrush"></a> `CD2DBrush::CD2DBrush`
88
88
89
- Constructs a CD2DBrush object.
89
+ Constructs a ` CD2DBrush` object.
90
90
91
91
```
92
92
CD2DBrush(
@@ -97,24 +97,24 @@ CD2DBrush(
97
97
98
98
### Parameters
99
99
100
- *pParentTarget*\
100
+ *` pParentTarget` *\
101
101
A pointer to the render target.
102
102
103
- *pBrushProperties*\
103
+ *` pBrushProperties` *\
104
104
A pointer to the opacity and transformation of a brush.
105
105
106
- *bAutoDestroy*\
107
- Indicates that the object will be destroyed by owner (pParentTarget) .
106
+ *` bAutoDestroy` *\
107
+ Indicates that the owner (` pParentTarget`) will destroy the object .
108
108
109
- ## <a name="destroy"></a> CD2DBrush::Destroy
109
+ ## <a name="destroy"></a> ` CD2DBrush::Destroy`
110
110
111
- Destroys a CD2DBrush object.
111
+ Destroys a ` CD2DBrush` object.
112
112
113
113
```
114
114
virtual void Destroy();
115
115
```
116
116
117
- ## <a name="detach"></a> CD2DBrush::Detach
117
+ ## <a name="detach"></a> ` CD2DBrush::Detach`
118
118
119
119
Detaches resource interface from the object.
120
120
@@ -126,19 +126,19 @@ ID2D1Brush* Detach();
126
126
127
127
Pointer to detached resource interface.
128
128
129
- ## <a name="get"></a> CD2DBrush::Get
129
+ ## <a name="get"></a> ` CD2DBrush::Get`
130
130
131
- Returns ID2D1Brush interface
131
+ Returns ` ID2D1Brush` interface
132
132
133
133
```
134
134
ID2D1Brush* Get();
135
135
```
136
136
137
137
### Return Value
138
138
139
- Pointer to an ID2D1Brush interface or NULL if object is not initialized yet.
139
+ Pointer to an ` ID2D1Brush` interface or ` NULL` if object isn't initialized yet.
140
140
141
- ## <a name="getopacity"></a> CD2DBrush::GetOpacity
141
+ ## <a name="getopacity"></a> ` CD2DBrush::GetOpacity`
142
142
143
143
Gets the degree of opacity of this brush
144
144
@@ -148,9 +148,9 @@ FLOAT GetOpacity() const;
148
148
149
149
### Return Value
150
150
151
- A value between zero and 1 that indicates the opacity of the brush. This value is a constant multiplier that linearly scales the alpha value of all pixels filled by the brush. The opacity values are clamped in the range 0 to 1 before they are multiplied together.
151
+ A value between zero and 1 that indicates the opacity of the brush. This value is a constant multiplier that linearly scales the alpha value of all pixels filled by the brush. The opacity values are clamped in the range 0 to 1 before they're multiplied together.
152
152
153
- ## <a name="gettransform"></a> CD2DBrush::GetTransform
153
+ ## <a name="gettransform"></a> ` CD2DBrush::GetTransform`
154
154
155
155
Gets the current transform of the brush
156
156
@@ -160,10 +160,10 @@ void GetTransform(D2D1_MATRIX_3X2_F* transform) const;
160
160
161
161
### Parameters
162
162
163
- * transform* \
163
+ * ` transform ` * \
164
164
When this returns, contains the current transform of the brush. This parameter is passed uninitialized.
165
165
166
- ## <a name =" isvalid " ></a > CD2DBrush::IsValid
166
+ ## <a name =" isvalid " ></a > ` CD2DBrush::IsValid `
167
167
168
168
Checks resource validity
169
169
@@ -173,37 +173,37 @@ virtual BOOL IsValid() const;
173
173
174
174
### Return Value
175
175
176
- TRUE if resource is valid; otherwise FALSE.
176
+ ` TRUE ` if resource is valid; otherwise ` FALSE ` .
177
177
178
- ## <a name =" m_pbrush " ></a > CD2DBrush::m_pBrush
178
+ ## <a name =" m_pbrush " ></a > ` CD2DBrush::m_pBrush `
179
179
180
- Stores a pointer to an ID2D1Brush object.
180
+ Stores a pointer to an ` ID2D1Brush ` object.
181
181
182
182
```
183
183
ID2D1Brush* m_pBrush;
184
184
```
185
185
186
- ## <a name =" m_pbrushproperties " ></a > CD2DBrush::m_pBrushProperties
186
+ ## <a name =" m_pbrushproperties " ></a > ` CD2DBrush::m_pBrushProperties `
187
187
188
188
Brush properties.
189
189
190
190
```
191
191
CD2DBrushProperties* m_pBrushProperties;
192
192
```
193
193
194
- ## <a name =" operator_id2d1brush_star " ></a > CD2DBrush::operator ID2D1Brush*
194
+ ## <a name =" operator_id2d1brush_star " ></a > ` CD2DBrush::operator ID2D1Brush* `
195
195
196
- Returns ID2D1Brush interface
196
+ Returns ` ID2D1Brush ` interface
197
197
198
198
```
199
199
operator ID2D1Brush*();
200
200
```
201
201
202
202
### Return Value
203
203
204
- Pointer to an ID2D1Brush interface or NULL if object is not initialized yet.
204
+ Pointer to an ` ID2D1Brush ` interface or NULL if object isn't initialized yet.
205
205
206
- ## <a name =" setopacity " ></a > CD2DBrush::SetOpacity
206
+ ## <a name =" setopacity " ></a > ` CD2DBrush::SetOpacity `
207
207
208
208
Sets the degree of opacity of this brush
209
209
@@ -213,10 +213,10 @@ void SetOpacity(FLOAT opacity);
213
213
214
214
### Parameters
215
215
216
- *opacity*\
217
- A value between zero and 1 that indicates the opacity of the brush. This value is a constant multiplier that linearly scales the alpha value of all pixels filled by the brush. The opacity values are clamped in the range 0 to 1 before they are multiplied together.
216
+ *` opacity` *\
217
+ A value between zero and 1 that indicates the opacity of the brush. This value is a constant multiplier that linearly scales the alpha value of all pixels filled by the brush. The opacity values are clamped in the range 0 to 1 before they're multiplied together.
218
218
219
- ## <a name="settransform"></a> CD2DBrush::SetTransform
219
+ ## <a name="settransform"></a> ` CD2DBrush::SetTransform`
220
220
221
221
Applies the specified transform to the brush, replacing the existing transformation. All subsequent drawing operations occur in the transformed space.
222
222
@@ -226,7 +226,7 @@ void SetTransform(const D2D1_MATRIX_3X2_F* transform);
226
226
227
227
### Parameters
228
228
229
- * transform* \
229
+ * ` transform ` * \
230
230
The transform to apply to the brush
231
231
232
232
## See also
0 commit comments