←Select platform

LegacyEllipse Property

Summary

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

Syntax
C#
C++/CLI
Java
Python
public static bool LegacyEllipse { get; set; } 
public static boolean getLegacyEllipse(); 
public:  
   static property bool LegacyEllipse 
   { 
      bool get() 
      void set(bool value) 
   } 
LegacyEllipse # get and set (RasterRegion) 

Property Value

Default is set to false.

Remarks

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

Example
C#
Java
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing; 
 
 
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); 
} 
 
import static org.junit.Assert.assertTrue; 
 
import java.io.File; 
import java.io.FileOutputStream; 
import java.io.IOException; 
import java.nio.file.Files; 
import java.nio.file.Paths; 
 
import org.junit.*; 
import org.junit.runner.JUnitCore; 
import org.junit.runner.Result; 
import org.junit.runner.notification.Failure; 
 
import leadtools.*; 
import leadtools.codecs.*; 
import leadtools.imageprocessing.FillCommand; 
 
 
public void rasterRegionLegacyEllipseExample() { 
   RasterImage img = RasterImage.create(100, 100, 1, 96, RasterColor.BLACK); 
   RasterRegion region = img.getRegion(null); 
   region.serLegacyEllipse(true); 
   img.addEllipseToRegion(null, LeadRect.create(10, 10, 10, 10), RasterRegionCombineMode.SET); 
 
   assertTrue("Ellipse was not added successfully", RasterRegion.getLegacyEllipse()); 
   System.out.println("Ellipse added to region"); 
} 
Requirements

Target Platforms

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

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