-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from baltermia/upgrade-to-imagesharp-v2
Upgrade to ImageSharp Verison 2
- Loading branch information
Showing
7 changed files
with
64 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
using System; | ||
using SixLabors.ImageSharp.PixelFormats; | ||
using System; | ||
|
||
namespace BarcodeReader.ImageSharp | ||
{ | ||
/// <summary> | ||
/// EventArgs for BarcodeDetectedEvents but also other events using Barcodes | ||
/// </summary> | ||
public class BarcodeEventArgs : EventArgs | ||
public class BarcodeEventArgs<T> : EventArgs where T : unmanaged, IPixel<T> | ||
{ | ||
/// <summary> | ||
/// Decoded value from the barcode as a string | ||
/// </summary> | ||
public BarcodeResult Result { get; } | ||
|
||
/// <summary> | ||
/// Creates a new instance of the BarcodeEventArgs class | ||
/// </summary> | ||
public BarcodeEventArgs(BarcodeResult result) | ||
{ | ||
Result = result; | ||
} | ||
public BarcodeResult<T> Result { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters