Leadtools.ImageProcessing Namespace > CloneCommand Class : SourceImage Property |
public RasterImage SourceImage {get;}
'Declaration Public ReadOnly Property SourceImage As RasterImage
'Usage Dim instance As CloneCommand Dim value As RasterImage value = instance.SourceImage
public RasterImage SourceImage {get;}
get_SourceImage();
public: property RasterImage^ SourceImage { RasterImage^ get(); }
If the source image (the image passed to the RasterCommand.Run method) contains multiple pages, then you can use the AllPages property to control whether the CloneCommand will create a copy of the current active page or all the pages in the image.
Note that when the source image has multiple pages and the value of AllPages was set to true, then the RasterCommand.Progress event will fire from 0 to 100 for each page processed. If an overall progress percentage is desired, then you can inspect the RasterImage.Page and RasterImage.PageCount properties of the SourceImage property to calculate this value as shown in the AllPages example.
The default value of this property is false.
For an example, refer to AllPages.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2