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





Glossary Item Box

Gets or sets the Photometric Interpretation

Syntax

Visual Basic (Declaration) 
Public Property PhotometricInterpretation As TifPhotometricInterpretation
Visual Basic (Usage)Copy Code
Dim instance As TifAttributes
Dim value As TifPhotometricInterpretation
 
instance.PhotometricInterpretation = value
 
value = instance.PhotometricInterpretation
C# 
public TifPhotometricInterpretation PhotometricInterpretation {get; set;}
JScript 
public function get,set PhotometricInterpretation : TifPhotometricInterpretation
Managed Extensions for C++ 
public: __property TifPhotometricInterpretation get_PhotometricInterpretation();
public: __property void set_PhotometricInterpretation( 
   TifPhotometricInterpretation value
);
C++/CLI 
public:
property TifPhotometricInterpretation PhotometricInterpretation {
   TifPhotometricInterpretation get();
   void set (    TifPhotometricInterpretation value);
}

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

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

© 2014 Data Techniques, Inc. All Rights Reserved.