←Select platform

FrameRegion(IntPtr,Graphics,int) Method

Summary
Displays an outline of the Windows HRGN in the given System.Drawing.Graphics object.
Syntax
C#
C++/CLI
Python
public static void FrameRegion( 
   IntPtr hrgn, 
   Graphics graphics, 
   int frameIndex 
) 
public: 
static void FrameRegion(  
   IntPtr hrgn, 
   Graphics^ graphics, 
   int frameIndex 
)  
def FrameRegion(self,hrgn,graphics,frameIndex): 

Parameters

hrgn
Windows HRGN object.

graphics
System.Drawing.Graphics object where the frame is to appear.

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 non-contiguous shapes, each shape is outlined. The outline, itself, is inside the region.

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+ and Creating a Region and Working with the Existing Region.

Frame Add Function - Before

Frame Add Function - Before

Frame Add Function - After

Frame Add Function - After

View additional platform support for this Frame Add function.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Drawing Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.