ImageInformation3D.BitsPerComponent Property
Gets Bits Per Component number for a pixel of the image.
public int BitsPerComponent { get; }
Public Property BitsPerComponent As Int32
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Examples
This example show how to access BitsPerComponent of an ImageImports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.Merger
Module MyModule
Sub ImageInfoBitsPerComponent(sourcePdfPath As String)
'Create PdfDocument object using the source PDF
Dim pdf As PdfDocument = New PdfDocument(sourcePdfPath)
'Get the information of all the images in the document
Dim imageInformation() As ImageInformation3D = pdf.Get3DImages()
'Read the BitsPerComponent of the images from the imageInformation array
Dim bitCount As Int64 = imageInformation(0).BitsPerComponent
End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.Merger;
public class Example
{
public static void ImageInfoBitsPerComponent(string sourcePdfPath)
{
// Create PdfDocument object using the source PDF
PdfDocument pdf = new PdfDocument(sourcePdfPath);
// Get the information of all the images in the document
ImageInformation3D[] imageInformation = pdf.Get3DImages();
// Read the BitsPerComponent of the images from the imageInformation array
int bitCount = imageInformation[0].BitsPerComponent;
}
}