SetRgnMagicWand method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax short SetRgnMagicWand (float x, float, y, short iTolerance, short iCombineMode);

Overview:  Refer to Creating and Using a Bitmap Region.

Remarks

Sets a region based on the color found at point x, y in the region.

With this method, you can either replace the current region or create a complex region by setting a flag that determines how the added region interacts with the existing region. For possible values, specified in the iCombineMode parameter, refer to Flags for Setting a Region.

See Also

Elements:  SetRgnColor method

Topics:  Raster Images: Creating and Using a Region