←Select platform

FillRegion(RasterImage,IntPtr,RasterRegionXForm,RasterColor) Method

Summary

Highlights a region by displaying a filled, color representation of the region in the given Windows device context handle.

Syntax

C#
VB
C++
Public Overloads Shared Sub FillRegion( _ 
   ByVal image As Leadtools.RasterImage, _ 
   ByVal hdc As IntPtr, _ 
   ByVal xform As Leadtools.RasterRegionXForm, _ 
   ByVal color As Leadtools.RasterColor _ 
) 

Parameters

image
The source image.

hdc
Windows device context handle 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)

Remarks

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+.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Drawing Assembly
Click or drag to resize