SKAutoMaskFreeImage Class
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.
Convenience class used to automatically free the image data for a mask in a using statement.
public class SKAutoMaskFreeImage : IDisposable
- Inheritance
-
SKAutoMaskFreeImage
- Implements
Examples
// some buffer
byte[] buffer = ...;
// create the mask, allocating the image
var mask = SKMask.Create(buffer, bounds, rowBytes, format);
using (new SKAutoMaskFreeImage(mask.Image)) {
// use the mask
// automatically release the image data
}
Remarks
This class can be used in a using statement to automatically free the image data of a mask by virtue of having the Dispose() method.
Constructors
SKAutoMaskFreeImage(IntPtr) |
Create a new instance of SKAutoMaskFreeImage with the specified image to free. |
Methods
Dispose() |
Disposes the object, releasing the image data. |
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
SkiaSharp