reference:plugins:plugin_sdk:configuration_functions:getthumbnailprefs

GetThumbnailPrefs(
     LPDOPUSTHUMBNAILPREFSDATA:lpTPD
)
→ BOOL

Arguments

lpTPD

[in,out] Pointer to a DOPUSTHUMBNAILPREFSDATA structure

Return value

Returns TRUE if the thumbnail preferences were successfully retrieved, or FALSE on failure.

Description

The GetThumbnailPrefs function lets you retrieve information about the user's current thumbnail Preferences settings.

The DOPUSTHUMBNAILPREFSDATA structure contains the following fields:

  • UINT cbSize
    Before calling this function you must initialize this field to the size of the structure.
  • DWORD dwFlags
    Returns various flags indicating the user's thumbnail settings. Currently defined flags are:
DTHUMBF_GRAYSCALEDisplay JPEG thumbnails as grayscale
DTHUMBF_SHOWICONShow filetype icon in the corner of thumbnails
DTHUMBF_HIDEICONHide filetype icon for unregistered filetypes
DTHUMBF_USESHELLUse shell image extraction
DTHUMBF_HIGHQUALITYHigh-quality scaling
DTHUMBF_FOLDERSDisplay folder thumbnails
DTHUMBF_FOLDERCONTENTSGenerate folder thumbnails from folder contents
DTHUMBF_AUTOROTATEAuto-rotate using EXIF information
  • COLORREF crFillColor
    Specifies the background color for filling thumbnails, or CLR_NONE for transparent.
  • SIZE szThumbSize, szMinThumbSize, szMaxThumbSize
    Specifies the currently configured thumbnail size, and the minimum and maximum sizes supported by Opus.