Fix a compile error in the Examples project

This commit is contained in:
Richard Webb 2024-05-05 10:47:47 +01:00 committed by BobLd
parent da44e1a540
commit b6e0305a1c

View File

@ -15,9 +15,9 @@
{
foreach (var image in page.GetImages())
{
if (!image.TryGetBytes(out var b))
if (!image.TryGetBytesAsMemory(out var b))
{
b = image.RawBytes;
b = image.RawMemory;
}
var type = string.Empty;
@ -31,7 +31,7 @@
break;
}
Console.WriteLine($"Image with {b.Count} bytes of type '{type}' on page {page.Number}. Location: {image.Bounds}.");
Console.WriteLine($"Image with {b.Length} bytes of type '{type}' on page {page.Number}. Location: {image.Bounds}.");
}
}
}