Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
FrameRegion(Graphics,RasterRegionXForm,Int32) Method
See Also 
Leadtools Namespace > RasterImage Class > FrameRegion Method : FrameRegion(Graphics,RasterRegionXForm,Int32) Method




graphics
Graphics object where the image is displayed and where the frame is to appear.
xform
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 Graphics object.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub FrameRegion( _
   ByVal graphics As Graphics, _
   ByVal xform As RasterRegionXForm, _
   ByVal frameIndex As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim graphics As Graphics
Dim xform As RasterRegionXForm
Dim frameIndex As Integer
 
instance.FrameRegion(graphics, xform, frameIndex)
C# 
public void FrameRegion( 
   Graphics graphics,
   RasterRegionXForm xform,
   int frameIndex
)
Managed Extensions for C++ 
public: void FrameRegion( 
   Graphics graphics,
   RasterRegionXForm* xform,
   int frameIndex
) 
C++/CLI 
public:
void FrameRegion( 
   Graphics graphics,
   RasterRegionXForm^ xform,
   int frameIndex
) 

Parameters

graphics
Graphics object where the image is displayed and where the frame is to appear.
xform
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.

Remarks

If the region includes noncontiguous shapes, each shape is outlined. The outline, itself, is inside the region.

Before calling this method, create a 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 Creating a Region and Working with the Existing Region.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also