- 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.
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 ) |
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.
Refer to PdfCompressor example.
For more information, refer to Creating a Compressed PDF File.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7