Skip to content

Commit

Permalink
Fix example code in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Speykious committed Dec 5, 2021
1 parent a410345 commit 5f2b2be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace YourProgram
using var camera = manager.GetCamera(0);

// Attach your callback to the camera's frame event handler
camera.NewFrameHandler += OnNewFrame;
camera.OnFrame += FrameEventHandler;

// Start decoding frames
camera.StartCapture();
Expand All @@ -59,7 +59,7 @@ namespace YourProgram
}

// Create a callback for decoded camera frames
public static void OnNewFrame(object? _sender, FrameEventArgs e)
public static void FrameEventHandler(object? _sender, FrameEventArgs e)
{
Frame frame = e.Frame;

Expand Down

0 comments on commit 5f2b2be

Please sign in to comment.