mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-06-28 01:48:30 +08:00
Fix a compile error in the Examples project
This commit is contained in:
parent
da44e1a540
commit
b6e0305a1c
@ -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}.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user