Üretimde su işareti olmadan test edin.
Nerede ihtiyaç duyarsanız çalışır.
Tam işlevselliğe sahip ürün için 30 gün alın.
Birkaç dakika içinde çalışır hale getirin.
Ürün denemeniz sırasında destek mühendis ekibimize tam erişim
using IronBarCode;
using System.Drawing;
// Reading a barcode is easy with IronBarcode!
var resultFromFile = BarcodeReader.Read(@"file/barcode.png"); // From a file
var resultFromBitMap = BarcodeReader.Read(new Bitmap("barcode.bmp")); // From a bitmap
var resultFromImage = BarcodeReader.Read(Image.FromFile("barcode.jpg")); // From an image file
var resultFromPdf = BarcodeReader.ReadPdf(@"file/mydocument.pdf"); // From PDF use ReadPdf
// To configure and fine-tune barcode reading, utilize the BarcodeReaderOptions class
var myOptionsExample = new BarcodeReaderOptions
{
// Choose a reading speed from: Faster, Balanced, Detailed, ExtremeDetail
// There is a tradeoff in performance as more detail is set
Speed = ReadingSpeed.Balanced,
// Reader will stop scanning once a single barcode is found (if set to true)
ExpectMultipleBarcodes = true,
// By default, all barcode formats are scanned for
// Specifying a subset of barcode types to search for would improve performance
ExpectBarcodeTypes = BarcodeEncoding.AllOneDimensional,
// Utilize multiple threads to read barcodes from multiple images in parallel
Multithreaded = true,
// Maximum threads for parallelized barcode reading
// Default is 4
MaxParallelThreads = 2,
// The area of each image frame in which to scan for barcodes
// Specifying a crop area will significantly improve performance and avoid noisy parts of the image
CropArea = new Rectangle(),
// Special setting for Code39 barcodes
// If a Code39 barcode is detected, try to read with both the base and extended ASCII character sets
UseCode39ExtendedMode = true
};
// Read with the options applied
var results = BarcodeReader.Read("barcode.png", myOptionsExample);
// Create a barcode with one line of code
var myBarcode = BarcodeWriter.CreateBarcode("12345", BarcodeWriterEncoding.EAN8);
// After creating a barcode, we may choose to resize
myBarcode.ResizeTo(400, 100);
// Save our newly-created barcode as an image
myBarcode.SaveAsImage("EAN8.jpeg");
// Get the barcode as an image for further processing
var myBarcodeImage = myBarcode.Image;
Imports IronBarCode
Imports System.Drawing
' Reading a barcode is easy with IronBarcode!
Dim resultFromFile = BarcodeReader.Read("file/barcode.png") ' From a file
Dim resultFromBitMap = BarcodeReader.Read(New Bitmap("barcode.bmp")) ' From a bitmap
Dim resultFromImage = BarcodeReader.Read(Image.FromFile("barcode.jpg")) ' From an image file
Dim resultFromPdf = BarcodeReader.ReadPdf("file/mydocument.pdf") ' From PDF use ReadPdf
' To configure and fine-tune barcode reading, utilize the BarcodeReaderOptions class
Dim myOptionsExample As New BarcodeReaderOptions With {
' Choose a reading speed from: Faster, Balanced, Detailed, ExtremeDetail
' There is a tradeoff in performance as more detail is set
.Speed = ReadingSpeed.Balanced,
' Reader will stop scanning once a single barcode is found (if set to true)
.ExpectMultipleBarcodes = True,
' By default, all barcode formats are scanned for
' Specifying a subset of barcode types to search for would improve performance
.ExpectBarcodeTypes = BarcodeEncoding.AllOneDimensional,
' Utilize multiple threads to read barcodes from multiple images in parallel
.Multithreaded = True,
' Maximum threads for parallelized barcode reading
' Default is 4
.MaxParallelThreads = 2,
' The area of each image frame in which to scan for barcodes
' Specifying a crop area will significantly improve performance and avoid noisy parts of the image
.CropArea = New Rectangle(),
' Special setting for Code39 barcodes
' If a Code39 barcode is detected, try to read with both the base and extended ASCII character sets
.UseCode39ExtendedMode = True
}
' Read with the options applied
Dim results = BarcodeReader.Read("barcode.png", myOptionsExample)
' Create a barcode with one line of code
Dim myBarcode = BarcodeWriter.CreateBarcode("12345", BarcodeWriterEncoding.EAN8)
' After creating a barcode, we may choose to resize
myBarcode.ResizeTo(400, 100)
' Save our newly-created barcode as an image
myBarcode.SaveAsImage("EAN8.jpeg")
' Get the barcode as an image for further processing
Dim myBarcodeImage = myBarcode.Image
Install-Package BarCode
IronBarCode, görüntü dosyalarindan (jpeg, png ve jpg) degiskenleri etrafa gecirmek istediginiz yerde daha programatik formatlara kadar çeşitli standart formatlari destekler, ornegin bir bitmap. Ayrica, IronBarCode'un herhangi bir kod tabaninda sorunsuz bir sekilde entegre olmasini saglayarak geliştiricilere dosya formatlari ve degiskenler ile esneklik saglayan PDF gibi harici formatlari da destekler.
IronBarcode, tüm dosya formatları için bir barkod okuyucu olmanın yanı sıra, EAN8, Code128 ve Code39 gibi tüm standart kodlama ve formatları destekleyen bir barkod üreticisi olarak da işlev görür. Barkod oluşturucuyu kurmak sadece iki satir kod alır. Dusuk bir giris bariyeri ve geliştiriciler icin bolca ozelestirme seçenekleri ile, IronBarCode barkodlar ile ilgili tüm durumlar icin bir numarali tercihtir.
Öncelikle IronBarCode ve System.Drawing gibi gerekli kütüphaneleri içe aktarırız ve BarcodeWriter örneğini oluştururuz, böylece 12345 string değerine ve EAN8 formatına sahip bir barkod oluştururuz. Daha sonra, oluşturulan barkodu istenilen formatta bir görüntü olarak kaydediyoruz. IronBarCode, bir barkodu bir Image ya da bir Bitmap olarak oluşturmayı desteklediğinden, bunun için çeşitli seçenekler vardır.
Yukarıdan da görüldüğü gibi, IronBarCode kullanarak bir barkod oluşturmak için sadece iki satır kod gerekir ve daha sonra kullanım icin bir dosya olarak kaydedilir. IronBarCode, bu durumu genişleterek geliştirmelere duruma uygun barkodu özgünlestirmek icin bircok seçenek sunar.
Barkod görüntüsünü yeniden boyutlandırmak için ResizeTo yöntemini ve yükseklik ile genişliği geçirerek kullanabiliriz.
Yukarıdaki gibi, önce BarcodeReader örneğini oluştururuz, Read yöntemine dosya yolunu geçiririz ve daha sonra kullanmak ve barkod nesnesini manipüle etmek için bir değişken olarak kaydederiz. PDF gibi harici formatları okumak için belirli yöntemler vardır ReadPDF; ancak genel görüntü formatları ve bit eşlemler için Read kullanırız.
IronBarCode, geliştiricilere standart dosya formatindan barkod tarama imkani saglar. Ancak, geliştiricilerin özellikle birçok barkod dosyasını programlı olarak okurken Read metodunun davranışını ince ayar yapmak istedikleri durumlar vardır. This is where BarcodeReaderOptions comes in. IronBarCode lets you fully customize things such as the speed at which it reads with Speed, whether multiple barcodes are expected in the file with ExpectedMultipleBarcodes, and what kind of barcodes they are with the property ExpectBarcodeTypes. Bu, geliştiricilerin birden çok görüntüden barkod okumak icin birden fazla iş parçacıklarını calistirmalarına ve paralel okuma yaparken kullanılan iş parçacıklarının sayısını kontrol etmelerine izin verir.
Bunlar, IronBarCode'un gucunu sergileyen özelliklerden sadece birkacini oluşturur. Tam bir liste icin, lutfen dokümantasyonu buradan inceleyin.
using IronBarCode;
using IronSoftware.Drawing;
// Choose which filters are to be applied (in order)
// Set cacheAtEachIteration = true to save the intermediate image data after each filter is applied
var filtersToApply = new ImageFilterCollection(cacheAtEachIteration: true) {
new SharpenFilter(),
new InvertFilter(),
new ContrastFilter(),
new BrightnessFilter(),
new AdaptiveThresholdFilter(),
new BinaryThresholdFilter(),
new GaussianBlurFilter(),
new MedianBlurFilter(),
new BilateralFilter()
};
BarcodeReaderOptions myOptionsExample = new BarcodeReaderOptions()
{
// Set chosen filters in BarcodeReaderOptions
ImageFilters = filtersToApply,
Speed = ReadingSpeed.Balanced,
ExpectMultipleBarcodes = true,
};
// Read with the options applied
BarcodeResults results = BarcodeReader.Read("screenshot.png", myOptionsExample);
AnyBitmap[] filteredImages = results.FilterImages();
// Export intermediate image files to disk
for (int i = 0 ; i < filteredImages.Length ; i++)
filteredImages[i].SaveAs($"{i}_barcode.png");
// Or
results.ExportFilterImagesToDisk("filter-result.jpg");
Imports IronBarCode
Imports IronSoftware.Drawing
' Choose which filters are to be applied (in order)
' Set cacheAtEachIteration = true to save the intermediate image data after each filter is applied
Private filtersToApply = New ImageFilterCollection(cacheAtEachIteration:= True) From {
New SharpenFilter(),
New InvertFilter(),
New ContrastFilter(),
New BrightnessFilter(),
New AdaptiveThresholdFilter(),
New BinaryThresholdFilter(),
New GaussianBlurFilter(),
New MedianBlurFilter(),
New BilateralFilter()
}
Private myOptionsExample As New BarcodeReaderOptions() With {
.ImageFilters = filtersToApply,
.Speed = ReadingSpeed.Balanced,
.ExpectMultipleBarcodes = True
}
' Read with the options applied
Private results As BarcodeResults = BarcodeReader.Read("screenshot.png", myOptionsExample)
Private filteredImages() As AnyBitmap = results.FilterImages()
' Export intermediate image files to disk
For i As Integer = 0 To filteredImages.Length - 1
filteredImages(i).SaveAs($"{i}_barcode.png")
Next i
' Or
results.ExportFilterImagesToDisk("filter-result.jpg")
Install-Package BarCode
IronBarcode, BarcodeReaderOptions içinde kolayca uygulanabilen birçok resim ön işlem filtreleri sunar. Görselinizin okunmasını iyileştirebilecek Sharpen, İkili Eşik, ve Contrast gibi filtreleri seçin. Seçtiğiniz sıranın, uygulandıkları sıra olduğunu unutmayın.
Her filtre uygulandığında ara görüntülerin görüntü verilerini kaydetme seçeneği vardır. Bu, ImageFilterCollection'nın SaveAtEachIteration özelliğiyle açılıp kapatılabilir.
Özellikli Kod Örneğinden Temel Noktalar:
BarcodeReaderOptions bir örnek oluştururuz ve bunu çeşitli resim filtreleriyle yapılandırırız: Sharpen, Binary Threshold, ve Contrast.cacheAtEachIteration'yi true olarak ayarlayarak, kütüphane her filtre uygulamasından sonra algoritmaları, hata ayıklama ve analiz için kullanışlı olan ara görüntüleri kaydeder.using IronBarCode;
using System.Drawing;
/*** CREATING BARCODE IMAGES ***/
// Create and save a barcode in a single line of code
BarcodeWriter.CreateBarcode("12345", BarcodeWriterEncoding.EAN8).ResizeTo(400, 100).SaveAsImage("EAN8.jpeg");
/***** IN-DEPTH BARCODE CREATION OPTIONS *****/
// BarcodeWriter.CreateBarcode creates a GeneratedBarcode which can be styled and exported as an Image object or file
GeneratedBarcode MyBarCode = BarcodeWriter.CreateBarcode("Any Number, String or Binary Value", BarcodeWriterEncoding.Code128);
// Style the Barcode in a fluent LINQ-style fashion
MyBarCode.ResizeTo(300, 150).SetMargins(20).AddAnnotationTextAboveBarcode("Example EAN8 Barcode").AddBarcodeValueTextBelowBarcode();
MyBarCode.ChangeBackgroundColor(Color.LightGoldenrodYellow);
// Save the barcode as an image file
MyBarCode.SaveAsImage("MyBarCode.png");
MyBarCode.SaveAsGif("MyBarCode.gif");
MyBarCode.SaveAsHtmlFile("MyBarCode.html");
MyBarCode.SaveAsJpeg("MyBarCode.jpg");
MyBarCode.SaveAsPdf("MyBarCode.Pdf");
MyBarCode.SaveAsPng("MyBarCode.png");
MyBarCode.SaveAsTiff("MyBarCode.tiff");
MyBarCode.SaveAsWindowsBitmap("MyBarCode.bmp");
// Save the barcode as a .NET native object
Image MyBarCodeImage = MyBarCode.Image;
Bitmap MyBarCodeBitmap = MyBarCode.ToBitmap();
byte[] PngBytes = MyBarCode.ToPngBinaryData();
using (System.IO.Stream PdfStream = MyBarCode.ToPdfStream())
{
// Stream barcode image output also works for GIF, JPEG, PDF, PNG, BMP and TIFF
}
// Save MyBarCode as an HTML file or tag
MyBarCode.SaveAsHtmlFile("MyBarCode.Html");
string ImgTagForHTML = MyBarCode.ToHtmlTag();
string DataURL = MyBarCode.ToDataUrl();
// Save MyBarCode to a new PDF, or stamp it in any position on any page(s) of an existing document
MyBarCode.SaveAsPdf("MyBarCode.Pdf");
MyBarCode.StampToExistingPdfPage("ExistingPDF.pdf", 200, 50, 1); // Position (200, 50) on page 1
MyBarCode.StampToExistingPdfPages("ExistingPDF.pdf", 200, 50, new[] { 1, 2, 3 }, "Password123"); // Multiple pages of an encrypted PDF
Imports IronBarCode
Imports System.Drawing
'''* CREATING BARCODE IMAGES **
' Create and save a barcode in a single line of code
BarcodeWriter.CreateBarcode("12345", BarcodeWriterEncoding.EAN8).ResizeTo(400, 100).SaveAsImage("EAN8.jpeg")
'''*** IN-DEPTH BARCODE CREATION OPTIONS ****
' BarcodeWriter.CreateBarcode creates a GeneratedBarcode which can be styled and exported as an Image object or file
Dim MyBarCode As GeneratedBarcode = BarcodeWriter.CreateBarcode("Any Number, String or Binary Value", BarcodeWriterEncoding.Code128)
' Style the Barcode in a fluent LINQ-style fashion
MyBarCode.ResizeTo(300, 150).SetMargins(20).AddAnnotationTextAboveBarcode("Example EAN8 Barcode").AddBarcodeValueTextBelowBarcode()
MyBarCode.ChangeBackgroundColor(Color.LightGoldenrodYellow)
' Save the barcode as an image file
MyBarCode.SaveAsImage("MyBarCode.png")
MyBarCode.SaveAsGif("MyBarCode.gif")
MyBarCode.SaveAsHtmlFile("MyBarCode.html")
MyBarCode.SaveAsJpeg("MyBarCode.jpg")
MyBarCode.SaveAsPdf("MyBarCode.Pdf")
MyBarCode.SaveAsPng("MyBarCode.png")
MyBarCode.SaveAsTiff("MyBarCode.tiff")
MyBarCode.SaveAsWindowsBitmap("MyBarCode.bmp")
' Save the barcode as a .NET native object
Dim MyBarCodeImage As Image = MyBarCode.Image
Dim MyBarCodeBitmap As Bitmap = MyBarCode.ToBitmap()
Dim PngBytes() As Byte = MyBarCode.ToPngBinaryData()
Using PdfStream As System.IO.Stream = MyBarCode.ToPdfStream()
' Stream barcode image output also works for GIF, JPEG, PDF, PNG, BMP and TIFF
End Using
' Save MyBarCode as an HTML file or tag
MyBarCode.SaveAsHtmlFile("MyBarCode.Html")
Dim ImgTagForHTML As String = MyBarCode.ToHtmlTag()
Dim DataURL As String = MyBarCode.ToDataUrl()
' Save MyBarCode to a new PDF, or stamp it in any position on any page(s) of an existing document
MyBarCode.SaveAsPdf("MyBarCode.Pdf")
MyBarCode.StampToExistingPdfPage("ExistingPDF.pdf", 200, 50, 1) ' Position (200, 50) on page 1
MyBarCode.StampToExistingPdfPages("ExistingPDF.pdf", 200, 50, { 1, 2, 3 }, "Password123") ' Multiple pages of an encrypted PDF
Install-Package BarCode
Bu örnekte, farklı tür ve formatlarda birçok barkodun oluşturulup, yeniden boyutlandırılıp, kaydedilebileceğini görüyoruz; hatta belki tek bir kod satırında.
Akıcı API'mizi kullanarak, oluşturulan barkod sınıfı, kenar boşluklarını ayarlamak, yeniden boyutlandırmak ve barkodları not almak için kullanılabilir. Daha sonra bunlar, IronBarcode'un doğru görüntü türünü dosya adından otomatik olarak içselleştirmesi ile GIF, HTML dosyaları, HTML etiketleri, JPEG, PDF, PNG, TIFF ve Windows Bitmap olarak kaydedilebilir.
We also have the StampToExistingPdfPage method, which allows a barcode to be generated and stamped onto an existing PDF. Bu, genel bir PDF içerik uğraşını düzenlerken veya bir belgeye barkod aracılığıyla iç kimlik numarası eklerken yararlıdır.
using IronBarCode;
using System;
using System.Drawing;
/*** STYLING GENERATED BARCODES ***/
// BarcodeWriter.CreateBarcode creates a GeneratedBarcode object which allows the barcode to be styled and annotated.
GeneratedBarcode MyBarCode = BarcodeWriter.CreateBarcode("Iron Software", BarcodeWriterEncoding.QRCode);
// Any text (or commonly, the value of the barcode) can be added to the image in a default or specified font.
// Text positions are automatically centered, above or below. Fonts that are too large for a given image are automatically scaled down.
MyBarCode.AddBarcodeValueTextBelowBarcode();
MyBarCode.AddAnnotationTextAboveBarcode("This is my barcode");
// Resize, add margins and check final image dimensions
MyBarCode.ResizeTo(300, 300); // Resize in pixels
MyBarCode.SetMargins(0, 20, 0, 20); // Set margins in pixels
int FinalWidth = MyBarCode.Width;
int FinalHeight = MyBarCode.Height;
// Recolor the barcode and its background
MyBarCode.ChangeBackgroundColor(Color.LightGray);
MyBarCode.ChangeBarCodeColor(Color.DarkSlateBlue);
if (!MyBarCode.Verify())
{
Console.WriteLine("Color contrast should be at least 50% or a barcode may become unreadable. Test using GeneratedBarcode.Verify()");
}
// Finally, save the result
MyBarCode.SaveAsHtmlFile("StyledBarcode.html");
/*** STYLING BARCODES IN A SINGLE LINQ-STYLE EXPRESSION ***/
// Create a barcode in one line of code
BarcodeWriter.CreateBarcode("https://ironsoftware.com", BarcodeWriterEncoding.Aztec).ResizeTo(250, 250).SetMargins(10).AddBarcodeValueTextAboveBarcode().SaveAsImage("StyledBarcode.png");
/*** STYLING QR CODES WITH LOGO IMAGES OR BRANDING ***/
// Use the QRCodeWriter.CreateQrCodeWithLogo Method instead of BarcodeWriter.CreateBarcode
// Logo will automatically be sized appropriately and snapped to the QR grid.
var qrCodeLogo = new QRCodeLogo("ironsoftware_logo.png");
GeneratedBarcode myQRCodeWithLogo = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/", qrCodeLogo);
myQRCodeWithLogo.ResizeTo(500, 500).SetMargins(10).ChangeBarCodeColor(Color.DarkGreen);
myQRCodeWithLogo.ResizeTo(500, 500).SetMargins(10).ChangeBarCodeColor(Color.DarkGreen);
myQRCodeWithLogo.SaveAsPng("QRWithLogo.Png").SaveAsPdf("MyVerifiedQR.html"); // Save as 2 different formats
Imports IronBarCode
Imports System
Imports System.Drawing
'*** STYLING GENERATED BARCODES ***
' BarcodeWriter.CreateBarcode creates a GeneratedBarcode object which allows the barcode to be styled and annotated.
Dim MyBarCode As GeneratedBarcode = BarcodeWriter.CreateBarcode("Iron Software", BarcodeWriterEncoding.QRCode)
' Any text (or commonly, the value of the barcode) can be added to the image in a default or specified font.
' Text positions are automatically centered, above or below. Fonts that are too large for a given image are automatically scaled down.
MyBarCode.AddBarcodeValueTextBelowBarcode()
MyBarCode.AddAnnotationTextAboveBarcode("This is my barcode")
' Resize, add margins and check final image dimensions
MyBarCode.ResizeTo(300, 300) ' Resize in pixels
MyBarCode.SetMargins(0, 20, 0, 20) ' Set margins in pixels
Dim FinalWidth As Integer = MyBarCode.Width
Dim FinalHeight As Integer = MyBarCode.Height
' Recolor the barcode and its background
MyBarCode.ChangeBackgroundColor(Color.LightGray)
MyBarCode.ChangeBarCodeColor(Color.DarkSlateBlue)
If Not MyBarCode.Verify() Then
Console.WriteLine("Color contrast should be at least 50% or a barcode may become unreadable. Test using GeneratedBarcode.Verify()")
End If
' Finally, save the result
MyBarCode.SaveAsHtmlFile("StyledBarcode.html")
'*** STYLING BARCODES IN A SINGLE LINQ-STYLE EXPRESSION ***
' Create a barcode in one line of code
BarcodeWriter.CreateBarcode("https://ironsoftware.com", BarcodeWriterEncoding.Aztec).ResizeTo(250, 250).SetMargins(10).AddBarcodeValueTextAboveBarcode().SaveAsImage("StyledBarcode.png")
'*** STYLING QR CODES WITH LOGO IMAGES OR BRANDING ***
' Use the QRCodeWriter.CreateQrCodeWithLogo Method instead of BarcodeWriter.CreateBarcode
' Logo will automatically be sized appropriately and snapped to the QR grid.
Dim qrCodeLogo = New QRCodeLogo("ironsoftware_logo.png")
Dim myQRCodeWithLogo As GeneratedBarcode = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/", qrCodeLogo)
myQRCodeWithLogo.ResizeTo(500, 500).SetMargins(10).ChangeBarCodeColor(Color.DarkGreen)
myQRCodeWithLogo.ResizeTo(500, 500).SetMargins(10).ChangeBarCodeColor(Color.DarkGreen)
myQRCodeWithLogo.SaveAsPng("QRWithLogo.Png").SaveAsPdf("MyVerifiedQR.html") ' Save as 2 different formats
Install-Package BarCode
Bu örnekte, barkodların yükleme alanına bağlı herhangi bir yazı tipi ile veya barkodun kendi degeri ile anotasyon yapılabileceğini goruyoruz. Bu yazı tipi mevcut degilse, uygun bir benzer yazı tipi secilecektir. Barkodlar boyutlandirilabilir, marjin eklenebilir ve hem barkod hem de arka plan yeniden renklendirilebilir. Daha sonra uygun bir formatta kaydedilebilirler.
Kodun son birkaç satırında, akıcı stil operatörlerimizi kullanarak, sadece birkaç satır kod ile bir barkod oluşturmanın ve süslemenin mümkün olduğunu görebilirsiniz, System.Linq benzer.
using IronBarCode;
GeneratedBarcode MyBarCode = BarcodeWriter.CreateBarcode("1234567890", BarcodeWriterEncoding.Code128);
// Save as a stand-alone HTML file without any image assets
MyBarCode.SaveAsHtmlFile("MyBarCode.html");
// Save as a stand-alone HTML image tag which can be served in HTML files, ASPX or MVC Views. No image assets required, the tag embeds the entire image in its source content
string ImgTag = MyBarCode.ToHtmlTag();
// Turn the image into a HTML/CSS Data URI.
string DataURI = MyBarCode.ToDataUrl();
Imports IronBarCode
Private MyBarCode As GeneratedBarcode = BarcodeWriter.CreateBarcode("1234567890", BarcodeWriterEncoding.Code128)
' Save as a stand-alone HTML file without any image assets
MyBarCode.SaveAsHtmlFile("MyBarCode.html")
' Save as a stand-alone HTML image tag which can be served in HTML files, ASPX or MVC Views. No image assets required, the tag embeds the entire image in its source content
Dim ImgTag As String = MyBarCode.ToHtmlTag()
' Turn the image into a HTML/CSS Data URI.
Dim DataURI As String = MyBarCode.ToDataUrl()
Install-Package BarCode
IronBarcode, barkodların HTML olarak dışa aktarılmasını sağlayan çok kullanışlı bir özelliğe sahiptir, bu sayede hiçbir görüntü varlığına sahip olmadan kendi başına çalışabilir. Her şey HTML dosyasının içinde yer alır.
HTML dosyası, HTML görüntü etiketi olarak veya bir veri URI'si olarak dışa aktarabiliriz.
Bu örnekte:
BarcodeWriter.CreateBarcode kullanarak oluşturuyoruz. ToHtmlTag(), web sayfalarına gömülebilecek bir HTML <img> etiketi oluşturur. ToDataUri(), bir görüntü URL'sinin gerektiği yerlerde veya <img> etiketleri için kaynak olarak kullanılabilecek bir veri URI dizesi oluşturur. SaveAsHtmlFile(), tüm görüntü verilerini çevrim içi olarak içeren bağımsız bir HTML dosyası olarak çubuk kodunu kaydeder, bu da onu taşınabilir ve paylaşımı kolay hale getirir.
Ürün, entegrasyon veya lisanslama sorularınız olsun; Iron ürün geliştirme ekibi tüm sorularınızı yanıtlamak için hazır. Kütüphanemizi projenizde en iyi şekilde kullanmak için bizimle iletişime geçin ve bir diyalog başlatın.
Soru SorIronBarcode, UPC A/E, EAN 8/13, Kod 39, Kod 93, Kod 128, ITF, MSI, RSS 14/Genişletilmiş, Databar, CodaBar, QR, Stilize QR, Veri Matrisi, MaxiCode, PDF417, Plessey ve Aztek gibi barkod ve QR standartlarının çoğunu okur ve oluşturur. Sonuçlar, barkod verilerini, türünü, sayfasını, metni ve barkod görüntüsünü sağlar; arşiv veya indeksleme sistemleri için idealdir.
Tüm Fonksiyon Listesini Görüntüle
IronBarcode, hız ve doğruluğu artırmak için barkod görüntülerini otomatik olarak önceden işler. Tarama veya canlı video karelerini okumak için döndürme, gürültü, bozulma ve eğikliği düzeltir. Çoklu çekirdek ve çoklu iş parçacığı, toplu işleme sunucu uygulamaları için hazır. Tek sayfalı ve çok sayfalı belgelerde bir veya birden fazla barkod otomatik olarak bulun. Karmaşık API'ler gerektirmeden belirli barkod türlerini veya belge konumlarını arayın.
Daha Fazla Bilgi EdininBirkaç satır kodla dakikalar içinde başlayın. .NET için kolay kullanımlı tek bir DLL olarak tasarlanmıştır; bağımlılıksız; 32 ve 64 bit destekler; herhangi bir .NET dilinde kullanılır. Web, Bulut, Masaüstü veya Komut Satırı Uygulamalarında kullanın; Mobil ve Masaüstü cihazlarla uyumludur.
Yazılım ürününü bu linkten indirebilirsiniz.
Hemen BaşlayınBir dosyaya veya akışa kaydedin veya yazdırın, PDF, JPG, TIFF, GIF, BMP, PNG veya HTML formatlarında. Renk, kalite, döndürme, boyut ve metin ayarlayın. Tam .NET Belge Kütüphanesi için IronPDF ve IronOCR ile birlikte C# Barcode Programlama araç kutusunu kullanın.
Daha Fazla Bilgi Edinin
Ücretsiz topluluk geliştirme lisansları. Ticari lisanslar 749 $'dan başlar.
C# .NET Barkod QR
Frank'in, C# .NET Barkod Uygulaması içinde Taramalar, Fotoğraflar ve PDF belgelerinden Barkodları Nasıl Okuduğunu Görün...
Frank'in Barcode Okuma Kılavuzunu Görüntüle
C# .NET Barkod
Francesca, C# veya VB Uygulamalarında Görüntülere Barkod Yazma için bazı ipuçları ve püf noktaları paylaşıyor. Barkodları nasıl yazacağınızı ve IronBarcode ile kullanılabilir tüm seçenekleri nasıl göreceğinizi görün...
Francesca'nın BarCode Eğitimine Bakın
QR .NET C# VB
Jenny'nin Ekibi, günde binlerce QR'ı IronBarcode ile yazar. IronBarcode'dan en iyi şekilde nasıl yararlanacaklarını görebileceğiniz eğitimlerini izleyin...
Jenny'nin Ekibinden QR Yazma Eğitimi
Iron ekibinin .NET yazılım bileşeni pazarında 10 yıldan fazla deneyimi vardır.