Documentation / Marblecore Imaging / Methods / Thumbnail
Thumbnail method
Creates a thumbnail of the image with an optional thumbnail effect.
Syntax
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.
Parameters
Parameter | Type | Required | Description |
nWidth | Number | Yes | Specifies the maximum width of the thumbnail (or 0 to ignore this parameter). |
nHeight | Number | No | Optional parameter which specifies the maximum height of the thumbnail (or 0 to ignore this parameter). |
nEffect | Thumbnail (Enumeration) | No | Optional parameter containing the thumbnail effect to use. |
nResample | Resample (Enumeration) | No | Optional parameter containing the resample algorithm. |
nFactor | Number | No | Optional parameter containing the effect factor. |
Example
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
2 MarblecoreImaging.LoadFromFile("example-thumbnail-before.jpg");
3
4
5 MarblecoreImaging.Thumbnail(300, 200, "Skew3D");
6
7
8 MarblecoreImaging.SaveToFile("example-thumbnail-after.jpg");
Category
Transformations
See also
Clear |
Crop |
Expand |
FlipHorizontal |
FlipVertical |
Opacity |
Resize |
Rotate |
RotateLeft |
RotateRight |
RoundEdges |
Shear |
Shrink |
Skew |
Straighten