Marblecore Imaging Library Documentation

Documentation Introduction
Documentation / Marblecore Imaging / Methods / Thumbnail

Thumbnail method

Creates a thumbnail of the image with an optional thumbnail effect.


Boolean Thumbnail(nWidth As Number, nHeight As Number, nEffect As Thumbnail, nResample As Resample, nFactor As Number)

Return value

Returns true if the function succeeded.


nWidthNumberYesSpecifies the maximum width of the thumbnail (or 0 to ignore this parameter).
nHeightNumberNoOptional parameter which specifies the maximum height of the thumbnail (or 0 to ignore this parameter).
nEffectThumbnail (Enumeration)NoOptional parameter containing the thumbnail effect to use.
nResampleResample (Enumeration)NoOptional parameter containing the resample algorithm.
nFactorNumberNoOptional parameter containing the effect factor.


The example below shows the effect of this method and how to use it. You can slide the marker in the before/after picture to see the difference. If you take a look at the example code, assume there is a reference to the Marblecore Imaging object with the name 'MarblecoreImaging'. Transparent parts of the image are displayed using a checkerboard pattern.
1 // Load the specified image in memory
2 MarblecoreImaging.LoadFromFile("example-thumbnail-before.jpg");
4 // Execute the operation
5 MarblecoreImaging.Thumbnail(300, 200, "Skew3D");
7 // Save the modified image to the specified file
8 MarblecoreImaging.SaveToFile("example-thumbnail-after.jpg");



See also

Clear | Crop | Expand | FlipHorizontal | FlipVertical | Opacity | Resize | Rotate | RotateLeft | RotateRight | RoundEdges | Shear | Shrink | Skew | Straighten