Last active
December 16, 2020 20:12
-
-
Save fbehrens/4e89f48753830c6ecfd8a7a9ecc09383 to your computer and use it in GitHub Desktop.
use Barcode lib
This file contains hidden or 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
// Microsoft (R) F# Interactive version 11.0.0.0 for F# 5.0 | |
// #r "C:/Users/fb/OneDrive/code/schnelltest/etc/barcodelib/BarcodeStandard/bin/Debug/netstandard2.0/BarcodeStandard.dll" | |
// #r "System.Drawing.Common" | |
// or | |
#r "nuget: BarcodeLib" | |
open BarcodeLib | |
open System.Drawing | |
let b = new Barcode() | |
let img = b.Encode(BarcodeLib.TYPE.UPCA, "038000356216", Color.Black, Color.White, 290, 120) | |
// getting following error | |
// barcodeLib.fsi(6,58): error FS0001: This expression was expected to have type | |
// 'System.Drawing.Color (System.Drawing.Primitives, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)' | |
// but here has type | |
// 'System.Drawing.Color (System.Drawing.Primitives, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment