ImageInformation.PixelFormat Property
Gets PixelFormat of the image, As PixelFormat object.
public PixelFormat PixelFormat { get; }
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 PixelFormat of an Imageusing 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
ImageInformation[] imageInformation = pdf.GetImages();
// Read the PixelFormat of the images from the imageInformation array
PixelFormat pixelFormat = imageInformation[0].PixelFormat;
}
}
See Also
ImageInformationceTe.DynamicPDF.Merger