ImageMan.Net Version 3 Summer 2012 Release
TifPhotometricInterpretation Enumeration
See Also  Send Feedback
DTI.ImageMan.Codecs Namespace : TifPhotometricInterpretation Enumeration





Glossary Item Box

Photometric Interpretation

Syntax

Visual Basic (Declaration) 
Public Enum TifPhotometricInterpretation 
   Inherits System.Enum
Visual Basic (Usage)Copy Code
Dim instance As TifPhotometricInterpretation
C# 
public enum TifPhotometricInterpretation : System.Enum 
JScript 
public enum TifPhotometricInterpretation extends System.Enum
Managed Extensions for C++ 
__value public enum TifPhotometricInterpretation : public System.Enum 
C++/CLI 
public enum class TifPhotometricInterpretation : public System.Enum 

Members

MemberDescription
BlackIs00 bits and bytes in the case of 8 bit grayscale are black.
LogicalChoiceWill pick the best choice, based on the image passed in.
Palette4 or 8 bit palette entries.
RGBThree separate RGB entries for each color (24 or 32 bit).
Separated32 bit CMYK.
WhiteIs00 bits and bytes in the case of 8 bit grayscale are white.
YCbCrYCbCr

Remarks

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:.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         DTI.ImageMan.Codecs.TifPhotometricInterpretation

Requirements

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

Reference

DTI.ImageMan.Codecs Namespace
TifEncoder.TifPhotometricInterpretation

© 2014 Data Techniques, Inc. All Rights Reserved.