ImageEn, unit imageenview

TImageEnView.SetSelectedPixelsColor

TImageEnView.SetSelectedPixelsColor


Declaration

procedure SetSelectedPixelsColor(color: TRGB);


Description

Sets selected pixels to the specified color.

Note:
 PixelFormat must be ie24RGB
 This is the same as using Fill, except that partially selected pixels will become fully red


Example

// Select all pixels of a similar color to 0, 0, then set all selected pixels as White
ImageEnView.SelectMagicWand(0, 0, iespReplace);
ImageEnView.SetSelectedPixelsColor( CreateRGB(255, 255, 255) );


See Also

 CreateRGB
 TRGB2TColor
 TColor2TRGB