Back to Website
Show / Hide Table of Contents

Class ImageItemHandler

Inheritance
System.Object
ItemHandler
BaseRectangleItemHandler
ShapeItemHandler
RectangleItemHandler
ContentItemHandler
ImageItemHandler
Implements
System.ICloneable
System.IDisposable
Inherited Members
ContentItemHandler._fontService
ContentItemHandler.ExtendPipeline(Pipeline, IImageParams, IColorManagement, Single, IEnumerable<IDisposable>, PointF, Boolean)
ContentItemHandler.IsScaleWorkaroundRequired()
ContentItemHandler.MaskOpacity
ContentItemHandler.ContentType
RectangleItemHandler.GetDrawingPath(Single)
RectangleItemHandler.Bounds
ShapeItemHandler.ItemOnPropertyChanged(Object, PropertyChangedEventArgs)
ShapeItemHandler.UpdateControlPoints()
ShapeItemHandler.GetBorderWidth(Single)
ShapeItemHandler.GetActualDash(Single)
ShapeItemHandler.GetTransformedPath()
ShapeItemHandler.GetShapeDrawer(IImageParams, IColorManagement, Single, PointF)
ShapeItemHandler.GetPath()
ShapeItemHandler.FillShape(Graphics, IImageParams, IColorManagement, Boolean)
ShapeItemHandler.StrokeShape(Graphics, IImageParams, IColorManagement, Boolean)
ShapeItemHandler.DrawShape(RenderingContext, Graphics, IImageParams, IColorManagement, Boolean, Boolean, Boolean)
ShapeItemHandler.ClearColorProfile()
ShapeItemHandler.ConvertColorProfile(IColorManagement, ColorSpace)
ShapeItemHandler.Path
ShapeItemHandler.BorderColor
ShapeItemHandler.AltBorderColor
ShapeItemHandler.Dash
ShapeItemHandler.FillColor
ShapeItemHandler.BorderWidth
ShapeItemHandler.FixedBorderWidth
BaseRectangleItemHandler.MinDimension
BaseRectangleItemHandler.GetTransform(RectangleF, RotatedRectangleF)
BaseRectangleItemHandler.DrawClippingPath(Graphics, Action)
BaseRectangleItemHandler.GetClippingPath(Single, Boolean)
BaseRectangleItemHandler.GetTransformedVectorMask(Transform, PointF, Boolean)
BaseRectangleItemHandler.Rectangle
BaseRectangleItemHandler.Angle
BaseRectangleItemHandler.Height
BaseRectangleItemHandler.Width
BaseRectangleItemHandler.Location
BaseRectangleItemHandler.Opacity
BaseRectangleItemHandler.TextWrappingMode
ItemHandler._fileCache
ItemHandler._configuration
ItemHandler._ccLogger
ItemHandler._logger
ItemHandler.ItemOnPermissionsChanged(Object, EventArgs)
ItemHandler.Clone()
ItemHandler.Transform_TransformChanged(Object, EventArgs)
ItemHandler.OnChanged()
ItemHandler.CreateVoPermissions()
ItemHandler.Draw(RenderingContext, Bitmap, Boolean)
ItemHandler.GetDestinationColor(Color, IImageParams, IColorManagement, Single, Boolean)
ItemHandler.GetColorManagement(Boolean)
ItemHandler.BeginUpdate()
ItemHandler.EndUpdate()
ItemHandler.Dispose()
ItemHandler.Dispose(Boolean)
ItemHandler.IsEmpty
ItemHandler.ControlPoints
ItemHandler.UniqueId
ItemHandler.Transform
ItemHandler.Tag
ItemHandler.Layer
ItemHandler.Index
ItemHandler.Canvas
ItemHandler.Name
ItemHandler.BlendMode
ItemHandler.Permissions
ItemHandler.Data
ItemHandler.Visible
ItemHandler.Locked
ItemHandler.IsUpdating
ItemHandler.Changed
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.Canvas.ItemHandlers
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class ImageItemHandler : ContentItemHandler, ICloneable, IDisposable, IPipelineExtender

Constructors

ImageItemHandler(IConfiguration, IFileCache, ILogger, IImageLoader, IItemHandlerFactory, IFontService, ImageItem)

Declaration
public ImageItemHandler(IConfiguration configuration, IFileCache fileCache, ILogger ccLogger, IImageLoader imageLoader, IItemHandlerFactory itemHandlerFactory, IFontService fontService, ImageItem item)
Parameters
Type Name Description
IConfiguration configuration
IFileCache fileCache
ILogger ccLogger
IImageLoader imageLoader
IItemHandlerFactory itemHandlerFactory
IFontService fontService
ImageItem item

Properties

CanExtendPipeline

Declaration
public bool CanExtendPipeline { get; }
Property Value
Type Description
System.Boolean

Effect

Declaration
public ImageEffect Effect { get; set; }
Property Value
Type Description
ImageEffect

FileId

Declaration
protected override string FileId { get; }
Property Value
Type Description
System.String
Overrides
ContentItemHandler.FileId

IsLocalImage

Declaration
public bool IsLocalImage { get; }
Property Value
Type Description
System.Boolean

IsVector

Declaration
public bool IsVector { get; }
Property Value
Type Description
System.Boolean

Item

Declaration
public ImageItem Item { get; }
Property Value
Type Description
ImageItem

NeedToDownloadImage

Declaration
public bool NeedToDownloadImage { get; set; }
Property Value
Type Description
System.Boolean

OverlayColor

Declaration
public Color OverlayColor { get; set; }
Property Value
Type Description
Aurigma.GraphicsMill.Color

PageIndex

Declaration
protected override int PageIndex { get; }
Property Value
Type Description
System.Int32
Overrides
ContentItemHandler.PageIndex

RemoteUrl

Declaration
public string RemoteUrl { get; set; }
Property Value
Type Description
System.String

SourceFileId

Declaration
public string SourceFileId { get; }
Property Value
Type Description
System.String

SourcePageIndex

Declaration
public int SourcePageIndex { get; set; }
Property Value
Type Description
System.Int32

TakeIntoAccountImageDpi

Declaration
public bool TakeIntoAccountImageDpi { get; }
Property Value
Type Description
System.Boolean

Methods

AddImageEffectToPipeline(IConfiguration, IImageParams, Pipeline, IColorManagement, PixelFormat, IList<IDisposable>)

Declaration
protected override Pipeline AddImageEffectToPipeline(IConfiguration configuration, IImageParams source, Pipeline pipeline, IColorManagement colorManagement, PixelFormat colorizeDestPixelFormat, IList<IDisposable> deps)
Parameters
Type Name Description
IConfiguration configuration
Aurigma.GraphicsMill.IImageParams source
Aurigma.GraphicsMill.Pipeline pipeline
IColorManagement colorManagement
Aurigma.GraphicsMill.PixelFormat colorizeDestPixelFormat
System.Collections.Generic.IList<System.IDisposable> deps
Returns
Type Description
Aurigma.GraphicsMill.Pipeline
Overrides
ContentItemHandler.AddImageEffectToPipeline(IConfiguration, IImageParams, Pipeline, IColorManagement, PixelFormat, IList<IDisposable>)

AddOverlayEffectToPipeline(IImageParams, Pipeline, IColorManagement, PixelFormat)

Declaration
protected override void AddOverlayEffectToPipeline(IImageParams reader, Pipeline pipeline, IColorManagement colorManagement, PixelFormat destPixelFormat)
Parameters
Type Name Description
Aurigma.GraphicsMill.IImageParams reader
Aurigma.GraphicsMill.Pipeline pipeline
IColorManagement colorManagement
Aurigma.GraphicsMill.PixelFormat destPixelFormat
Overrides
ContentItemHandler.AddOverlayEffectToPipeline(IImageParams, Pipeline, IColorManagement, PixelFormat)

DrawContent(RenderingContext, Graphics, IImageParams, IColorManagement, Boolean, Nullable<CompressionType>, Boolean)

Declaration
protected override void DrawContent(RenderingContext renderingContext, Graphics graphics, IImageParams destImageParams, IColorManagement colorManagement, bool rasterizeVectorLayers, CompressionType? pdfCompression, bool isPreview)
Parameters
Type Name Description
RenderingContext renderingContext
Aurigma.GraphicsMill.AdvancedDrawing.Graphics graphics
Aurigma.GraphicsMill.IImageParams destImageParams
IColorManagement colorManagement
System.Boolean rasterizeVectorLayers
System.Nullable<Aurigma.GraphicsMill.Codecs.CompressionType> pdfCompression
System.Boolean isPreview
Overrides
ContentItemHandler.DrawContent(RenderingContext, Graphics, IImageParams, IColorManagement, Boolean, Nullable<CompressionType>, Boolean)

GetAlphaMaskPipelines(Bitmap, Size)

Declaration
public static IEnumerable<PipelineElement> GetAlphaMaskPipelines(Bitmap bitmap, Size size)
Parameters
Type Name Description
Aurigma.GraphicsMill.Bitmap bitmap
System.Drawing.Size size
Returns
Type Description
System.Collections.Generic.IEnumerable<Aurigma.GraphicsMill.PipelineElement>

GetDrawingFillColor(IImageParams)

Declaration
protected override Color GetDrawingFillColor(IImageParams destImageParams)
Parameters
Type Name Description
Aurigma.GraphicsMill.IImageParams destImageParams
Returns
Type Description
Aurigma.GraphicsMill.Color
Overrides
ShapeItemHandler.GetDrawingFillColor(IImageParams)

GetImageCombiner(IImageParams, IColorManagement, Single, IEnumerable<IDisposable>, ScaleAlpha, PointF, Boolean)

Declaration
protected override Transform GetImageCombiner(IImageParams destImageParams, IColorManagement colorManagement, float scale, IEnumerable<IDisposable> deps, ScaleAlpha alpha, PointF offset, bool isPreview)
Parameters
Type Name Description
Aurigma.GraphicsMill.IImageParams destImageParams
IColorManagement colorManagement
System.Single scale
System.Collections.Generic.IEnumerable<System.IDisposable> deps
Aurigma.GraphicsMill.Transforms.ScaleAlpha alpha
PointF offset
System.Boolean isPreview
Returns
Type Description
Aurigma.GraphicsMill.Transforms.Transform
Overrides
ContentItemHandler.GetImageCombiner(IImageParams, IColorManagement, Single, IEnumerable<IDisposable>, ScaleAlpha, PointF, Boolean)

GetItemHandlerData()

Declaration
public override ItemHandlerData GetItemHandlerData()
Returns
Type Description
ItemHandlerData
Overrides
ShapeItemHandler.GetItemHandlerData()

GetItemHandlerDataType()

Declaration
public override string GetItemHandlerDataType()
Returns
Type Description
System.String
Overrides
ShapeItemHandler.GetItemHandlerDataType()

GetOverlayEffect(OverlayEffect, IImageParams, Pipeline, IColorManagement, IConfiguration)

Declaration
public static IEnumerable<PipelineElement> GetOverlayEffect(OverlayEffect overlayEffect, IImageParams source, Pipeline currentPipeline, IColorManagement colorManagement, IConfiguration conf)
Parameters
Type Name Description
OverlayEffect overlayEffect
Aurigma.GraphicsMill.IImageParams source
Aurigma.GraphicsMill.Pipeline currentPipeline
IColorManagement colorManagement
IConfiguration conf
Returns
Type Description
System.Collections.Generic.IEnumerable<Aurigma.GraphicsMill.PipelineElement>

NeedRasterizeVectorContent()

Declaration
protected override bool NeedRasterizeVectorContent()
Returns
Type Description
System.Boolean
Overrides
ContentItemHandler.NeedRasterizeVectorContent()

SetHeight(Single, Boolean)

Declaration
public void SetHeight(float height, bool calculateWidth = true)
Parameters
Type Name Description
System.Single height
System.Boolean calculateWidth

SetWidth(Single, Boolean)

Declaration
public void SetWidth(float width, bool calculateHeight = true)
Parameters
Type Name Description
System.Single width
System.Boolean calculateHeight

UpdateImageItemRectangle(IItemHandlerFactory, IImageLoader, ContentItem, Boolean, PlaceholderItem.ResizeMode, PlaceholderItem)

Declaration
public static void UpdateImageItemRectangle(IItemHandlerFactory itemHandlerFactory, IImageLoader imageLoader, ContentItem contentItem, bool keepLocation, PlaceholderItem.ResizeMode resizeMode, PlaceholderItem parentPlaceholder)
Parameters
Type Name Description
IItemHandlerFactory itemHandlerFactory
IImageLoader imageLoader
ContentItem contentItem
System.Boolean keepLocation
PlaceholderItem.ResizeMode resizeMode
PlaceholderItem parentPlaceholder

UpdateRectangle(Boolean, PlaceholderItem.ResizeMode, PlaceholderItem, Nullable<Single>, Nullable<Single>, Nullable<Single>, Nullable<Single>)

Declaration
public override void UpdateRectangle(bool keepLocation, PlaceholderItem.ResizeMode resizeMode, PlaceholderItem parentPlaceholder, float? sourceWidth = default(float? ), float? sourceHeight = default(float? ), float? dpiX = default(float? ), float? dpiY = default(float? ))
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
Overrides
ContentItemHandler.UpdateRectangle(Boolean, PlaceholderItem.ResizeMode, PlaceholderItem, Nullable<Single>, Nullable<Single>, Nullable<Single>, Nullable<Single>)

VectorContentSupported(IConfiguration, FileFormat, IExternalConverter)

Declaration
public static bool VectorContentSupported(IConfiguration configuration, FileFormat fileFormat, IExternalConverter externalConverter = null)
Parameters
Type Name Description
IConfiguration configuration
Aurigma.GraphicsMill.Codecs.FileFormat fileFormat
IExternalConverter externalConverter
Returns
Type Description
System.Boolean

Implements

System.ICloneable
System.IDisposable
Back to top Copyright © 2001–2022 Aurigma, Inc. All rights reserved.
Loading...