Ellipse region compatible with older version of LEADTOOLS (v18 and some old v19 DLLs).
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)
Default is set to false.
Valid only for AddEllipseToRegion. Not recommended unless you need to preserve backwards compatibility.
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");
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document