Back to Website
Show / Hide Table of Contents

Interface IImageLoader

Namespace: Aurigma.DesignAtoms.Canvas
Assembly: Aurigma.DesignAtoms.dll
Syntax
public interface IImageLoader

Methods

CacheImageSource(ImageItem.ImageSource)

Declaration
string CacheImageSource(ImageItem.ImageSource imageSource)
Parameters
Type Name Description
ImageItem.ImageSource imageSource
Returns
Type Description
System.String

CreateImageSource(Bitmap, FileFormat)

Declaration
ImageItem.ImageSource CreateImageSource(Bitmap bitmap, FileFormat fileFormat)
Parameters
Type Name Description
Aurigma.GraphicsMill.Bitmap bitmap
FileFormat fileFormat
Returns
Type Description
ImageItem.ImageSource

CreateImageSource(Stream, Int32)

Declaration
ImageItem.ImageSource CreateImageSource(Stream inputStream, int pageIndex)
Parameters
Type Name Description
System.IO.Stream inputStream
System.Int32 pageIndex
Returns
Type Description
ImageItem.ImageSource

GetExtendedImageSource(ImageItem.ImageSource)

Declaration
ImageLoader.ExtendedImageSource GetExtendedImageSource(ImageItem.ImageSource imageSource)
Parameters
Type Name Description
ImageItem.ImageSource imageSource
Returns
Type Description
ImageLoader.ExtendedImageSource

GetExtendedImageSourceAsync(ImageItem.ImageSource)

Declaration
Task<ImageLoader.ExtendedImageSource> GetExtendedImageSourceAsync(ImageItem.ImageSource imageSource)
Parameters
Type Name Description
ImageItem.ImageSource imageSource
Returns
Type Description
System.Threading.Tasks.Task<ImageLoader.ExtendedImageSource>

LoadImage(ImageItem, PipelineElement, FileFormat, Boolean, Boolean, Int32, Boolean)

Declaration
void LoadImage(ImageItem imageItem, PipelineElement reader, FileFormat fileFormat, bool actualSize = false, bool preserveAspectRatio = false, int pageIndex = 0, bool takeIntoAccountImageDpi = false)
Parameters
Type Name Description
ImageItem imageItem
Aurigma.GraphicsMill.PipelineElement reader
FileFormat fileFormat
System.Boolean actualSize
System.Boolean preserveAspectRatio
System.Int32 pageIndex
System.Boolean takeIntoAccountImageDpi

LoadImage(ImageItem, FileInfo, Boolean, Boolean, Boolean, Int32, Boolean)

Declaration
void LoadImage(ImageItem imageItem, FileInfo sourceImage, bool actualSize, bool preserveAspectRatio, bool allowImageFileDelete = false, int pageIndex = 0, bool takeIntoAccountImageDpi = false)
Parameters
Type Name Description
ImageItem imageItem
System.IO.FileInfo sourceImage
System.Boolean actualSize
System.Boolean preserveAspectRatio
System.Boolean allowImageFileDelete
System.Int32 pageIndex
System.Boolean takeIntoAccountImageDpi

LoadImage(ImageItem, FileInfo, Boolean, Int32)

Declaration
void LoadImage(ImageItem imageItem, FileInfo imageFile, bool actualSize, int pageIndex = 0)
Parameters
Type Name Description
ImageItem imageItem
System.IO.FileInfo imageFile
System.Boolean actualSize
System.Int32 pageIndex

LoadImage(ImageItem, Stream, Boolean, Boolean, Boolean, Int32, String)

Declaration
void LoadImage(ImageItem item, Stream imageStream, bool actualSize, bool preserveAspectRatio, bool takeIntoAccountImageDpi, int pageIndex = 0, string storageId = null)
Parameters
Type Name Description
ImageItem item
System.IO.Stream imageStream
System.Boolean actualSize
System.Boolean preserveAspectRatio
System.Boolean takeIntoAccountImageDpi
System.Int32 pageIndex
System.String storageId

LoadImage(ImageItem.ImageSource)

Declaration
string LoadImage(ImageItem.ImageSource source)
Parameters
Type Name Description
ImageItem.ImageSource source
Returns
Type Description
System.String

LoadImage(PipelineElement, FileFormat, Boolean, Boolean)

Declaration
string LoadImage(PipelineElement reader, FileFormat fileFormat = FileFormat.Tiff, bool actualSize = false, bool preserveAspectRatio = false)
Parameters
Type Name Description
Aurigma.GraphicsMill.PipelineElement reader
FileFormat fileFormat
System.Boolean actualSize
System.Boolean preserveAspectRatio
Returns
Type Description
System.String

LoadImage(FileInfo, Boolean, String)

Declaration
string LoadImage(FileInfo sourceImage, bool allowImageFileDelete = false, string storageId = null)
Parameters
Type Name Description
System.IO.FileInfo sourceImage
System.Boolean allowImageFileDelete
System.String storageId
Returns
Type Description
System.String

SetImageItemHeight(ImageItem, Single, Boolean)

Declaration
void SetImageItemHeight(ImageItem item, float height, bool calculateWidth = true)
Parameters
Type Name Description
ImageItem item
System.Single height
System.Boolean calculateWidth

SetImageItemWidth(ImageItem, Single, Boolean)

Declaration
void SetImageItemWidth(ImageItem item, float width, bool calculateHeight = true)
Parameters
Type Name Description
ImageItem item
System.Single width
System.Boolean calculateHeight

SetItemImage(ImageItem, String, Int32, Boolean, Boolean, Boolean, Single, Single)

Declaration
void SetItemImage(ImageItem item, string storageFileId, int pageIndex, bool actualSize, bool preserveAspectRatio, bool takeIntoAccountImageDpi, float xDpi = 72F, float yDpi = 72F)
Parameters
Type Name Description
ImageItem item
System.String storageFileId
System.Int32 pageIndex
System.Boolean actualSize
System.Boolean preserveAspectRatio
System.Boolean takeIntoAccountImageDpi
System.Single xDpi
System.Single yDpi

Update(ImageItem, Boolean, Boolean, Boolean, Boolean, String, Single, Single)

Declaration
Task Update(ImageItem item, bool needToDownloadImage, bool actualSize, bool preserveAspectRatio, bool takeIntoAccountImageDpi, string sourceUrl = null, float xDpi = 72F, float yDpi = 72F)
Parameters
Type Name Description
ImageItem item
System.Boolean needToDownloadImage
System.Boolean actualSize
System.Boolean preserveAspectRatio
System.Boolean takeIntoAccountImageDpi
System.String sourceUrl
System.Single xDpi
System.Single yDpi
Returns
Type Description
System.Threading.Tasks.Task
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