Skip to content

Update cd2dbrush-class.md #4790

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions docs/mfc/reference/cd2dbrush-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ class CD2DBrush : public CD2DResource;
|[CD2DBrush::Detach](#detach)|Detaches resource interface from the object|
|[CD2DBrush::Get](#get)|Returns ID2D1Brush interface|
|[CD2DBrush::GetOpacity](#getopacity)|Gets the degree of opacity of this brush|
|[CD2DBrush::GetTransform](#gettransform)|Gets the current transform of the render target|
|[CD2DBrush::GetTransform](#gettransform)|Gets the current transform of the brush|
|[CD2DBrush::IsValid](#isvalid)|Checks resource validity (Overrides [CD2DResource::IsValid](../../mfc/reference/cd2dresource-class.md#isvalid).)|
|[CD2DBrush::SetOpacity](#setopacity)|Sets the degree of opacity of this brush|
|[CD2DBrush::SetTransform](#settransform)|Applies the specified transform to the render target, replacing the existing transformation. All subsequent drawing operations occur in the transformed space|
|[CD2DBrush::SetTransform](#settransform)|Applies the specified transform to the brush, replacing the existing transformation. All subsequent drawing operations occur in the transformed space|

### Public Operators

Expand Down Expand Up @@ -82,7 +82,7 @@ void Attach(ID2D1Brush* pResource);

### Parameters

*pResource*<br/>
*pResource*\
Existing resource interface. Cannot be NULL.

## <a name="cd2dbrush"></a> CD2DBrush::CD2DBrush
Expand All @@ -98,13 +98,13 @@ CD2DBrush(

### Parameters

*pParentTarget*<br/>
*pParentTarget*\
A pointer to the render target.

*pBrushProperties*<br/>
*pBrushProperties*\
A pointer to the opacity and transformation of a brush.

*bAutoDestroy*<br/>
*bAutoDestroy*\
Indicates that the object will be destroyed by owner (pParentTarget).

## <a name="destroy"></a> CD2DBrush::Destroy
Expand Down Expand Up @@ -153,16 +153,16 @@ A value between zero and 1 that indicates the opacity of the brush. This value i

## <a name="gettransform"></a> CD2DBrush::GetTransform

Gets the current transform of the render target
Gets the current transform of the brush

```cpp
void GetTransform(D2D1_MATRIX_3X2_F* transform) const;
```

### Parameters

*transform*<br/>
When this returns, contains the current transform of the render target. This parameter is passed uninitialized.
*transform*\
When this returns, contains the current transform of the brush. This parameter is passed uninitialized.

## <a name="isvalid"></a> CD2DBrush::IsValid

Expand Down Expand Up @@ -214,21 +214,21 @@ void SetOpacity(FLOAT opacity);

### Parameters

*opacity*<br/>
*opacity*\
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.

## <a name="settransform"></a> CD2DBrush::SetTransform

Applies the specified transform to the render target, replacing the existing transformation. All subsequent drawing operations occur in the transformed space.
Applies the specified transform to the brush, replacing the existing transformation. All subsequent drawing operations occur in the transformed space.

```cpp
void SetTransform(const D2D1_MATRIX_3X2_F* transform);
```

### Parameters

*transform*<br/>
The transform to apply to the render target
*transform*\
The transform to apply to the brush

## See also

Expand Down