ImageMan.Net Version 3 Summer 2012 Release
PhotometricInterpretation Property
See Also  Send Feedback
DTI.ImageMan.Codecs Namespace > TifDecoder Class : PhotometricInterpretation Property

Glossary Item Box

Photometric Interpretation


Visual Basic (Declaration) 
Public ReadOnly Property PhotometricInterpretation As TifPhotometricInterpretation
Visual Basic (Usage)Copy Code
Dim instance As TifDecoder
Dim value As TifPhotometricInterpretation
value = instance.PhotometricInterpretation
public TifPhotometricInterpretation PhotometricInterpretation {get;}
public function get PhotometricInterpretation : TifPhotometricInterpretation
Managed Extensions for C++ 
public: __property TifPhotometricInterpretation get_PhotometricInterpretation();
property TifPhotometricInterpretation PhotometricInterpretation {
   TifPhotometricInterpretation get();


Determines how to interpret the color of bites. For monochrome or grayscale image it will determine if the 0 bits or bytes are black or white.

Some monochrome images may look inverted compared to the XP Viewer. This is because the Windows XP previewer through SP2, does not follow the Tiff specification and honor the Photometric interpretation specified in the image file directory for the image. All images are treated as if they where Min as White or White pixels = 0 bits even if this is not true. This tag is honored for grayscale images.

In order for an image to be saved in grayscale format it must have a ramped palette. A ramped palette is created when the ImageMan Palette is created using the GrayScale PaletteType:DTI::ImageMan::ImPalette::PaletteType:.

When using the ModifyBitDepth Command:DTI::ImageMan::Commands: set the Palette Option:DTI::ImageMan::Commands::ModifyBitDepthCommand: to Custom:DTI::ImageMan::Commands: and the Palette Property:DTI::ImageMan::Commands: to a new ImageMan Palette using the GrayScale PaletteType:DTI::ImageMan::ImPalette::PaletteType:.


Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2014 Data Techniques, Inc. All Rights Reserved.