Class ImageItem.ImageSource
Namespace: Aurigma.DesignAtoms.Model.Items
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
public class ImageSource
Inheritance: System.Object -> ImageItem.ImageSource
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Constructors
ImageSource
public ImageSource()
ImageSource
public ImageSource(string storageId, int pageIndex, SourceOrigin origin = null)
ImageSource
public ImageSource(string storageId, int width, int height, bool isVector, int pageIndex, SourceOrigin origin = null)
ImageSource
public ImageSource(Uri uri, bool? actualSize = null, bool? saveAspectRatio = null, SourceOrigin origin = null)
Properties
Origin
public SourceOrigin Origin { get; }
Path
public string Path { get; set; }
FileSource
public FileInfo FileSource { get; set; }
StorageId
public string StorageId { get; set; }
PageIndex
public int PageIndex { get; set; }
Url
public Uri Url { get; set; }
ActualSize
public bool ActualSize { get; }
SaveAspectRatio
public bool SaveAspectRatio { get; set; }
Methods
SetStorageId
public void SetStorageId(string storageId, SourceOrigin origin = null)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | storageId | |
| Aurigma.DesignAtoms.Model.Items.SourceOrigin | origin |
GetBytes
public virtual byte[] GetBytes()
Returns
System.Byte[]
Equals
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
System.Object | obj |
Returns
System.Boolean
Overrides
System.Object.Equals(System.Object)
Equals
protected bool Equals(ImageItem.ImageSource other)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Items.ImageItem.ImageSource | other |
Returns
System.Boolean
Clone
public ImageItem.ImageSource Clone()
Returns
Aurigma.DesignAtoms.Model.Items.ImageItem.ImageSource
Fields
Type
public ImageItem.ImageSource.SourceType Type