SKPixmap.ReadPixels Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ReadPixels(SKImageInfo, IntPtr, Int32, Int32, Int32, SKTransferFunctionBehavior) |
Obsolete.
Copies the pixels from the image into the specified buffer. |
ReadPixels(SKImageInfo, IntPtr, Int32, Int32, Int32) |
Copies the pixels from the image into the specified buffer. |
ReadPixels(SKPixmap, Int32, Int32) |
Copies the pixels from the image into the specified pixmap. |
ReadPixels(SKPixmap) |
Copies the pixels from the image into the specified pixmap. |
ReadPixels(SKImageInfo, IntPtr, Int32) |
Copies the pixels from the image into the specified buffer. |
ReadPixels(SKImageInfo, IntPtr, Int32, Int32, Int32, SKTransferFunctionBehavior)
Caution
Use ReadPixels(SKImageInfo, IntPtr, int, int, int) instead.
Copies the pixels from the image into the specified buffer.
public bool ReadPixels (SkiaSharp.SKImageInfo dstInfo, IntPtr dstPixels, int dstRowBytes, int srcX, int srcY, SkiaSharp.SKTransferFunctionBehavior behavior);
[System.Obsolete("Use ReadPixels(SKImageInfo, IntPtr, int, int, int) instead.")]
public bool ReadPixels (SkiaSharp.SKImageInfo dstInfo, IntPtr dstPixels, int dstRowBytes, int srcX, int srcY, SkiaSharp.SKTransferFunctionBehavior behavior);
Parameters
- dstInfo
- SKImageInfo
The image information describing the destination pixel buffer.
- dstPixels
- IntPtr
The pixel buffer to read the pixel data into.
- dstRowBytes
- Int32
The number of bytes in each row of in the destination buffer.
- srcX
- Int32
The source x-coordinate to start reading from.
- srcY
- Int32
The source y-coordinate to start reading from.
- behavior
- SKTransferFunctionBehavior
The behavior to control whether or not the source pixels are first converted to linear space.
Returns
Returns true
if the pixels were read, or false
if there was an error.
- Attributes
Applies to
ReadPixels(SKImageInfo, IntPtr, Int32, Int32, Int32)
Copies the pixels from the image into the specified buffer.
public bool ReadPixels (SkiaSharp.SKImageInfo dstInfo, IntPtr dstPixels, int dstRowBytes, int srcX, int srcY);
Parameters
- dstInfo
- SKImageInfo
The image information describing the destination pixel buffer.
- dstPixels
- IntPtr
The pixel buffer to read the pixel data into.
- dstRowBytes
- Int32
The number of bytes in each row of in the destination buffer.
- srcX
- Int32
The source x-coordinate to start reading from.
- srcY
- Int32
The source y-coordinate to start reading from.
Returns
Returns true
if the pixels were read, or false
if there was an error.
Applies to
ReadPixels(SKPixmap, Int32, Int32)
Copies the pixels from the image into the specified pixmap.
public bool ReadPixels (SkiaSharp.SKPixmap pixmap, int srcX, int srcY);
Parameters
- pixmap
- SKPixmap
The pixmap to read the pixel data into.
- srcX
- Int32
The source x-coordinate to start reading from.
- srcY
- Int32
The source y-coordinate to start reading from.
Returns
Returns true
if the pixels were read, or false
if there was an error.
Applies to
ReadPixels(SKPixmap)
ReadPixels(SKImageInfo, IntPtr, Int32)
Copies the pixels from the image into the specified buffer.
public bool ReadPixels (SkiaSharp.SKImageInfo dstInfo, IntPtr dstPixels, int dstRowBytes);
Parameters
- dstInfo
- SKImageInfo
The image information describing the destination pixel buffer.
- dstPixels
- IntPtr
The pixel buffer to read the pixel data into.
- dstRowBytes
- Int32
The number of bytes in each row of in the destination buffer.
Returns
Returns true
if the pixels were read, or false
if there was an error.
Applies to
SkiaSharp
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기