←Select platform

RegionContourPointsCommand Constructor(RasterRegionXForm)

Summary
Initializes a new RegionContourPointsCommand class object with explicit parameters.
Syntax
C#
C++/CLI
Python
public: 
RegionContourPointsCommand(  
   RasterRegionXForm^ xForm 
) 
__init__(self,xForm) # Overloaded constructor 

Parameters

xForm
RasterRegionXForm object that contains information used to translate between display coordinates and image coordinates. If you specify null in this parameter, the scalar value defaults to 1, the offsets default to 0, and the view perspective defaults to the image's view perspective.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.Effects; 
 
 
public void RegionContourPointsCommandExample() 
{ 
   // Load an image 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "Master.jpg")); 
 
   // Prepare the command 
   LeadRect rcRect = new LeadRect(image.Width / 3, image.Height / 3, image.Width * 2 / 3, image.Height * 2 / 3); 
   image.AddEllipseToRegion(null, rcRect, RasterRegionCombineMode.Set); 
   RegionContourPointsCommand command = new RegionContourPointsCommand(null); 
   command.Run(image); 
   codecs.Save(image, Path.Combine(LEAD_VARS.ImagesDir, "Result.jpg"), RasterImageFormat.Jpeg, 24); 
 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS23\Resources\Images"; 
} 
Requirements

Target Platforms

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

Leadtools.ImageProcessing.Effects Assembly

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