Leadtools.Pdf Requires PDF Plug-in license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
InsertSegments Method
See Also 
Leadtools.Pdf Namespace > PdfCompressor Class : InsertSegments Method




image
Image to be inserted in the PDF file.
segmentInfo
Contains information for all segments. PdfCompressorSegmentsInfo
isThereBackGround
Determines whether to use the average backgroundColor for all segments with background type or to use each color of each background segment.
backgroundColor
Average background color, to be used for all backgrounds segments if isThereBackGround is true.
Applies the input Segments, compresses it, and inserts the image in the PDF file. This is provided for advanced usage.

Syntax

Visual Basic (Declaration) 
Public Sub InsertSegments( _
   ByVal image As RasterImage, _
   ByVal segmentInfo() As PdfCompressorSegmentsInfo, _
   ByVal isThereBackGround As Boolean, _
   ByVal backgroundColor As RasterColor _
) 
Visual Basic (Usage)Copy Code
Dim instance As PdfCompressor
Dim image As RasterImage
Dim segmentInfo() As PdfCompressorSegmentsInfo
Dim isThereBackGround As Boolean
Dim backgroundColor As RasterColor
 
instance.InsertSegments(image, segmentInfo, isThereBackGround, backgroundColor)
C# 
public void InsertSegments( 
   RasterImage image,
   PdfCompressorSegmentsInfo[] segmentInfo,
   bool isThereBackGround,
   RasterColor backgroundColor
)
Managed Extensions for C++ 
public: void InsertSegments( 
   RasterImage image,
   PdfCompressorSegmentsInfo*[] segmentInfo,
   bool isThereBackGround,
   RasterColor backgroundColor
) 
C++/CLI 
public:
void InsertSegments( 
   RasterImage image,
   array<PdfCompressorSegmentsInfo^> segmentInfo,
   bool isThereBackGround,
   RasterColor backgroundColor
) 

Parameters

image
Image to be inserted in the PDF file.
segmentInfo
Contains information for all segments. PdfCompressorSegmentsInfo
isThereBackGround
Determines whether to use the average backgroundColor for all segments with background type or to use each color of each background segment.
backgroundColor
Average background color, to be used for all backgrounds segments if isThereBackGround is true.

Example

Refer to PdfCompressor example.

Remarks

For more information, refer to Creating a Compressed PDF File.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Pdf requires a PDF Plug-in license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features