Class ContentItemHandler
Inheritance
System.Object
ContentItemHandler
Implements
System.ICloneable
System.IDisposable
Inherited Members
ShapeItemHandler.DrawShape(RenderingContext, Graphics, IImageParams, DrawItemParams, IRenderingColorSettings, IColorProfilesProvider, Boolean, Boolean, Boolean, Boolean, Boolean)
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()
Assembly: Aurigma.DesignAtoms.dll
Syntax
public abstract class ContentItemHandler : RectangleItemHandler, ICloneable, IDisposable
Constructors
ContentItemHandler(IConfiguration, IFileCache, IColorManagement, ILogger, IItemHandlerFactory, IFontService, ISvgReaderFactory, IGmColorConverter, ContentItem)
Declaration
protected ContentItemHandler(IConfiguration configuration, IFileCache fileCache, IColorManagement colorManagement, ILogger ccLogger, IItemHandlerFactory itemHandlerFactory, IFontService fontService, ISvgReaderFactory svgReaderFactory, IGmColorConverter gmColorConverter, ContentItem item)
Parameters
ContentItemHandler(IConfiguration, IFileCache, IColorManagement, ILogger, IItemHandlerFactory, IFontService, ISvgReaderFactory, IGmColorConverter, ContentItem, RectangleF)
Declaration
protected ContentItemHandler(IConfiguration configuration, IFileCache fileCache, IColorManagement colorManagement, ILogger ccLogger, IItemHandlerFactory itemHandlerFactory, IFontService fontService, ISvgReaderFactory svgReaderFactory, IGmColorConverter gmColorConverter, ContentItem item, RectangleF rectangle)
Parameters
Fields
_fontService
Declaration
protected readonly IFontService _fontService
Field Value
Properties
ContentType
Declaration
public ContentType ContentType { get; set; }
Property Value
Item
Declaration
public ContentItem Item { get; }
Property Value
MaskOpacity
Declaration
public double MaskOpacity { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
PageIndex
Declaration
protected virtual int PageIndex { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Methods
AddImageEffectToPipeline(IConfiguration, IImageParams, Pipeline, PixelFormat, IRenderingColorSettings, IColorProfilesProvider, IList<IDisposable>)
Declaration
protected virtual Pipeline AddImageEffectToPipeline(IConfiguration configuration, IImageParams source, Pipeline currentPipeline, PixelFormat colorizeDestPixelFormat, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, IList<IDisposable> deps)
Parameters
Returns
| Type |
Description |
| Aurigma.GraphicsMill.Pipeline |
|
AddOverlayEffectToPipeline(IImageParams, Pipeline, IRenderingColorSettings, PixelFormat, IColorProfilesProvider)
Declaration
protected virtual void AddOverlayEffectToPipeline(IImageParams reader, Pipeline pipeline, IRenderingColorSettings colorSettings, PixelFormat destinationPixelFormat, IColorProfilesProvider profilesProvider)
Parameters
AddVectorImageToPipeline(Pipeline, Stream, Single, Size, Boolean, Boolean, IList<IDisposable>)
Declaration
protected virtual IImageParams AddVectorImageToPipeline(Pipeline pipeline, Stream stream, float destDpi, Size destSize, bool isPreview, bool isSingleColorTargetContainer, IList<IDisposable> disposables)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.Pipeline |
pipeline |
|
| System.IO.Stream |
stream |
|
| System.Single |
destDpi |
|
| System.Drawing.Size |
destSize |
|
| System.Boolean |
isPreview |
|
| System.Boolean |
isSingleColorTargetContainer |
|
| System.Collections.Generic.IList<System.IDisposable> |
disposables |
|
Returns
| Type |
Description |
| Aurigma.GraphicsMill.IImageParams |
|
DrawContent(RenderingContext, Graphics, IImageParams, DrawItemParams, IRenderingColorSettings, IColorProfilesProvider, Boolean, Nullable<CompressionType>, Boolean, Boolean, Boolean, ImageEffect)
Declaration
protected virtual 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
ExtendPipeline(Pipeline, IImageParams, IRenderingColorSettings, IColorProfilesProvider, Single, out IEnumerable<IDisposable>, PointF, Boolean, Boolean)
Declaration
public void ExtendPipeline(Pipeline pipeline, IImageParams destImageParams, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, float scale, out IEnumerable<IDisposable> deps, PointF offset, bool isPreview, bool isSingleColorContainer)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.Pipeline |
pipeline |
|
| Aurigma.GraphicsMill.IImageParams |
destImageParams |
|
| IRenderingColorSettings |
colorSettings |
|
| IColorProfilesProvider |
profilesProvider |
|
| System.Single |
scale |
|
| System.Collections.Generic.IEnumerable<System.IDisposable> |
deps |
|
| PointF |
offset |
|
| System.Boolean |
isPreview |
|
| System.Boolean |
isSingleColorContainer |
|
GetImageCombiner(IImageParams, IRenderingColorSettings, IColorProfilesProvider, Single, IEnumerable<IDisposable>, ScaleAlpha, PointF, Boolean, Boolean)
Declaration
protected virtual Transform GetImageCombiner(IImageParams destImageParams, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, float scale, IEnumerable<IDisposable> deps, ScaleAlpha alpha, PointF offset, bool isPreview, bool isSingleColorTargetContainer = false)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.IImageParams |
destImageParams |
|
| IRenderingColorSettings |
colorSettings |
|
| IColorProfilesProvider |
profilesProvider |
|
| System.Single |
scale |
|
| System.Collections.Generic.IEnumerable<System.IDisposable> |
deps |
|
| Aurigma.GraphicsMill.Transforms.ScaleAlpha |
alpha |
|
| PointF |
offset |
|
| System.Boolean |
isPreview |
|
| System.Boolean |
isSingleColorTargetContainer |
|
Returns
| Type |
Description |
| Aurigma.GraphicsMill.Transforms.Transform |
|
GetImageStreamAsync(Single, Boolean, IColorProfilesProvider, IRenderingColorSettings)
Declaration
protected abstract Task<Stream> GetImageStreamAsync(float dpi, bool isPreview, IColorProfilesProvider profilesProvider, IRenderingColorSettings colorSettings)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.IO.Stream> |
|
GetObjectId()
Declaration
protected abstract string GetObjectId()
Returns
| Type |
Description |
| System.String |
|
IsDownscaleRequired(Rectangle, IImageParams)
Declaration
protected bool IsDownscaleRequired(Rectangle imageRect, IImageParams firstElement)
Parameters
| Type |
Name |
Description |
| System.Drawing.Rectangle |
imageRect |
|
| Aurigma.GraphicsMill.IImageParams |
firstElement |
|
Returns
| Type |
Description |
| System.Boolean |
|
IsImageAvailable()
Declaration
protected bool IsImageAvailable()
Returns
| Type |
Description |
| System.Boolean |
|
IsImageAvailableAsync()
Declaration
protected abstract Task<bool> IsImageAvailableAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.Boolean> |
|
IsUpscaleRequired(Boolean, IImageParams, Single, Single)
Declaration
protected virtual bool IsUpscaleRequired(bool isSingleColorTargetContainer, IImageParams sourceElement, float dpiX, float dpiY)
Parameters
| Type |
Name |
Description |
| System.Boolean |
isSingleColorTargetContainer |
|
| Aurigma.GraphicsMill.IImageParams |
sourceElement |
|
| System.Single |
dpiX |
|
| System.Single |
dpiY |
|
Returns
| Type |
Description |
| System.Boolean |
|
NeedRasterizeVectorContent()
Declaration
protected virtual bool NeedRasterizeVectorContent()
Returns
| Type |
Description |
| System.Boolean |
|
UpdateRectangle(Boolean, PlaceholderItem.ResizeMode, PlaceholderItem, Nullable<Single>, Nullable<Single>, Nullable<Single>, Nullable<Single>)
Declaration
public virtual void UpdateRectangle(bool keepLocation, PlaceholderItem.ResizeMode resizeMode, PlaceholderItem parentPlaceholder, float? sourceWidth = null, float? sourceHeight = null, float? dpiX = null, float? dpiY = null)
Parameters
| Type |
Name |
Description |
| System.Boolean |
keepLocation |
|
| PlaceholderItem.ResizeMode |
resizeMode |
|
| PlaceholderItem |
parentPlaceholder |
|
| System.Nullable<System.Single> |
sourceWidth |
|
| System.Nullable<System.Single> |
sourceHeight |
|
| System.Nullable<System.Single> |
dpiX |
|
| System.Nullable<System.Single> |
dpiY |
|
Implements
System.ICloneable
System.IDisposable