Displays an outline of the image region in the given Windows device context handle.
public static void FrameRegion(
Public Overloads Shared Sub FrameRegion( _
ByVal image As Leadtools.RasterImage, _
ByVal hdc As IntPtr, _
ByVal xform As Leadtools.RasterRegionXForm, _
ByVal frameIndex As Integer _
static void FrameRegion(
The source image.
Windows device context handle where the image is displayed and where the frame is to appear.
Leadtools.RasterRegionXForm object that LEADTOOLS uses to translate between display coordinates and image coordinates.
Zero-index of the frame to display. Possible values are from 0 to MaxRegionFrameIndex. You can animate the region frame by cycling between these values.
If the region includes noncontiguous shapes, each shape is outlined. The outline, itself, is inside the region.
Before calling this method, create a Leadtools.RasterRegionXForm object and set its values, which LEADTOOLS uses to translate between device context coordinates and image coordinates.
This method is designed to produce an animated frame, which you can implement by calling the method with a timer event that cycles through the possible frame types.
For more information refer to RasterImage and GDI/GDI+.
For an example, refer to FrameRegion(rasterimage,graphics,rasterregionxform,int32).