mirror of
https://github.com/DarthAffe/ScreenCapture.NET.git
synced 2025-12-12 13:28:35 +00:00
Change image creation in capturezone to wrap
This commit is contained in:
parent
d74f3a6b21
commit
122327532b
@ -77,14 +77,7 @@ public sealed class CaptureZone<TColor> : ICaptureZone
|
||||
/// <summary>
|
||||
/// Gets a <see cref="IImage{TColor}"/>.
|
||||
/// </summary>
|
||||
public IImage<TColor> Image
|
||||
{
|
||||
get
|
||||
{
|
||||
lock (_lock)
|
||||
return Image<TColor>.Create(RawBuffer, Width, Height, Stride);
|
||||
}
|
||||
}
|
||||
public IImage<TColor> Image => Image<TColor>.Wrap(InternalBuffer, Width, Height, Stride);
|
||||
|
||||
/// <inheritdoc />
|
||||
IImage ICaptureZone.Image => Image;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user