The masked edit control uses GDI+ for additional image features not otherwise available:
GDI+ ships with all supported Windows versions (Windows 10 and above), so these features are always available.
SftMask provides four helpers that wrap GDI+ image creation and disposal so the application does not have to call GdiplusStartup or work with Gdiplus::Image directly. Each loader returns a Gdiplus::Image* as an opaque LPVOID that is plugged into a SFT_PICTURE slot of type SFT_PICTURE_GDIPLUS (typically through Sft_SetPictureGDIPlusImage).
| Function | Description |
|---|---|
| LoadGDIPlusImageFromResource | Load a PNG / TIFF / JPEG / GIF / EMF image from an embedded application resource. |
| LoadGDIPlusImageFromFile | Load the same image formats from a file on disk. |
| FreeGDIPlusImageLoadedFromResource | Free a pointer returned by LoadGDIPlusImageFromResource. |
| FreeGDIPlusImageLoadedFromFile | Free a pointer returned by LoadGDIPlusImageFromFile. |
The loader and the matching free routine must always be paired - resource-loaded images go through FreeGDIPlusImageLoadedFromResource, file-loaded images through FreeGDIPlusImageLoadedFromFile.
See Also Error Image | SFTMASK_CONTROL