Skip to content

Instantly share code, notes, and snippets.

@fbehrens
Last active December 16, 2020 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fbehrens/4e89f48753830c6ecfd8a7a9ecc09383 to your computer and use it in GitHub Desktop.
Save fbehrens/4e89f48753830c6ecfd8a7a9ecc09383 to your computer and use it in GitHub Desktop.
use Barcode lib
// 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