Back to Website
Show / Hide Table of Contents

Class ProductRenderer

Inheritance
System.Object
ProductRenderer
Implements
IProductRenderer
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Aurigma.DesignAtoms.Rendering
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class ProductRenderer : IProductRenderer

Constructors

ProductRenderer(IConfiguration, IItemHandlerFactory, IFileCache, ICanvasBuilder, IMergeUtil, IMd5Util, IColorManagement, IGmColorConverter, IImageLoader, ISurfaceHandler, IFontService, IProductHandler, IFileCacheImageParamsReader, IRenderingColorSettingsFactory, IWatermarkItemsBuilder, IRenderingNotifier)

Declaration
public ProductRenderer(IConfiguration configuration, IItemHandlerFactory itemHandlerFactory, IFileCache fileCache, ICanvasBuilder canvasBuilder, IMergeUtil mergeUtil, IMd5Util md5Util, IColorManagement colorManagement, IGmColorConverter gmColorConverter, IImageLoader imageLoader, ISurfaceHandler surfaceHandler, IFontService fontService, IProductHandler productHandler, IFileCacheImageParamsReader fileCacheImageParamsReader, IRenderingColorSettingsFactory renderingColorSettingsFactory, IWatermarkItemsBuilder watermarkItemsBuilder, IRenderingNotifier renderingNotifier = null)
Parameters
Type Name Description
IConfiguration configuration
IItemHandlerFactory itemHandlerFactory
IFileCache fileCache
ICanvasBuilder canvasBuilder
IMergeUtil mergeUtil
IMd5Util md5Util
IColorManagement colorManagement
IGmColorConverter gmColorConverter
IImageLoader imageLoader
ISurfaceHandler surfaceHandler
IFontService fontService
IProductHandler productHandler
IFileCacheImageParamsReader fileCacheImageParamsReader
IRenderingColorSettingsFactory renderingColorSettingsFactory
IWatermarkItemsBuilder watermarkItemsBuilder
IRenderingNotifier renderingNotifier

Fields

ProofImageColorSpace

Declaration
public static readonly ColorSpace ProofImageColorSpace
Field Value
Type Description
ColorSpace

ProofImageDefaultMaxSize

Declaration
public const int ProofImageDefaultMaxSize = 500
Field Value
Type Description
System.Int32

ProofImageDpi

Declaration
public const float ProofImageDpi = 72F
Field Value
Type Description
System.Single

ThumbnailBackgroundColor

Declaration
public static readonly Color ThumbnailBackgroundColor
Field Value
Type Description
Aurigma.GraphicsMill.Color

ThumbnailColorSpace

Declaration
public static readonly ColorSpace ThumbnailColorSpace
Field Value
Type Description
ColorSpace

ThumbnailDpi

Declaration
public static readonly float ThumbnailDpi
Field Value
Type Description
System.Single

ThumbnailFileFormat

Declaration
public static readonly FileFormat ThumbnailFileFormat
Field Value
Type Description
FileFormat

Methods

RenderHiRes(PrintArea, RenderingConfig, Object)

Declaration
public Task<string> RenderHiRes(PrintArea printArea, RenderingConfig renderingConfig, object notificationState = null)
Parameters
Type Name Description
PrintArea printArea
RenderingConfig renderingConfig
System.Object notificationState
Returns
Type Description
System.Threading.Tasks.Task<System.String>

RenderHiRes(Product, RenderingConfig, Object)

Declaration
public Task<IList<string>> RenderHiRes(Product product, RenderingConfig renderingConfig, object notificationState = null)
Parameters
Type Name Description
Product product
RenderingConfig renderingConfig
System.Object notificationState
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IList<System.String>>

RenderHiRes(Func<Stream>, Product, RenderingConfig, Object)

Declaration
public Task RenderHiRes(Func<Stream> getOutputStreamCallback, Product product, RenderingConfig renderingConfig = null, object notificationState = null)
Parameters
Type Name Description
System.Func<System.IO.Stream> getOutputStreamCallback
Product product
RenderingConfig renderingConfig
System.Object notificationState
Returns
Type Description
System.Threading.Tasks.Task

RenderHiRes(Stream, PrintArea, RenderingConfig, Object)

Declaration
public Task RenderHiRes(Stream stream, PrintArea printArea, RenderingConfig renderingConfig, object notificationState = null)
Parameters
Type Name Description
System.IO.Stream stream
PrintArea printArea
RenderingConfig renderingConfig
System.Object notificationState
Returns
Type Description
System.Threading.Tasks.Task

RenderHiRes(Stream, Product, RenderingConfig, Object)

Declaration
public Task RenderHiRes(Stream stream, Product product, RenderingConfig renderingConfig, object notificationState = null)
Parameters
Type Name Description
System.IO.Stream stream
Product product
RenderingConfig renderingConfig
System.Object notificationState
Returns
Type Description
System.Threading.Tasks.Task

RenderHiResBitmap(PrintArea, RenderingConfig, Object)

Declaration
public Task<Bitmap> RenderHiResBitmap(PrintArea printArea, RenderingConfig renderingConfig, object notificationState = null)
Parameters
Type Name Description
PrintArea printArea
RenderingConfig renderingConfig
System.Object notificationState
Returns
Type Description
System.Threading.Tasks.Task<Aurigma.GraphicsMill.Bitmap>

RenderHiResOutput(Product, RenderingConfig, Int32, Int32, Nullable<Int32>, Object)

Declaration
public Task<string> RenderHiResOutput(Product product, RenderingConfig renderingConfig, int surfaceIndex = -1, int printAreaIndex = -1, int? containerIndex = null, object notificationState = null)
Parameters
Type Name Description
Product product
RenderingConfig renderingConfig
System.Int32 surfaceIndex
System.Int32 printAreaIndex
System.Nullable<System.Int32> containerIndex
System.Object notificationState
Returns
Type Description
System.Threading.Tasks.Task<System.String>

RenderHiResOutput(State, Int32, Int32, Object)

Declaration
public Task<string> RenderHiResOutput(State state, int surfaceIndex = -1, int printAreaIndex = -1, object notificationState = null)
Parameters
Type Name Description
State state
System.Int32 surfaceIndex
System.Int32 printAreaIndex
System.Object notificationState
Returns
Type Description
System.Threading.Tasks.Task<System.String>

RenderItems(Stream, Item[], RenderingConfig)

Declaration
public Task<RectangleF> RenderItems(Stream stream, Item[] items, RenderingConfig renderingConfig)
Parameters
Type Name Description
System.IO.Stream stream
Item[] items
RenderingConfig renderingConfig
Returns
Type Description
System.Threading.Tasks.Task<System.Drawing.RectangleF>

RenderProof(Surface, RenderingConfig, Nullable<Size>, Nullable<ResizeMode>)

Declaration
public Task<string> RenderProof(Surface surface, RenderingConfig renderingConfig, Size? maxSize, ResizeMode? resizeMode)
Parameters
Type Name Description
Surface surface
RenderingConfig renderingConfig
System.Nullable<System.Drawing.Size> maxSize
System.Nullable<Aurigma.GraphicsMill.Transforms.ResizeMode> resizeMode
Returns
Type Description
System.Threading.Tasks.Task<System.String>

RenderProof(Stream, Product, RenderingConfig, Nullable<Size>, Nullable<ResizeMode>, Nullable<ResizeInterpolationMode>, IEnumerable<Int32>)

Declaration
public Task RenderProof(Stream stream, Product product, RenderingConfig renderingConfig, Size? maxSize = null, ResizeMode? resizeMode = null, ResizeInterpolationMode? interpolationMode = null, IEnumerable<int> surfaceIndexes = null)
Parameters
Type Name Description
System.IO.Stream stream
Product product
RenderingConfig renderingConfig
System.Nullable<System.Drawing.Size> maxSize
System.Nullable<Aurigma.GraphicsMill.Transforms.ResizeMode> resizeMode
System.Nullable<ResizeInterpolationMode> interpolationMode
System.Collections.Generic.IEnumerable<System.Int32> surfaceIndexes
Returns
Type Description
System.Threading.Tasks.Task

RenderProof(Stream, Surface, RenderingConfig, Nullable<Size>, Nullable<ResizeMode>)

Declaration
public Task RenderProof(Stream stream, Surface surface, RenderingConfig renderingConfig, Size? maxSize, ResizeMode? resizeMode)
Parameters
Type Name Description
System.IO.Stream stream
Surface surface
RenderingConfig renderingConfig
System.Nullable<System.Drawing.Size> maxSize
System.Nullable<Aurigma.GraphicsMill.Transforms.ResizeMode> resizeMode
Returns
Type Description
System.Threading.Tasks.Task

RenderProof(Stream, Surface, Container, RenderingConfig, Nullable<Size>, Nullable<ResizeMode>)

Declaration
public Task RenderProof(Stream stream, Surface surface, Container container, RenderingConfig renderingConfig, Size? maxSize, ResizeMode? resizeMode)
Parameters
Type Name Description
System.IO.Stream stream
Surface surface
Container container
RenderingConfig renderingConfig
System.Nullable<System.Drawing.Size> maxSize
System.Nullable<Aurigma.GraphicsMill.Transforms.ResizeMode> resizeMode
Returns
Type Description
System.Threading.Tasks.Task

RenderProof(Stream, Surface, PrintArea, RenderingConfig, Nullable<Size>, Nullable<ResizeMode>)

Declaration
public Task RenderProof(Stream stream, Surface surface, PrintArea printArea, RenderingConfig renderingConfig, Size? maxSize, ResizeMode? resizeMode)
Parameters
Type Name Description
System.IO.Stream stream
Surface surface
PrintArea printArea
RenderingConfig renderingConfig
System.Nullable<System.Drawing.Size> maxSize
System.Nullable<Aurigma.GraphicsMill.Transforms.ResizeMode> resizeMode
Returns
Type Description
System.Threading.Tasks.Task

RenderProof(Stream, Surface, PrintArea, Container, RenderingConfig, Nullable<Size>, Nullable<ResizeMode>)

Declaration
public Task RenderProof(Stream stream, Surface surface, PrintArea printArea, Container container, RenderingConfig renderingConfig, Size? maxSize, ResizeMode? resizeMode)
Parameters
Type Name Description
System.IO.Stream stream
Surface surface
PrintArea printArea
Container container
RenderingConfig renderingConfig
System.Nullable<System.Drawing.Size> maxSize
System.Nullable<Aurigma.GraphicsMill.Transforms.ResizeMode> resizeMode
Returns
Type Description
System.Threading.Tasks.Task

RenderProofImage(Product, RenderingConfig, Int32, Int32, Nullable<Size>, Nullable<ResizeMode>, Boolean, Nullable<ResizeInterpolationMode>)

Declaration
public Task<string> RenderProofImage(Product product, RenderingConfig renderingConfig, int surfaceIndex = 0, int mockupIndex = 0, Size? maxSize = null, ResizeMode? resizeMode = null, bool isThumbnail = false, ResizeInterpolationMode? interpolationMode = null)
Parameters
Type Name Description
Product product
RenderingConfig renderingConfig
System.Int32 surfaceIndex
System.Int32 mockupIndex
System.Nullable<System.Drawing.Size> maxSize
System.Nullable<Aurigma.GraphicsMill.Transforms.ResizeMode> resizeMode
System.Boolean isThumbnail
System.Nullable<ResizeInterpolationMode> interpolationMode
Returns
Type Description
System.Threading.Tasks.Task<System.String>

RenderProofImage(State, Int32, Int32, Nullable<Size>)

Declaration
public Task<string> RenderProofImage(State state, int surfaceIndex = 0, int previewIndex = 0, Size? maxSize = null)
Parameters
Type Name Description
State state
System.Int32 surfaceIndex
System.Int32 previewIndex
System.Nullable<System.Drawing.Size> maxSize
Returns
Type Description
System.Threading.Tasks.Task<System.String>

RenderThumbnail(Product, RenderingConfig, Int32, Size)

Declaration
public Task<string> RenderThumbnail(Product product, RenderingConfig renderingConfig, int surfaceIndex, Size size)
Parameters
Type Name Description
Product product
RenderingConfig renderingConfig
System.Int32 surfaceIndex
System.Drawing.Size size
Returns
Type Description
System.Threading.Tasks.Task<System.String>

RenderWatermark(RenderingConfig, WatermarkConfig, Single, Single, Boolean)

Declaration
public Task<string> RenderWatermark(RenderingConfig renderingConfig, WatermarkConfig watermarkConfig, float width, float height, bool upscaleEnabled = true)
Parameters
Type Name Description
RenderingConfig renderingConfig
WatermarkConfig watermarkConfig
System.Single width
System.Single height
System.Boolean upscaleEnabled
Returns
Type Description
System.Threading.Tasks.Task<System.String>

RenderWatermarkToStorageId(RenderingConfig, WatermarkConfig, Int32, Int32)

Declaration
public Task<WatermarkRenderingResult> RenderWatermarkToStorageId(RenderingConfig renderingConfig, WatermarkConfig watermarkConfig, int width, int height)
Parameters
Type Name Description
RenderingConfig renderingConfig
WatermarkConfig watermarkConfig
System.Int32 width
System.Int32 height
Returns
Type Description
System.Threading.Tasks.Task<WatermarkRenderingResult>

Implements

IProductRenderer
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback