From a8d51bc417bb5fa0fe24613f1108f28927d794a7 Mon Sep 17 00:00:00 2001 From: Ovidiu Cucu <126897971+ocucu@users.noreply.github.com> Date: Wed, 1 Nov 2023 10:16:54 +0200 Subject: [PATCH 1/7] Update cd2dbrush-class.md Replaced 'render target' with 'brush' in the CD2DBrush::SetTransform function description --- docs/mfc/reference/cd2dbrush-class.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/mfc/reference/cd2dbrush-class.md b/docs/mfc/reference/cd2dbrush-class.md index 1e7dc1032f6..6d763343820 100644 --- a/docs/mfc/reference/cd2dbrush-class.md +++ b/docs/mfc/reference/cd2dbrush-class.md @@ -37,7 +37,7 @@ class CD2DBrush : public CD2DResource; |[CD2DBrush::GetTransform](#gettransform)|Gets the current transform of the render target| |[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 From 5db2e8b1b9f216d1ed31ebf9764f8263ec02a6af Mon Sep 17 00:00:00 2001 From: Ovidiu Cucu <126897971+ocucu@users.noreply.github.com> Date: Wed, 1 Nov 2023 16:18:59 +0200 Subject: [PATCH 2/7] Update cd2dbrush-class.md (2) Replace 'render target' with 'brush' in GetTransform and SetTransform function descriptions. --- docs/mfc/reference/cd2dbrush-class.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/mfc/reference/cd2dbrush-class.md b/docs/mfc/reference/cd2dbrush-class.md index 6d763343820..45b70f51574 100644 --- a/docs/mfc/reference/cd2dbrush-class.md +++ b/docs/mfc/reference/cd2dbrush-class.md @@ -153,7 +153,7 @@ A value between zero and 1 that indicates the opacity of the brush. This value i ## 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; @@ -162,7 +162,7 @@ void GetTransform(D2D1_MATRIX_3X2_F* transform) const; ### Parameters *transform*
-When this returns, contains the current transform of the render target. This parameter is passed uninitialized. +When this returns, contains the current transform of the brush. This parameter is passed uninitialized. ## CD2DBrush::IsValid @@ -219,7 +219,7 @@ A value between zero and 1 that indicates the opacity of the brush. This value i ## 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); @@ -228,7 +228,7 @@ void SetTransform(const D2D1_MATRIX_3X2_F* transform); ### Parameters *transform*
-The transform to apply to the render target +The transform to apply to the brush ## See also From 3a2b714d4e7ce05fa6d9061ae5d644bbe90faf9c Mon Sep 17 00:00:00 2001 From: Tyler Whitney Date: Wed, 1 Nov 2023 14:14:45 -0700 Subject: [PATCH 3/7] Update cd2dbrush-class.md Missed one replacement --- docs/mfc/reference/cd2dbrush-class.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/mfc/reference/cd2dbrush-class.md b/docs/mfc/reference/cd2dbrush-class.md index 45b70f51574..d7cdf213b9a 100644 --- a/docs/mfc/reference/cd2dbrush-class.md +++ b/docs/mfc/reference/cd2dbrush-class.md @@ -34,7 +34,7 @@ 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 brush, replacing the existing transformation. All subsequent drawing operations occur in the transformed space| @@ -82,7 +82,7 @@ void Attach(ID2D1Brush* pResource); ### Parameters -*pResource*
+*pResource*\ Existing resource interface. Cannot be NULL. ## CD2DBrush::CD2DBrush @@ -98,13 +98,13 @@ CD2DBrush( ### Parameters -*pParentTarget*
+*pParentTarget*\ A pointer to the render target. -*pBrushProperties*
+*pBrushProperties*\ A pointer to the opacity and transformation of a brush. -*bAutoDestroy*
+*bAutoDestroy*\ Indicates that the object will be destroyed by owner (pParentTarget). ## CD2DBrush::Destroy @@ -161,7 +161,7 @@ void GetTransform(D2D1_MATRIX_3X2_F* transform) const; ### Parameters -*transform*
+*transform*\ When this returns, contains the current transform of the brush. This parameter is passed uninitialized. ## CD2DBrush::IsValid @@ -214,7 +214,7 @@ void SetOpacity(FLOAT opacity); ### Parameters -*opacity*
+*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. ## CD2DBrush::SetTransform @@ -227,7 +227,7 @@ void SetTransform(const D2D1_MATRIX_3X2_F* transform); ### Parameters -*transform*
+*transform*\ The transform to apply to the brush ## See also From 2c9ab37651d1abfd3c1e1c08af848b49dbf9bb03 Mon Sep 17 00:00:00 2001 From: TylerMSFT Date: Wed, 15 Nov 2023 13:15:31 -0800 Subject: [PATCH 4/7] add warning level info --- docs/error-messages/compiler-warnings/c5267.md | 10 +++++----- docs/error-messages/toc.yml | 2 +- .../compiler-warnings-that-are-off-by-default.md | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/error-messages/compiler-warnings/c5267.md b/docs/error-messages/compiler-warnings/c5267.md index e4872ab8aac..23b1a7a5db6 100644 --- a/docs/error-messages/compiler-warnings/c5267.md +++ b/docs/error-messages/compiler-warnings/c5267.md @@ -1,11 +1,11 @@ --- -title: "Compiler warning 3 C5267" +title: "Compiler warning C5267" description: Learn about compiler warning C5267 ms.date: 11/08/2023 f1_keywords: ["C5267"] helpviewer_keywords: ["C5267"] --- -# Compiler warning C5267 +# Compiler warning (level 4) C5267 > definition of implicit copy constructor/assignment operator for '*type*' is deprecated because it has a user-provided assignment operator/copy constructor @@ -19,7 +19,7 @@ The relevant sections in the C++ standard are: ## Example -The following code shows warning C5267 when an implicitly generated special function is called but isn't explicitly defined: +The following code shows warning C5267 when an implicitly generated special function is called but isn't explicitly defined. Both `/W4` and `/w45267` are required to produce this warning. ```cpp // C5267.cpp @@ -27,13 +27,13 @@ The following code shows warning C5267 when an implicitly generated special func struct CopyCtorOnly { CopyCtorOnly() = default; - CopyCtorOnly(const CopyCtorOnly&) {} // C5267 + CopyCtorOnly(const CopyCtorOnly&) {} // C5267 }; struct CopyAssignOpOnly { CopyAssignOpOnly() = default; - CopyAssignOpOnly& operator=(const CopyAssignOpOnly&) // C5267 + CopyAssignOpOnly& operator=(const CopyAssignOpOnly&) // C5267 { return *this; } diff --git a/docs/error-messages/toc.yml b/docs/error-messages/toc.yml index bf4ac66247a..bac98bdc5a5 100644 --- a/docs/error-messages/toc.yml +++ b/docs/error-messages/toc.yml @@ -4363,7 +4363,7 @@ items: href: compiler-warnings/c5248.md - name: Compiler warning (level 1, error, off) C5262 href: compiler-warnings/c5262.md - - name: Compiler warning C5267 + - name: Compiler warning (level 4) C5267 href: compiler-warnings/c5267.md - name: Compiler warning (level 1) C5301 and C5302 href: compiler-warnings/c5301-c5302.md diff --git a/docs/preprocessor/compiler-warnings-that-are-off-by-default.md b/docs/preprocessor/compiler-warnings-that-are-off-by-default.md index 9e02dbc459c..413245d8af8 100644 --- a/docs/preprocessor/compiler-warnings-that-are-off-by-default.md +++ b/docs/preprocessor/compiler-warnings-that-are-off-by-default.md @@ -1,7 +1,7 @@ --- description: "Learn more about: Compiler warnings that are off by default" title: "Compiler warnings that are off by default" -ms.date: 02/28/2023 +ms.date: 11/15/2023 helpviewer_keywords: ["warnings, compiler", "cl.exe compiler, setting options"] --- # Compiler warnings that are off by default @@ -190,7 +190,7 @@ The following warnings are turned off by default in Visual Studio 2022 and later | [C5262](../error-messages/compiler-warnings/c5262.md) (level 1, error) | implicit fall-through occurs here; are you missing a `break` statement? Use `[[fallthrough]]` when a `break` statement is intentionally omitted between cases 17.4 | | C5263 (level 4) | calling '`std::move`' on a temporary object prevents copy elision 17.4 | | C5264 (level 4) | '*variable-name*': 'const' variable is not used 17.4 | -| [C5267](../error-messages/compiler-warnings/c5267.md) | definition of implicit copy constructor/assignment operator for '*type*' is deprecated because it has a user-provided assignment operator/copy constructor 17.7 | +| [C5267](../error-messages/compiler-warnings/c5267.md) (level 4) | definition of implicit copy constructor/assignment operator for '*type*' is deprecated because it has a user-provided assignment operator/copy constructor 17.7 | 14.1 This warning is available starting in Visual Studio 2015 Update 1.\ 14.3 This warning is available starting in Visual Studio 2015 Update 3.\ From 33f47518a7068fd97f816954e8ae44091d0bddda Mon Sep 17 00:00:00 2001 From: TylerMSFT Date: Wed, 15 Nov 2023 14:54:55 -0800 Subject: [PATCH 5/7] port customer changes over to private branch from PR#4790 --- docs/mfc/reference/cd2dbrush-class.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/mfc/reference/cd2dbrush-class.md b/docs/mfc/reference/cd2dbrush-class.md index d7cdf213b9a..283570b7434 100644 --- a/docs/mfc/reference/cd2dbrush-class.md +++ b/docs/mfc/reference/cd2dbrush-class.md @@ -4,11 +4,10 @@ title: "CD2DBrush Class" ms.date: "11/04/2016" 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"] 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"] -ms.assetid: 0d2c0857-2261-48a8-8ee0-a88cbf08499a --- # CD2DBrush Class -A wrapper for ID2D1Brush. +A wrapper for `ID2D1Brush`. ## Syntax @@ -62,9 +61,9 @@ class CD2DBrush : public CD2DResource; ## Requirements -**Header:** afxrendertarget.h +**Header:** `afxrendertarget.h` -## CD2DBrush::~CD2DBrush +## `CD2DBrush::~CD2DBrush` The destructor. Called when a D2D brush object is being destroyed. @@ -72,7 +71,7 @@ The destructor. Called when a D2D brush object is being destroyed. virtual ~CD2DBrush(); ``` -## CD2DBrush::Attach +## `CD2DBrush::Attach` Attaches existing resource interface to the object. @@ -85,7 +84,7 @@ void Attach(ID2D1Brush* pResource); *pResource*\ Existing resource interface. Cannot be NULL. -## CD2DBrush::CD2DBrush +## `CD2DBrush::CD2DBrush` Constructs a CD2DBrush object. From eb43abdce8ca4d23e098e2923847e8aa126be736 Mon Sep 17 00:00:00 2001 From: TylerMSFT Date: Wed, 15 Nov 2023 15:10:51 -0800 Subject: [PATCH 6/7] acrolinx --- docs/mfc/reference/cd2dbrush-class.md | 96 +++++++++++++-------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/docs/mfc/reference/cd2dbrush-class.md b/docs/mfc/reference/cd2dbrush-class.md index 283570b7434..2c416535cc8 100644 --- a/docs/mfc/reference/cd2dbrush-class.md +++ b/docs/mfc/reference/cd2dbrush-class.md @@ -5,7 +5,7 @@ ms.date: "11/04/2016" 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"] 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"] --- -# CD2DBrush Class +# `CD2DBrush` Class A wrapper for `ID2D1Brush`. @@ -21,41 +21,41 @@ class CD2DBrush : public CD2DResource; |Name|Description| |----------|-----------------| -|[CD2DBrush::CD2DBrush](#cd2dbrush)|Constructs a CD2DBrush object.| -|[CD2DBrush::~CD2DBrush](#_dtorcd2dbrush)|The destructor. Called when a D2D brush object is being destroyed.| +|[`CD2DBrush::CD2DBrush`](#cd2dbrush)|Constructs a `CD2DBrush` object.| +|[`CD2DBrush::~CD2DBrush`](#_dtorcd2dbrush)|The destructor. Called when a D2D brush object is being destroyed.| ### Public Methods |Name|Description| |----------|-----------------| -|[CD2DBrush::Attach](#attach)|Attaches existing resource interface to the object| -|[CD2DBrush::Destroy](#destroy)|Destroys a CD2DBrush object. (Overrides [CD2DResource::Destroy](../../mfc/reference/cd2dresource-class.md#destroy).)| -|[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 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 brush, replacing the existing transformation. All subsequent drawing operations occur in the transformed space| +|[`CD2DBrush::Attach`](#attach)|Attaches existing resource interface to the object| +|[`CD2DBrush::Destroy`](#destroy)|Destroys a `CD2DBrush` object. (Overrides [`CD2DResource::Destroy`](../../mfc/reference/cd2dresource-class.md#destroy).)| +|[`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 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 brush, replacing the existing transformation. All subsequent drawing operations occur in the transformed space| ### Public Operators |Name|Description| |----------|-----------------| -|[CD2DBrush::operator ID2D1Brush*](#operator_id2d1brush_star)|Returns ID2D1Brush interface| +|[`CD2DBrush::operator ID2D1Brush*`](#operator_id2d1brush_star)|Returns `ID2D1Brush` interface| ### Protected Data Members |Name|Description| |----------|-----------------| -|[CD2DBrush::m_pBrush](#m_pbrush)|Stores a pointer to an ID2D1Brush object.| -|[CD2DBrush::m_pBrushProperties](#m_pbrushproperties)|Brush properties.| +|[`CD2DBrush::m_pBrush`](#m_pbrush)|Stores a pointer to an `ID2D1Brush` object.| +|[`CD2DBrush::m_pBrushProperties`](#m_pbrushproperties)|Brush properties.| ## Inheritance Hierarchy -[CObject](../../mfc/reference/cobject-class.md) +[`CObject`](../../mfc/reference/cobject-class.md) -[CD2DResource](../../mfc/reference/cd2dresource-class.md) +[`CD2DResource`](../../mfc/reference/cd2dresource-class.md) `CD2DBrush` @@ -65,7 +65,7 @@ class CD2DBrush : public CD2DResource; ## `CD2DBrush::~CD2DBrush` -The destructor. Called when a D2D brush object is being destroyed. +The destructor. Called when a `D2D` brush object is being destroyed. ``` virtual ~CD2DBrush(); @@ -81,12 +81,12 @@ void Attach(ID2D1Brush* pResource); ### Parameters -*pResource*\ -Existing resource interface. Cannot be NULL. +*`pResource`*\ +Existing resource interface. Can't be `NULL`. ## `CD2DBrush::CD2DBrush` -Constructs a CD2DBrush object. +Constructs a `CD2DBrush` object. ``` CD2DBrush( @@ -97,24 +97,24 @@ CD2DBrush( ### Parameters -*pParentTarget*\ +*`pParentTarget`*\ A pointer to the render target. -*pBrushProperties*\ +*`pBrushProperties`*\ A pointer to the opacity and transformation of a brush. -*bAutoDestroy*\ -Indicates that the object will be destroyed by owner (pParentTarget). +*`bAutoDestroy`*\ +Indicates that the owner (`pParentTarget`) will destroy the object. -## CD2DBrush::Destroy +## `CD2DBrush::Destroy` -Destroys a CD2DBrush object. +Destroys a `CD2DBrush` object. ``` virtual void Destroy(); ``` -## CD2DBrush::Detach +## `CD2DBrush::Detach` Detaches resource interface from the object. @@ -126,9 +126,9 @@ ID2D1Brush* Detach(); Pointer to detached resource interface. -## CD2DBrush::Get +## `CD2DBrush::Get` -Returns ID2D1Brush interface +Returns `ID2D1Brush` interface ``` ID2D1Brush* Get(); @@ -136,9 +136,9 @@ ID2D1Brush* Get(); ### Return Value -Pointer to an ID2D1Brush interface or NULL if object is not initialized yet. +Pointer to an `ID2D1Brush` interface or `NULL` if object isn't initialized yet. -## CD2DBrush::GetOpacity +## `CD2DBrush::GetOpacity` Gets the degree of opacity of this brush @@ -148,9 +148,9 @@ FLOAT GetOpacity() const; ### Return Value -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 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. -## CD2DBrush::GetTransform +## `CD2DBrush::GetTransform` Gets the current transform of the brush @@ -160,10 +160,10 @@ void GetTransform(D2D1_MATRIX_3X2_F* transform) const; ### Parameters -*transform*\ +*`transform`*\ When this returns, contains the current transform of the brush. This parameter is passed uninitialized. -## CD2DBrush::IsValid +## `CD2DBrush::IsValid` Checks resource validity @@ -173,17 +173,17 @@ virtual BOOL IsValid() const; ### Return Value -TRUE if resource is valid; otherwise FALSE. +`TRUE` if resource is valid; otherwise `FALSE`. -## CD2DBrush::m_pBrush +## `CD2DBrush::m_pBrush` -Stores a pointer to an ID2D1Brush object. +Stores a pointer to an `ID2D1Brush` object. ``` ID2D1Brush* m_pBrush; ``` -## CD2DBrush::m_pBrushProperties +## `CD2DBrush::m_pBrushProperties` Brush properties. @@ -191,9 +191,9 @@ Brush properties. CD2DBrushProperties* m_pBrushProperties; ``` -## CD2DBrush::operator ID2D1Brush* +## `CD2DBrush::operator ID2D1Brush*` -Returns ID2D1Brush interface +Returns `ID2D1Brush` interface ``` operator ID2D1Brush*(); @@ -201,9 +201,9 @@ operator ID2D1Brush*(); ### Return Value -Pointer to an ID2D1Brush interface or NULL if object is not initialized yet. +Pointer to an `ID2D1Brush` interface or NULL if object isn't initialized yet. -## CD2DBrush::SetOpacity +## `CD2DBrush::SetOpacity` Sets the degree of opacity of this brush @@ -213,10 +213,10 @@ void SetOpacity(FLOAT opacity); ### Parameters -*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. +*`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're multiplied together. -## CD2DBrush::SetTransform +## `CD2DBrush::SetTransform` Applies the specified transform to the brush, replacing the existing transformation. All subsequent drawing operations occur in the transformed space. @@ -226,7 +226,7 @@ void SetTransform(const D2D1_MATRIX_3X2_F* transform); ### Parameters -*transform*\ +*`transform`*\ The transform to apply to the brush ## See also From 187bfdb90229d4efd97918a0d58df07fbb6c73e6 Mon Sep 17 00:00:00 2001 From: TylerMSFT Date: Wed, 15 Nov 2023 15:13:33 -0800 Subject: [PATCH 7/7] acrolinx --- docs/mfc/reference/cd2dbrush-class.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/mfc/reference/cd2dbrush-class.md b/docs/mfc/reference/cd2dbrush-class.md index 2c416535cc8..937159f7684 100644 --- a/docs/mfc/reference/cd2dbrush-class.md +++ b/docs/mfc/reference/cd2dbrush-class.md @@ -104,7 +104,7 @@ A pointer to the render target. A pointer to the opacity and transformation of a brush. *`bAutoDestroy`*\ -Indicates that the owner (`pParentTarget`) will destroy the object. +Indicates that the owner (`pParentTarget`) destroys the object. ## `CD2DBrush::Destroy`