Skip to main content

Class BarcodeItemHandler

Namespace: Aurigma.DesignAtoms.Canvas.ItemHandlers​
Assembly: Aurigma.DesignAtoms.dll​
Syntax
public class BarcodeItemHandler : ContentItemHandler, ICloneable, IDisposable

Inheritance: System.Object -> Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler -> Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler -> Aurigma.DesignAtoms.Canvas.ItemHandlers.ShapeItemHandler -> Aurigma.DesignAtoms.Canvas.ItemHandlers.RectangleItemHandler -> Aurigma.DesignAtoms.Canvas.ItemHandlers.ContentItemHandler -> BarcodeItemHandler

Implements​

  • System.ICloneable
  • System.IDisposable

Inherited Members​

Constructors​

BarcodeItemHandler​

public BarcodeItemHandler(IConfiguration configuration, IStateResourcesRepository stateResourcesRepository, IColorManagement colorManagement, IFontService fontService, BarcodeItem item, IItemHandlerFactory itemHandlerFactory, IRepositoryImageParamsReaderFactory repositoryImageParamsReaderFactory, ISvgReaderFactory svgReaderFactory, IGmColorConverter gmColorConverter, IColorPreviewService colorPreviewService)

Properties​

StubTextImageFileId​

public string StubTextImageFileId { get; set; }

ErrorTextImageFileId​

public string ErrorTextImageFileId { get; set; }

ErrorMessage​

public string ErrorMessage { get; set; }

Item​

public BarcodeItem Item { get; }

CanExtendPipeline​

public bool CanExtendPipeline { get; }

Methods​

GetObjectId​

protected override string GetObjectId()
Returns​

System.String

Overrides​

IsImageAvailableAsync​

protected override Task<bool> IsImageAvailableAsync()
Returns​

System.Threading.Tasks.Task<System.Boolean>

Overrides​

GetImageStreamAsync​

protected override Task<Stream> GetImageStreamAsync(float dpi, bool isPreview, IColorProfilesProvider profilesProvider, IRenderingColorSettings colorSettings)
Parameters​
TypeNameDescription
System.Singledpi
System.BooleanisPreview
Aurigma.DesignAtoms.ColorManagement.IColorProfilesProviderprofilesProvider
Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettingscolorSettings
Returns​

System.Threading.Tasks.Task<System.IO.Stream>

Overrides​

DrawContent​

protected override void DrawContent(RenderingContext renderingContext, Graphics graphics, IImageParams destImageParams, DrawItemParams drawItemParams, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, bool rasterizeVectorLayers, CompressionType? pdfCompression, bool isPreview, bool isSingleColorTargetContainer, bool isPdfRenderDeviceProfileEnabled, ImageEffect effect)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Canvas.RenderingContextrenderingContext
Aurigma.GraphicsMill.AdvancedDrawing.Graphicsgraphics
Aurigma.GraphicsMill.IImageParamsdestImageParams
Aurigma.DesignAtoms.Canvas.ItemHandlers.DrawItemParamsdrawItemParams
Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettingscolorSettings
Aurigma.DesignAtoms.ColorManagement.IColorProfilesProviderprofilesProvider
System.BooleanrasterizeVectorLayers
System.Nullable<Aurigma.DesignAtoms.Configuration.RenderingConfig.CompressionType>pdfCompression
System.BooleanisPreview
System.BooleanisSingleColorTargetContainer
System.BooleanisPdfRenderDeviceProfileEnabled
Aurigma.DesignAtoms.Model.Items.ImageEffecteffect
Overrides​

AddVectorImageToPipeline​

protected override IImageParams AddVectorImageToPipeline(Pipeline pipeline, Stream stream, float destDpi, Size destSize, bool isPreview, bool isSingleColorTargetContainer, IList<IDisposable> disposables)
Parameters​
TypeNameDescription
Aurigma.GraphicsMill.Pipelinepipeline
System.IO.Streamstream
System.SingledestDpi
System.Drawing.SizedestSize
System.BooleanisPreview
System.BooleanisSingleColorTargetContainer
System.Collections.Generic.IList<System.IDisposable>disposables
Returns​

Aurigma.GraphicsMill.IImageParams

Overrides​

GetImageCombiner​

protected override Transform GetImageCombiner(IImageParams destImageParams, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, float scale, IEnumerable<IDisposable> deps, ScaleAlpha alpha, PointF offset, bool isPreview, bool isSingleColorTargetContainer = false)
Parameters​
TypeNameDescription
Aurigma.GraphicsMill.IImageParamsdestImageParams
Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettingscolorSettings
Aurigma.DesignAtoms.ColorManagement.IColorProfilesProviderprofilesProvider
System.Singlescale
System.Collections.Generic.IEnumerable<System.IDisposable>deps
Aurigma.GraphicsMill.Transforms.ScaleAlphaalpha
Aurigma.DesignAtoms.Model.Math.PointFoffset
System.BooleanisPreview
System.BooleanisSingleColorTargetContainer
Returns​

Aurigma.GraphicsMill.Transforms.Transform

Overrides​

GetItemHandlerData​

public override ItemHandlerData GetItemHandlerData()
Returns​

Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandlerData

Overrides​

GetItemHandlerDataType​

public override string GetItemHandlerDataType()
Returns​

System.String

Overrides​

Encode​

public string Encode(float dpi, IColorProfilesProvider profilesProvider, IRenderingColorSettings colorSettings, bool useRgbColorSpace = false, bool updateSize = false)
Parameters​
TypeNameDescription
System.Singledpi
Aurigma.DesignAtoms.ColorManagement.IColorProfilesProviderprofilesProvider
Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettingscolorSettings
System.BooleanuseRgbColorSpace
System.BooleanupdateSize
Returns​

System.String

CreateStubTextImage​

public string CreateStubTextImage(int dpi, float size, string stubText, RgbColor color, string stubPsName = null)
Parameters​
TypeNameDescription
System.Int32dpi
System.Singlesize
System.StringstubText
Aurigma.GraphicsMill.RgbColorcolor
System.StringstubPsName
Returns​

System.String

GetEmptyImbBarcodeSize​

public static SizeF GetEmptyImbBarcodeSize()
Returns​

System.Drawing.SizeF

FillShape​

protected override void FillShape(Graphics graphics, IRenderingColorSettings colorSettings, PixelFormat destinationPixelFormat, IColorProfilesProvider profilesProvider, bool renderOnPdf, bool pdfRenderKeepOriginalColors, bool isPdfRenderDeviceProfileEnabled = false)
Parameters​
TypeNameDescription
Aurigma.GraphicsMill.AdvancedDrawing.Graphicsgraphics
Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettingscolorSettings
Aurigma.DesignAtoms.Model.Color.PixelFormatdestinationPixelFormat
Aurigma.DesignAtoms.ColorManagement.IColorProfilesProviderprofilesProvider
System.BooleanrenderOnPdf
System.BooleanpdfRenderKeepOriginalColors
System.BooleanisPdfRenderDeviceProfileEnabled
Overrides​

ToZXingEncodingOptions​

public EncodingOptions ToZXingEncodingOptions(BarcodeItem.EncodingOptions encodingOptions)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Items.BarcodeItem.EncodingOptionsencodingOptions
Returns​

ZXing.Common.EncodingOptions

ToZXingBarcodeFormat​

public static BarcodeFormat ToZXingBarcodeFormat(WritableBarcodeFormat writableBarcodeFormat)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Items.WritableBarcodeFormatwritableBarcodeFormat
Returns​

ZXing.BarcodeFormat

Fields​

BarcodeSvgCmykProfileName​

public const string BarcodeSvgCmykProfileName = "cmykprofile"
Was this page helpful?