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.IsImageAvailable()
ContentItemHandler.IsDownscaleRequired(Rectangle, IImageParams)
ContentItemHandler.ExtendPipeline(Pipeline, IImageParams, IRenderingColorSettings, IColorProfilesProvider, Single, IEnumerable<IDisposable>, PointF, Boolean, Boolean)
ContentItemHandler.AddVectorImageToPipeline(Pipeline, Stream, Single, Size, Boolean, Boolean, IList<IDisposable>)
ContentItemHandler.ContentType
ContentItemHandler.MaskOpacity
RectangleItemHandler.GetDrawingPath(Single)
RectangleItemHandler.Bounds
ShapeItemHandler.ItemOnPropertyChanged(Object, PropertyChangedEventArgs)
ShapeItemHandler.GetBorderColor(IColorProfilesProvider)
ShapeItemHandler.GetAltBorderColor(IColorProfilesProvider)
ShapeItemHandler.GetFillColor(IColorProfilesProvider)
ShapeItemHandler.GetTransformedPath()
ShapeItemHandler.UpdateControlPoints()
ShapeItemHandler.GetBorderWidth(Single)
ShapeItemHandler.GetShapeDrawer(IRenderingColorSettings, PixelFormat, Single, PointF, IColorProfilesProvider)
ShapeItemHandler.GetPath()
ShapeItemHandler.FillShape(Graphics, IRenderingColorSettings, PixelFormat, IColorProfilesProvider, Boolean, Boolean, Boolean)
ShapeItemHandler.StrokeShape(Graphics, IRenderingColorSettings, PixelFormat, IColorProfilesProvider, Boolean, Boolean, Boolean)
ShapeItemHandler.DrawShape(RenderingContext, Graphics, IImageParams, DrawItemParams, IRenderingColorSettings, IColorProfilesProvider, Boolean, Boolean, Boolean, Boolean, Boolean)
ShapeItemHandler.Path
ShapeItemHandler.Dash
ShapeItemHandler.BorderWidth
ShapeItemHandler.FixedBorderWidth
BaseRectangleItemHandler.MinDimension
BaseRectangleItemHandler.GetTransform(RectangleF, RotatedRectangleF)
BaseRectangleItemHandler.DrawClippingPath(Graphics, Action)
BaseRectangleItemHandler.GetClippingPath(Single, Boolean)
BaseRectangleItemHandler.GetTransformedVectorMask(Transform, PointF, Boolean)
BaseRectangleItemHandler.GetActualDash(Single[], Boolean, Single)
BaseRectangleItemHandler.Rectangle
BaseRectangleItemHandler.Angle
BaseRectangleItemHandler.Height
BaseRectangleItemHandler.Width
BaseRectangleItemHandler.Location
BaseRectangleItemHandler.Opacity
BaseRectangleItemHandler.TextWrappingMode
ItemHandler._fileCache
ItemHandler._configuration
ItemHandler._ccLogger
ItemHandler._logger
ItemHandler._colorManagement
ItemHandler._gmColorConverter
ItemHandler.Draw(RenderingContext, Bitmap, IRenderingColorSettings, IColorProfilesProvider, Boolean, Boolean, Boolean)
ItemHandler.Draw(RenderingContext, Bitmap, DrawItemParams, IRenderingColorSettings, IColorProfilesProvider, Boolean, Boolean, Boolean)
ItemHandler.ItemOnPermissionsChanged(Object, EventArgs)
ItemHandler.Clone()
ItemHandler.BeginUpdate()
ItemHandler.EndUpdate()
ItemHandler.Dispose()
ItemHandler.OnTransformChanged(Object, EventArgs)
ItemHandler.OnChanged()
ItemHandler.GetDestinationColor(Color, IColorProfilesProvider, IRenderingColorSettings, Nullable<PixelFormat>, Single, Boolean, Boolean)
ItemHandler.Dispose(Boolean)
ItemHandler.IsEmpty
ItemHandler.ControlPoints
ItemHandler.UniqueId
ItemHandler.Transform
ItemHandler.Tag
ItemHandler.Layer
ItemHandler.IsUpdating
ItemHandler.Index
ItemHandler.Canvas
ItemHandler.Name
ItemHandler.BlendMode
ItemHandler.Permissions
ItemHandler.Data
ItemHandler.Visible
ItemHandler.Locked
ItemHandler.SourceColorProfilesOrDefault
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

Constructors

ImageItemHandler(IConfiguration, IFileCache, IColorManagement, ILogger, IImageLoader, IItemHandlerFactory, IFontService, ISvgReaderFactory, IGmColorConverter, IPublicImagesProvider, IUserImagesProvider, IRemoteImageLoader, ISessionContext, ImageItem)

Declaration
public ImageItemHandler(IConfiguration configuration, IFileCache fileCache, IColorManagement colorManagement, ILogger ccLogger, IImageLoader imageLoader, IItemHandlerFactory itemHandlerFactory, IFontService fontService, ISvgReaderFactory svgReaderFactory, IGmColorConverter gmColorConverter, IPublicImagesProvider publicImagesProvider, IUserImagesProvider userImagesProvider, IRemoteImageLoader remoteImageLoader, ISessionContext sessionContext, ImageItem item)
Parameters
Type Name Description
IConfiguration configuration
IFileCache fileCache
IColorManagement colorManagement
ILogger ccLogger
IImageLoader imageLoader
IItemHandlerFactory itemHandlerFactory
IFontService fontService
ISvgReaderFactory svgReaderFactory
IGmColorConverter gmColorConverter
IPublicImagesProvider publicImagesProvider
IUserImagesProvider userImagesProvider
IRemoteImageLoader remoteImageLoader
ISessionContext sessionContext
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

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

PageIndex

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

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, PixelFormat, IRenderingColorSettings, IColorProfilesProvider, IList<IDisposable>)

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

AddOverlayEffectToPipeline(IImageParams, Pipeline, IRenderingColorSettings, PixelFormat, IColorProfilesProvider)

Declaration
protected override void AddOverlayEffectToPipeline(IImageParams reader, Pipeline pipeline, IRenderingColorSettings colorSettings, PixelFormat destinationPixelFormat, IColorProfilesProvider profilesProvider)
Parameters
Type Name Description
Aurigma.GraphicsMill.IImageParams reader
Aurigma.GraphicsMill.Pipeline pipeline
IRenderingColorSettings colorSettings
PixelFormat destinationPixelFormat
IColorProfilesProvider profilesProvider
Overrides
ContentItemHandler.AddOverlayEffectToPipeline(IImageParams, Pipeline, IRenderingColorSettings, PixelFormat, IColorProfilesProvider)

DrawContent(RenderingContext, Graphics, IImageParams, DrawItemParams, IRenderingColorSettings, IColorProfilesProvider, Boolean, Nullable<CompressionType>, Boolean, Boolean, Boolean, ImageEffect)

Declaration
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
Type Name Description
RenderingContext renderingContext
Aurigma.GraphicsMill.AdvancedDrawing.Graphics graphics
Aurigma.GraphicsMill.IImageParams destImageParams
DrawItemParams drawItemParams
IRenderingColorSettings colorSettings
IColorProfilesProvider profilesProvider
System.Boolean rasterizeVectorLayers
System.Nullable<CompressionType> pdfCompression
System.Boolean isPreview
System.Boolean isSingleColorTargetContainer
System.Boolean isPdfRenderDeviceProfileEnabled
ImageEffect effect
Overrides
ContentItemHandler.DrawContent(RenderingContext, Graphics, IImageParams, DrawItemParams, IRenderingColorSettings, IColorProfilesProvider, Boolean, Nullable<CompressionType>, Boolean, Boolean, Boolean, ImageEffect)

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(PixelFormat, IColorProfilesProvider)

Declaration
protected override Color GetDrawingFillColor(PixelFormat destinationPixelFormat, IColorProfilesProvider profilesProvider)
Parameters
Type Name Description
PixelFormat destinationPixelFormat
IColorProfilesProvider profilesProvider
Returns
Type Description
Aurigma.GraphicsMill.Color
Overrides
ShapeItemHandler.GetDrawingFillColor(PixelFormat, IColorProfilesProvider)

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

Declaration
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
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
Overrides
ContentItemHandler.GetImageCombiner(IImageParams, IRenderingColorSettings, IColorProfilesProvider, Single, IEnumerable<IDisposable>, ScaleAlpha, PointF, Boolean, Boolean)

GetImageStreamAsync(Single, Boolean, IColorProfilesProvider, IRenderingColorSettings)

Declaration
protected override Task<Stream> GetImageStreamAsync(float dpi, bool isPreview, IColorProfilesProvider profilesProvider, IRenderingColorSettings colorSettings)
Parameters
Type Name Description
System.Single dpi
System.Boolean isPreview
IColorProfilesProvider profilesProvider
IRenderingColorSettings colorSettings
Returns
Type Description
System.Threading.Tasks.Task<System.IO.Stream>
Overrides
ContentItemHandler.GetImageStreamAsync(Single, Boolean, IColorProfilesProvider, IRenderingColorSettings)

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()

GetObjectId()

Declaration
protected override string GetObjectId()
Returns
Type Description
System.String
Overrides
ContentItemHandler.GetObjectId()

GetOverlayEffect(OverlayEffect, IImageParams, Pipeline, IColorManagement, IRenderingColorSettings, IColorProfilesProvider, IConfiguration, IGmColorConverter)

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

IsImageAvailableAsync()

Declaration
protected override Task<bool> IsImageAvailableAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>
Overrides
ContentItemHandler.IsImageAvailableAsync()

IsUpscaleRequired(Boolean, IImageParams, Single, Single)

Declaration
protected override 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
Overrides
ContentItemHandler.IsUpscaleRequired(Boolean, IImageParams, Single, Single)

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 = 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
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
FileFormat fileFormat
IExternalConverter externalConverter
Returns
Type Description
System.Boolean

Implements

System.ICloneable
System.IDisposable
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