private QuantumType[] GetAreaUnchecked(int x, int y, int width, int height)
{
IntPtr pixels = _NativeInstance.GetArea(x, y, width, height);
if (pixels == IntPtr.Zero)
{
throw new InvalidOperationException("Image contains no pixel data.");
}
int length = width * height * _Image.ChannelCount;
return(QuantumConverter.ToArray(pixels, length));
}