Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
reference:plugins:plugin_sdk:utility_functions:doloadimage

DOLoadImage(
     DOLoadImageData*:pData
)
→ BOOL

Arguments

pData

[in,out] Pointer to a DOLoadImageData structure.

Description

The DOLoadImage function loads an image from a file, a stream or a block of memory.

The DOLoadImageData structure has the following fields:

  • UINT cbSize
    Set this to the size of the structure.
  • LPSTR pszFileA / LPWSTR pszFileW / LPSTREAM pStm / LPVOID pData
    The source of the image (a union - the member used depends on dwFlags).
  • enum DOLoadImageFlags dwFlags
    Flags. Valid flags are:
DOLIF_FromFileALoad from the file specified by pszFileA
DOLIF_FromFileWLoad from the file specified by pszFileW
DOLIF_FromStreamLoad from the stream specified by pStm
DOLIF_FromDataLoad from the memory specified by pData
DOLIF_NoPlugins
  • SIZE_T dwDataSize
  • HWND hWnd
  • HANDLE hAbortEvent
  • BITMAPINFOHEADER bmh
  • HBITMAP hBmpImage
  • LPVOID pBits