CodecsCsvOptions Class (original) (raw)

Summary

Provides extra options for loading CSV files as raster or SVG images.

Syntax

public class CodecsCsvOptions 

public: ref class CodecsCsvOptions

Example

using Leadtools; using Leadtools.Codecs; using Leadtools.ImageProcessing.Core; public void CodecsCsvOptions_Example() { string csvFileName = Path.Combine(LEAD_VARS.ImagesDir, "sample.csv"); string pngFileName = Path.Combine(LEAD_VARS.ImagesDir, "sample-csv.png"); using (RasterCodecs codecs = new RasterCodecs()) { // Change some CSV options CodecsCsvLoadOptions csvOptions = codecs.Options.Csv.Load; // CodecsCsvOptions reference csvOptions.HeaderFontItalic = true; csvOptions.BodyFontName = "Arial"; csvOptions.TableBorderColor = RasterColor.FromKnownColor(RasterKnownColor.Red); // Load the first page from a CSV file using (RasterImage image = codecs.Load(csvFileName, 1)) { // Save it as PNG codecs.Save(image, pngFileName, RasterImageFormat.Png, 0); } } } static class LEAD_VARS { public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; }

Leadtools.Codecs Assembly

CompactFile(Stream,Stream,int,int,bool,int,int,bool,int,CodecsSavePageMode,bool,bool) Method

CompactFile(Stream,Stream,int,int,bool,long,int,bool,long,CodecsSavePageMode,bool,bool,bool) Method

CompactFile(string,string,int,int,bool,int,int,bool,int,CodecsSavePageMode,bool,bool) Method

CompactFile(string,string,int,int,bool,long,int,bool,long,CodecsSavePageMode,bool,bool,bool) Method

StartCompress(int,int,int,RasterByteOrder,RasterViewPerspective,int,byte[],int,int,CodecsCompression,CodecsCompressDataCallback) Method