- Introduction
- What's New?
- Features
- Upgrading the Design Editor
- Breaking Changes in 6.0
- Getting Started
- Integration with E-commerce
- Integration with Remote Asset Sources
- Printable Files and Proof Images
- Configuring Products
- Creating Product Templates
- User Interface
- Configuration Files
- APIs
- IFrame API
- Web API
- Design Atoms Framework
- What's New?
- Design Atoms Framework Overview
- Creating Applications with Design Atoms Framework
- Working with the Object Model
- Groups of Design Elements
- Using Dependency Injection
- Loading Templates
- Saving Products
- Rendering Products
- Reference
- Aurigma.DesignAtoms.Common Namespace
- Aurigma.DesignAtoms.Common.Math Namespace
- Aurigma.DesignAtoms.Configuration Namespace
- Aurigma.DesignAtoms.Configuration.RenderingConfig Namespace
- Aurigma.DesignAtoms.Convert Namespace
- Aurigma.DesignAtoms.Licensing Namespace
- Aurigma.DesignAtoms.Model Namespace
- Aurigma.DesignAtoms.Model.CustomData Namespace
- Aurigma.DesignAtoms.Model.Items Namespace
- Aurigma.DesignAtoms.Rendering Namespace
- CanvasBuilder Class
- CanvasBuilderSettings Class
- CanvasRenderer Class
- ICanvasBuilder Interface
- ICanvasRenderer Interface
- IProductRenderer Interface
- IProductRenderer Members
- IProductRenderer Methods
- RenderHiRes Method
- RenderHiRes Method (PrintArea, RenderingConfig)
- RenderHiRes Method (Product, RenderingConfig)
- RenderHiRes Method (Stream, PrintArea, RenderingConfig)
- RenderHiRes Method (Stream, Product, RenderingConfig)
- RenderHiRes Method (Product, DataSet, RenderingConfig)
- RenderHiRes Method (Product, SurfaceData, RenderingConfig)
- RenderHiRes Method (Stream, Product, DataSet, RenderingConfig)
- RenderHiRes Method (Stream, Product, SurfaceData, RenderingConfig)
- RenderHiResBitmap Method
- RenderProof Method
- RenderWatermarkToStorageId Method
- RenderHiRes Method
- ProductRenderer Class
- RenderingContext Class
- RenderingType Enumeration
- WorkspaceTransformParams Class
- Aurigma.DesignAtoms.Serialization Namespace
- Aurigma.DesignAtoms.Serialization.Json.Product Namespace
- UI Framework
- Dynamic Image API
- Add-ons
- System Requirements
- Troubleshooting
- Migrating Your Applications
- Licensing
- Copyright Notices
You’re viewing outdated documentation. View the latest Customer’s Canvas On-Premises documentation.
RenderHiRes Method (Product, RenderingConfig)
Applies to: Customer's Canvas On-Premises; Design Atoms .NET 6.0.0, 6.x (may differ) · Archived documentation
Renders a Product to the cache
Generates a collection of image IDs in the cache, which represent hi-res outputs for single pages of the Product.
Namespace:
Aurigma.DesignAtoms.Rendering
Assembly:
Aurigma.DesignAtoms (in Aurigma.DesignAtoms.dll)
Syntax
C#
IEnumerable<string> RenderHiRes(
Product product,
RenderingConfig renderingConfig
)
Parameters
- product
-
Type: Aurigma.DesignAtoms.Model.Product
A Product to render.
- renderingConfig
-
Type: Aurigma.DesignAtoms.Configuration.RenderingConfig.RenderingConfig
Rendering properties. When you skip this parameter or passnull, the dafault configuration is applied.
Return Value
A collection of image IDs in the cache. To retrieve images by IDs, you can use the GetReadStream() method.Examples
C#
// Instantiate IProductRenderer.
var renderer = Injector.Instance.Resolve<IProductRenderer>();
// Get the identifier of the first rendered page.
var cacheId = renderer.RenderHiRes(product).First();
// Instantiate IFileCache to retrieve the hi-res output.
var fileCache = Injector.Instance.Resolve<IFileCache>();
// Save the hi-res output to a file.
using (var stream = fileCache.GetReadStream(cacheId))
using (var fileStream = File.Create("product.pdf"))
stream.CopyTo(fileStream);