LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
DisplayDepth Property
See Also 
Leadtools.Codecs Namespace > CodecsPdfLoadOptions Class : DisplayDepth Property



Gets or sets the resulting image pixel depth.

Syntax

Visual Basic (Declaration) 
Public Property DisplayDepth As Integer
Visual Basic (Usage)Copy Code
Dim instance As CodecsPdfLoadOptions
Dim value As Integer
 
instance.DisplayDepth = value
 
value = instance.DisplayDepth
C# 
public int DisplayDepth {get; set;}
C++/CLI 
public:
property int DisplayDepth {
   int get();
   void set (    int value);
}

Property Value

The resulting image pixel depth, valid values are 0, 1, 4, 8, or 24.

Example

For an example, refer to CodecsPdfOptions.

Remarks

Possible values are:

Value Description
0 Auto-detect. The result image will have the same bits per pixel as the requested page in the source PDF file. Internally, the toolkit will use the bits per pixel value of the first image item found on the page. If the page does not have any image items, the result will be 24 bits per pixel. Use this value only when the source file is a raster PDF.
1 1 bit per pixel in the resultant image.
4 4 bit per pixel in the resultant image.
8 8 bit per pixel in the resultant image.
24 24 bit per pixel in the resultant image.

Refer to CodecsRasterPdfInfo for information on how to use RasterCodecs.GetRasterPdfInfo to obtain this value from a PDF file saved with RasterCodecs.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also