Region Color Displayed = (color of pixel in region) XOR (crRgnColor)
public static void FillRegion( RasterImage image, IntPtr hdc, RasterRegionXForm xform, RasterColor color )
'Declaration Public Overloads Shared Sub FillRegion( _ ByVal image As RasterImage, _ ByVal hdc As IntPtr, _ ByVal xform As RasterRegionXForm, _ ByVal color As RasterColor _ )
'Usage Dim image As RasterImage Dim hdc As IntPtr Dim xform As RasterRegionXForm Dim color As RasterColor RasterImagePainter.FillRegion(image, hdc, xform, color)
public static void FillRegion( RasterImage image, IntPtr hdc, RasterRegionXForm xform, RasterColor color )
function Leadtools.Drawing.RasterImagePainter.FillRegion(RasterImage,IntPtr,RasterRegionXForm,RasterColor)( image , hdc , xform , color )
public: static void FillRegion( RasterImage^ image, IntPtr hdc, RasterRegionXForm^ xform, RasterColor color )
Region Color Displayed = (color of pixel in region) XOR (crRgnColor)
This method is particularly useful when displaying regions with black and white images. All black pixels in a region are displayed with color specified by color. and all white pixels are displayed ~(color). For example, suppose that color is light green (BGR 0x80FF40). All black pixels in the region are displayed as color. All white pixels in the region are displayed as 0xFFFFFF XOR 0x80FF40 = 0x7F00BF, which is purple.
For more information refer to RasterImage and GDI/GDI+.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2