LBitmap::StartFastMagicWandEngine

Summary

Starts the fast magic wand engine.

Syntax

#include "ltwrappr.h"

L_INT LBitmap::StartFastMagicWandEngine(pMagicWnd, uFlags = 0)

Parameters

MAGICWANDHANDLE * pMagicWnd

Pointer to a MAGICWANDHANDLE. This handle is needed to be used in the fast magic wand operation.

L_UINT32 uFlags

Reserved for future use. Must be 0.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

LBitmap::StartFastMagicWandEngine must be called before calling LBitmap::FastMagicWand and LBitmap::EndFastMagicWandEngine.

When the handle to the MAGICWANDHANDLE is no longer needed, it should be freed by calling LBitmap::EndFastMagicWandEngine. For every call to LBitmap::StartFastMagicWandEngine there must be a call to LBitmap::EndFastMagicWandEngine.

This function supports 1, 8, and 24-bit images.

This function does not support 32-bit grayscale images. It returns the error code ERROR_GRAY32_UNSUPPORTED if a 32-bit grayscale image is passed to this function.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

For an example, refer to LBitmap::FastMagicWand.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.