- image
- The source image.
- graphics
- Graphics object where the image is displayed and where the frame is to appear.
- xform
- Leadtools.RasterRegionXForm object that LEADTOOLS uses to translate between display coordinates and image coordinates.
- color
- The color value to be XORed with colors within a region to determine the new colors for displaying the region. The color corresponding to a particular part of the region is determined as follows:
Region Color Displayed = (color of pixel in region) XOR (crRgnColor)
Visual Basic (Declaration) | |
---|---|
Overloads Public Shared Sub FillRegion( _ ByVal image As RasterImage, _ ByVal graphics As Graphics, _ ByVal xform As RasterRegionXForm, _ ByVal color As RasterColor _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim image As RasterImage Dim graphics As Graphics Dim xform As RasterRegionXForm Dim color As RasterColor RasterImagePainter.FillRegion(image, graphics, xform, color) |
C# | |
---|---|
public static void FillRegion( RasterImage image, Graphics graphics, RasterRegionXForm xform, RasterColor color ) |
C++/CLI | |
---|---|
public: static void FillRegion( RasterImage^ image, Graphics^ graphics, RasterRegionXForm^ xform, RasterColor color ) |
Parameters
- image
- The source image.
- graphics
- Graphics object where the image is displayed and where the frame is to appear.
- xform
- Leadtools.RasterRegionXForm object that LEADTOOLS uses to translate between display coordinates and image coordinates.
- color
- The color value to be XORed with colors within a region to determine the new colors for displaying the region. The color corresponding to a particular part of the region is determined as follows:
Region Color Displayed = (color of pixel in region) XOR (crRgnColor)
For an example, refer to FrameRegion(RasterImage,Graphics,RasterRegionXForm,Int32).
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: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)