←Select platform

SourcePoint Property

Summary
Gets or sets the origin of the source rectangle.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public LeadPoint SourcePoint { get; set; } 
@property (nonatomic, assign) LeadPoint sourcePoint; 
public LeadPoint getSourcePoint(); 
public void setSourcePoint( 
   LeadPoint leadPoint 
); 
public: 
property LeadPoint SourcePoint { 
   LeadPoint get(); 
   void set (    LeadPoint ); 
} 
SourcePoint # get and set (FeatherAlphaBlendCommand) 

Property Value

Origin of the source rectangle. The width and height are the same width and height for the destination rectangle.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.Effects; 
 
 
public void FeatherAlphaBlendCommandExample() 
{ 
   // Load an image 
   RasterCodecs codecs = new RasterCodecs(); 
   RasterImage backgroundImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "Image1.cmp")); 
   RasterImage sourceImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "LittleGFlyingAlpha.png"), 32, CodecsLoadByteOrder.Bgr, 1, 1); 
   FeatherAlphaBlendCommand command = new FeatherAlphaBlendCommand(); 
   command.DestinationRectangle = new LeadRect(0, 0, sourceImage.Width, sourceImage.Height); 
   command.MaskImage = sourceImage.CreateAlphaImage(); 
   command.SourceImage = sourceImage; 
   command.SourcePoint = new LeadPoint(0, 0); 
   command.Run(backgroundImage); 
   codecs.Save(backgroundImage, Path.Combine(LEAD_VARS.ImagesDir, "Result.jpg"), RasterImageFormat.Jpeg, 24); 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; 
} 
Requirements

Target Platforms

Help Version 22.0.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 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.