Thumbnail Class |
Namespace: Atalasoft.Imaging.ImageProcessing
The Thumbnail type exposes the following members.
| Name | Description | |
|---|---|---|
| Thumbnail | Constructs a new Thumbnail object with default properties. | |
| Thumbnail(Size) | Constructs a new Thumbnail object with the provided size. |
| Name | Description | |
|---|---|---|
| AllowEnlarge |
Gets or sets a value indicating whether [allow enlarge].
| |
| Size | Gets or sets the maximum X and Y dimensions of the thumbnail to be created. | |
| ThrowOnZeroDimensions | Gets or sets a value that will thrown an exception if the resized image ends up with zero dimensions.
|
| Name | Description | |
|---|---|---|
| Create(AtalaImage) | Creates a new thumbnail image from the supplied image. | |
| Create(Stream, Int32) | Creates a new thumbnail image from the supplied stream and frame index. | |
| Create(String, Int32) | Creates a new thumbnail image from the supplied file and frame index. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
This class uses optimized image decoding and scaling to create a high quality thumbnail from a source image. It will used scaled loading when the source file is a JPEG, utilize scale to gray resampling when the source image is 1-bit with a document imaging license, and use area average otherwise.
This class can be conveniently used to generate thumbnail preview images.
note: when using DotImage Photo or Photo Pro, making a thumbnail out of a 1-bit image will take much more memory and be less efficient as it will convert to grayscale first, then resample the image.