Skip to main content

Class ResizeOptions

Namespace: Aurigma.DesignAtoms.Canvas
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class ResizeOptions : IResizeOptions

Inheritance: System.Object -> ResizeOptions

Implements

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

Constructors

ResizeOptions

public ResizeOptions(IConfiguration configuration, IStateResourcesRepository stateResourcesRepository, ISourceImageParamsReader imageParamsReader, IRepositoryImageParamsReaderFactory repositoryImageParamsReaderFactory, IFileCacheImageParamsReader cacheImageParamsReader, string sourceImageId, Size size, IColorManagement colorManagement, IRenderingColorSettings colorSettings, bool isSquare = false, bool keepProportions = false, ImageEffect effect = ImageEffect.None, List<BaseImageEffect> effects = null, bool removeColorProfile = false, Color overlayColor = null, BlendMode? overlayBlendMode = null, float? overlayOpacity = null, int pageIndex = 0, bool alphaMask = false, Color colorizeColor = null, string thumbnailId = null, FileFormat? targetFileFormat = null, bool allowUpscale = false, float? rectWidth = null, float? rectHeight = null, Dither? dither = null, float? ditherAmount = null, IFileCache fileCache = null)

ResizeOptions

public ResizeOptions(IConfiguration configuration, ISourceImageParamsReader imageParamsReader, FileInfo sourceImageFile, Size size, string thumbnailId, IColorManagement colorManagement, IRenderingColorSettings colorSettings, bool isSquare = false, bool keepProportions = false, ImageEffect effect = ImageEffect.None, List<BaseImageEffect> effects = null, bool removeColorProfile = false, Color overlayColor = null, BlendMode? overlayBlendMode = null, float? overlayOpacity = null, int pageIndex = 0, bool alphaMask = false, Color colorizeColor = null, float? rectWidth = null, float? rectHeight = null, Dither? dither = null, float? ditherAmount = null)

Properties

ColorSettings

public IRenderingColorSettings ColorSettings { get; }

Size

public Size Size { get; }

FileFormat

public FileFormat FileFormat { get; }

PixelFormat

public PixelFormat PixelFormat { get; }

ResizeMode

public ResizeMode ResizeMode { get; }

Effect

public ImageEffect Effect { get; }

ColorizeColor

public Color ColorizeColor { get; }

Effects

public List<BaseImageEffect> Effects { get; }

ThumbnailId

public string ThumbnailId { get; }

RemoveColorProfile

public bool RemoveColorProfile { get; }

AlphaMask

public bool AlphaMask { get; }

DitheringType

public Dither? DitheringType { get; }

DitheringAmount

public float? DitheringAmount { get; }

OverlayColor

public Color OverlayColor { get; }

OverlayBlendMode

public BlendMode? OverlayBlendMode { get; }

OverlayOpacity

public float? OverlayOpacity { get; }

Dpi

public float Dpi { get; }

PageIndex

public int PageIndex { get; }

RectWidth

public float? RectWidth { get; }

RectHeight

public float? RectHeight { get; }

SourceImageId

public string SourceImageId { get; }

Methods

GetSourceImageReadStream

public Stream GetSourceImageReadStream()
Returns

System.IO.Stream

GetSourceImageFileFormat

public FileFormat GetSourceImageFileFormat()
Returns

Aurigma.DesignAtoms.Model.Configuration.FileFormat

GetSourceImageFilePath

public string GetSourceImageFilePath()
Returns

System.String

GenerateThumbnailId

public string GenerateThumbnailId(IConfiguration conf, string thumbnailId = null)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.Configuration.IConfigurationconf
System.StringthumbnailId
Returns

System.String

Was this page helpful?