←Select platform

Points Property

Summary
Gets or sets an array that contains the coordinate points of the contour for the region.
Syntax
C#
C++/CLI
Python
public LeadPoint[] Points { get; } 
public: 
property array<LeadPoint>^ Points { 
   array<LeadPoint>^ get(); 
} 

Property Value

An array that that contains the coordinate points of the contour for the region. A memory buffer for this array is allocated by the command.

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.