ImageGear v26.3 - Updated
ImageGear.Core Assembly / ImageGear.Formats.IPTC Namespace / ImGearIPTCMetadata Class / ColourPalette Property




In This Topic
    ColourPalette Property
    In This Topic
    Gets or sets Colour Palette IPTC dataset.
    Syntax
    'Declaration
     
    Public Property ColourPalette As Byte()
    'Usage
     
    Dim instance As ImGearIPTCMetadata
    Dim value() As Byte
     
    instance.ColourPalette = value
     
    value = instance.ColourPalette
    public byte[] ColourPalette {get; set;}
    public: __property byte[]* get_ColourPalette();
    public: __property void set_ColourPalette( 
       byte[][]* value
    );
    public:
    property array<byte>^ ColourPalette {
       array<byte>^ get();
       void set (    array<byte>^ value);
    }

    Property Value

    Array of bytes.
    Remarks
    This property accesses the Colour Palette DataSet (3:85). The purpose of the Colour Palette is to act as a lookup table mapping the pixel values into the Colour Space defined in Interchange Colour Space DataSet (3:64).

    Contains up to 524,288 (4 x 65536 x 2) bytes.

    A number of default palettes may be held to be selected according to the device identifier component of the Picture Number 3:10.

    Get accessor returns the tag value if the tag is present in the metadata tree, or null otherwise.

    Set accessor replaces the current tag value if the tag is present in the metadata tree, adds the tag if it was not present, or deletes the tag if a null value is passed.

    See the IPTC - NAA Digital Newsphoto Parameter Record ver.4 specification for tag usage details.

    See Also