←Select platform

XForm Property

Summary
Gets or sets a RasterRegionXForm object used to translate between display coordinates and image coordinates.
Syntax
C#
C++/CLI
Python
public RasterRegionXForm XForm { get; set; } 
public: 
property RasterRegionXForm^ XForm { 
   RasterRegionXForm^ get(); 
   void set (    RasterRegionXForm^ ); 
} 
XForm # get and set (RegionContourPointsCommand) 

Property Value

RasterRegionXForm object used to translate between display coordinates and image coordinates. If you specify null in this property, 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.