ImageGear .NET v25.2 - Updated
BitsPerSample Property (ImGearTIFFMetadata)




ImageGear.Formats.SimplifiedMetadata Assembly > ImageGear.Formats.TIF Namespace > ImGearTIFFMetadata Class : BitsPerSample Property
Gets or sets BitsPerSample tag value.
Syntax
'Declaration
 
Public Property BitsPerSample As UShort()
'Usage
 
Dim instance As ImGearTIFFMetadata
Dim value() As UShort
 
instance.BitsPerSample = value
 
value = instance.BitsPerSample
public ushort[] BitsPerSample {get; set;}
public: __property ushort[]* get_BitsPerSample();
public: __property void set_BitsPerSample( 
   ushort[][]* value
);
public:
property array<ushort>^ BitsPerSample {
   array<ushort>^ get();
   void set (    array<ushort>^ value);
}

Property Value

Unsigned short array.
Remarks
This property accesses the BitsPerSample tag. The tag specifies number of bits per image component.

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.

ImageGear ignores the value of this tag during image saving, and saves a value that corresponds to the saved image DIB's parameters.

See the TIFF 6.0 specification for tag usage details.

See Also

Reference

ImGearTIFFMetadata Class
ImGearTIFFMetadata Members

Is this page helpful?
Yes No
Thanks for your feedback.