←Select platform

LegacyEllipse Property

Summary

Ellipse region compatible with older version of LEADTOOLS (v18 and some old v19 DLLs).

Syntax
C#
VB
C++
public static bool LegacyEllipse { get; set; } 
Public Shared Property LegacyEllipse() As Boolean 
   Get 
   Set 
public:  
   static property bool LegacyEllipse 
   { 
      bool get() 
      void set(bool value) 
   } 

Property Value

Default is set to false.

Remarks

Valid only for AddEllipseToRegion. Not recommended unless you need to preserve backwards compatibility.

Example
C#
VB
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing; 
using LeadtoolsExamples.Common; 
 
public void RasterRegionLegacyEllipseExample() 
{ 
   var img = RasterImage.Create(100, 100, 1, 96, RasterColor.Black); 
   RasterRegion.LegacyEllipse = true; 
   img.AddEllipseToRegion(null, LeadRect.Create(10, 10, 10, 10), RasterRegionCombineMode.Set); 
} 
Imports Leadtools 
Imports Leadtools.Codecs 
Imports Leadtools.ImageProcessing 
 
Public Sub RasterRegionLegacyEllipseExample() 
   Dim img As var = RasterImage.Create(100, 100, 1, 96, RasterColor.Black) 
   RasterRegion.LegacyEllipse = True 
   img.AddEllipseToRegion(Nothing, LeadRect.Create(10, 10, 10, 10), RasterRegionCombineMode.Set) 
End Sub 

Requirements

Target Platforms

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

Leadtools Assembly