ImageInformation3D.PixelFormat Property

Gets PixelFormat of the image, As PixelFormat object.

public PixelFormat PixelFormat { get; }
Public Property PixelFormat As PixelFormat

Property Value

PixelFormat

Licensing Info

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples

This example show how to access PixelFormat of an Image
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.Merger
     
Module MyModule
     		
    Sub ImageInfoPixelFormat(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 PixelFormat of the images from the imageInformation array
        Dim pixelFormat As PixelFormat = imageInformation(0).PixelFormat
		
    End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.Merger;

public class Example
{
    public static void ImageInfoPixelFormat(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 PixelFormat of the images from the imageInformation array
        PixelFormat pixelFormat = imageInformation[0].PixelFormat;
    }
}

See Also

ImageInformation3D
ceTe.DynamicPDF.Merger

In this topic