LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
FrameRegion(RasterImage,IntPtr,RasterRegionXForm,Int32) Method
See Also 



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.
frameIndex
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.
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.
frameIndex
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.
Displays an outline of the image region in the given Windows device context handle.

Syntax

Visual Basic (Declaration) 
Overloads Public Shared Sub FrameRegion( _
   ByVal image As RasterImage, _
   ByVal hdc As IntPtr, _
   ByVal xform As RasterRegionXForm, _
   ByVal frameIndex As Integer _
) 
Visual Basic (Usage)Copy Code
Dim image As RasterImage
Dim hdc As IntPtr
Dim xform As RasterRegionXForm
Dim frameIndex As Integer
 
RasterImagePainter.FrameRegion(image, hdc, xform, frameIndex)
C# 
public static void FrameRegion( 
   RasterImage image,
   IntPtr hdc,
   RasterRegionXForm xform,
   int frameIndex
)
C++/CLI 
public:
static void FrameRegion( 
   RasterImage^ image,
   IntPtr hdc,
   RasterRegionXForm^ xform,
   int frameIndex
) 

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

Example

Remarks

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 more information, refer to Creating a Region and Working with the Existing Region.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also