dos_extractpreview - dalefugier/DOSLib GitHub Wiki

Extracts the thumbnail image from the active document to a bitmap file.

Syntax

(dos_extractpreview filename)

Parameters

filename

The name of the bitmap file to create. The allowable file types are as follows:

Value Description
BMP Windows Bitmap
JPG JFIF Compliant
GIF Compuserve Graphics Interchange
TIF Tagged Image File Format
PNG Portable Network Graphics

Returns

A string identifying the created bitmap file if successful.

nil on error.

Example

Command: (dos_extractpreview "C:\\test.bmp")
"C:\\test.bmp"