Highlights a region by displaying a filled, color representation of the region in the given System.Drawing.Graphics object.
public static void FillRegion(
RasterImage image,
Graphics graphics,
RasterRegionXForm xform,
RasterColor color
)
Public Overloads Shared Sub FillRegion( _
ByVal image As RasterImage, _
ByVal graphics As Graphics, _
ByVal xform As RasterRegionXForm, _
ByVal color As RasterColor _
)
public:
static void FillRegion(
RasterImage^ image,
Graphics^ graphics,
RasterRegionXForm^ xform,
RasterColor color
)
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)
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+.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.