Skip to content

Commit

Permalink
Fix a compile error in the Examples project
Browse files Browse the repository at this point in the history
  • Loading branch information
Numpsy authored and BobLd committed May 5, 2024
1 parent da44e1a commit b6e0305
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/ExtractImages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public static void Run(string filePath)
{
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;
Expand All @@ -31,7 +31,7 @@ public static void Run(string filePath)
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}.");
}
}
}
Expand Down

0 comments on commit b6e0305

Please sign in to comment.