Click or drag to resize

Thumbnail Class

Summary description for Thumbnail.
Creates a high speed and high quality thumbnail image from a source file.
Inheritance Hierarchy
SystemObject
  Atalasoft.Imaging.ImageProcessingThumbnail

Namespace:  Atalasoft.Imaging.ImageProcessing
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public class Thumbnail

The Thumbnail type exposes the following members.

Constructors
  NameDescription
Public methodThumbnail
Constructs a new Thumbnail object with default properties.
Public methodThumbnail(Size)
Constructs a new Thumbnail object with the provided size.
Top
Properties
  NameDescription
Public propertyAllowEnlarge
Gets or sets a value indicating whether [allow enlarge].
Public propertySize
Gets or sets the maximum X and Y dimensions of the thumbnail to be created.
Public propertyThrowOnZeroDimensions
Gets or sets a value that will thrown an exception if the resized image ends up with zero dimensions.
Top
Methods
  NameDescription
Public methodCreate(AtalaImage)
Creates a new thumbnail image from the supplied image.
Public methodCreate(Stream, Int32)
Creates a new thumbnail image from the supplied stream and frame index.
Public methodCreate(String, Int32)
Creates a new thumbnail image from the supplied file and frame index.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

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.

See Also