Class ThumbnailFormat
A thumbnail format will always result in an image of the media.
Inheritance
Inherited Members
Namespace: ImageVault.Common.Data
Assembly: ImageVault.Common.dll
Syntax
public class ThumbnailFormat : WebMediaFormat, IMediaFormat, IItem<int>, ICloneable, IResizeFormat
Constructors
ThumbnailFormat()
Initializes a new instance of the ThumbnailFormat class.
Declaration
public ThumbnailFormat()
ThumbnailFormat(ThumbnailFormat)
Initializes a new instance of the ThumbnailFormat class.
Declaration
public ThumbnailFormat(ThumbnailFormat thumbnailFormat)
Parameters
Type | Name | Description |
---|---|---|
ThumbnailFormat | thumbnailFormat |
Properties
IsEmpty
Checks if this is an empty format or not
Declaration
public override bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public override MediaFormatBase Clone()
Returns
Type | Description |
---|---|
MediaFormatBase | A new object that is a copy of this instance. |
Overrides
CopyFrom(ThumbnailFormat)
Copies the values from the supplied format to the current instance
Declaration
protected void CopyFrom(ThumbnailFormat format)
Parameters
Type | Name | Description |
---|---|---|
ThumbnailFormat | format | The ImageFormat to copy from. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
Equals(ThumbnailFormat)
Determines whether the specified ThumbnailFormat is equal to the current ThumbnailFormat.
Declaration
public bool Equals(ThumbnailFormat other)
Parameters
Type | Name | Description |
---|---|---|
ThumbnailFormat | other | The ThumbnailFormat to compare with the current ThumbnailFormat. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified ThumbnailFormat is equal to the current ThumbnailFormat; otherwise, false. |
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current System.Object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current System.Object. |