From e83db97a2fb11a0951e9b6257e38b71aaa60e390 Mon Sep 17 00:00:00 2001 From: Dipesh Kumar <85861525+dipeshmsft@users.noreply.github.com> Date: Thu, 23 Dec 2021 20:47:42 +0530 Subject: [PATCH] Updated sourceBufferStride's documentation (#5863) --- .../Windows/Media/Imaging/WriteableBitmap.cs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/WriteableBitmap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/WriteableBitmap.cs index 3bc0e4ff4..7f8416ceb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/WriteableBitmap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/WriteableBitmap.cs @@ -352,7 +352,10 @@ public void Unlock() /// The rect to copy from the input buffer. /// The input buffer used to update the bitmap. /// The size of the input buffer in bytes. - /// The stride of the input buffer in bytes. + /// + /// The stride of the input buffer in bytes. + /// It indicates where the next row starts in the input buffer. + /// /// The destination x-coordinate of the left-most pixel to copy. /// The destination y-coordinate of the top-most pixel to copy. public void WritePixels( @@ -380,7 +383,10 @@ int destinationY /// /// The rect to copy from the input buffer. /// The input buffer used to update the bitmap. - /// The stride of the input buffer in bytes. + /// + /// The stride of the input buffer in bytes. + /// It indicates where the next row starts in the input buffer. + /// /// The destination x-coordinate of the left-most pixel to copy. /// The destination y-coordinate of the top-most pixel to copy. public void WritePixels( @@ -436,7 +442,7 @@ int destinationY /// Area to update /// Input buffer /// Size of the buffer - /// Stride + /// Stride of the input buffer public unsafe void WritePixels( Int32Rect sourceRect, IntPtr buffer, @@ -488,7 +494,7 @@ int stride /// /// Area to update /// Input buffer - /// Stride + /// Stride of the input buffer /// Input buffer offset public void WritePixels( Int32Rect sourceRect, @@ -814,6 +820,7 @@ out _pDoubleBufferedBitmap /// /// /// The stride of the input buffer in bytes. + /// It indicates where the next row starts in the input buffer. /// /// /// The destination x-coordinate of the left-most pixel to copy. -- GitLab