Class ImageLoader
Inheritance
System.Object
ImageLoader
Inherited Members
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 class ImageLoader : IImageLoader
Constructors
ImageLoader(IConfiguration, IFileCache, IRemoteImageLoader, ISourceImageParamsReader, IFileCacheImageParamsReader, IPublicImagesProvider, IUserImagesProvider, ISessionContext)
Declaration
public ImageLoader(IConfiguration configuration, IFileCache fileCache, IRemoteImageLoader remoteImageLoader, ISourceImageParamsReader imageParamsReader, IFileCacheImageParamsReader fileCacheImageParamsReader, IPublicImagesProvider publicImagesProvider, IUserImagesProvider userImagesProvider, ISessionContext sessionContext = null)
Parameters
Methods
CacheImageSource(ImageItem.ImageSource)
Declaration
public string CacheImageSource(ImageItem.ImageSource imageSource)
Parameters
Returns
| Type |
Description |
| System.String |
|
Declaration
public ImageItem.ImageSource CreateImageSource(Bitmap bitmap, FileFormat fileFormat)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.Bitmap |
bitmap |
|
| FileFormat |
fileFormat |
|
Returns
CreateImageSource(Stream, Int32)
Declaration
public ImageItem.ImageSource CreateImageSource(Stream inputStream, int pageIndex = 0)
Parameters
| Type |
Name |
Description |
| System.IO.Stream |
inputStream |
|
| System.Int32 |
pageIndex |
|
Returns
GetExtendedImageSource(ImageItem.ImageSource)
Declaration
public ImageLoader.ExtendedImageSource GetExtendedImageSource(ImageItem.ImageSource imageSource)
Parameters
Returns
GetExtendedImageSourceAsync(ImageItem.ImageSource)
Declaration
public Task<ImageLoader.ExtendedImageSource> GetExtendedImageSourceAsync(ImageItem.ImageSource imageSource)
Parameters
Returns
Declaration
public 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
public 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
public 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
public 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
public string LoadImage(ImageItem.ImageSource source)
Parameters
Returns
| Type |
Description |
| System.String |
|
Declaration
public 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
public 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
public 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
public 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
public 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
public 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 |
|
Implements