LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly)
LEAD Technologies, Inc

FrameRegion(RasterImage,IntPtr,RasterRegionXForm,Int32) Method






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.
Displays an outline of the image region in the given Windows device context handle.
Syntax
public static void FrameRegion( 
   RasterImage image,
   IntPtr hdc,
   RasterRegionXForm xform,
   int frameIndex
)
'Declaration
 
Public Overloads Shared Sub FrameRegion( _
   ByVal image As RasterImage, _
   ByVal hdc As IntPtr, _
   ByVal xform As RasterRegionXForm, _
   ByVal frameIndex As Integer _
) 
'Usage
 
Dim image As RasterImage
Dim hdc As IntPtr
Dim xform As RasterRegionXForm
Dim frameIndex As Integer
 
RasterImagePainter.FrameRegion(image, hdc, xform, frameIndex)
public static void FrameRegion( 
   RasterImage image,
   IntPtr hdc,
   RasterRegionXForm xform,
   int frameIndex
)
 function Leadtools.Drawing.RasterImagePainter.FrameRegion(RasterImage,IntPtr,RasterRegionXForm,Int32)( 
   image ,
   hdc ,
   xform ,
   frameIndex 
)
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.
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.

Example
For an example, refer to FrameRegion(RasterImage,Graphics,RasterRegionXForm,Int32).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterImagePainter Class
RasterImagePainter Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.