Class DicomImageInfo
Namespace: Aspose.Imaging.FileFormats.Dicom
Assembly: Aspose.Imaging.dll (25.7.0)
Contains all meta-information from Dicom file header
[JsonObject(MemberSerialization.OptIn)]
public sealed class DicomImageInfo
{
}
Inheritance
Inherited Members
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
BitsAllocated
Gets a value of the “bitsAllocated”.
public int BitsAllocated
{
get;
}
Property Value
BitsStored
Gets the number of stored bits.
public int BitsStored
{
get;
}
Property Value
Blues
Gets the array colors of the blue
public byte[] Blues
{
get
{
}
}
Property Value
byte []
DicomHeaderInfoByBytes
Gets the dicom header information by bytes.
[JsonProperty]
public byte[] DicomHeaderInfoByBytes
{
get;
}
Property Value
byte []
DicomInfo
Gets the header information of the DICOM file.
public readonly Collection<string> DicomInfo { get; }
Property Value
Examples
The following example shows how to read the header information of a DICOM image.
string dir = "c:\\aspose.imaging\\issues\\net\\3635\\testdata\\3628";
using (var image = (Aspose.Imaging.FileFormats.Dicom.DicomImage)Aspose.Imaging.Image.Load(System.IO.Path.Combine(dir, "ttfm.dcm")))
{
foreach (string s in image.FileInfo.DicomInfo)
{
System.Console.WriteLine(s);
}
}
Greens
Gets the array colors of the green
[JsonProperty]
public byte[] Greens
{
get;
}
Property Value
byte []
Height
Gets the height.
[JsonProperty]
public int Height
{
get;
}
Property Value
IsLittleEndian
Gets a value indicating whether this instance is little endian.
public bool IsLittleEndian
{
get;
}
[JsonProperty] // No changes here as per your requirements.
Property Value
NumberOfFrames
Gets the number of frames.
public int NumberOfFrames
{
get;
}
Property Value
Offset
Gets the offset.
[JsonProperty]
public int Offset
{
get;
}
Property Value
PhotoInterpretation
Gets a value of the “PhotoInterpretation”.
[JsonProperty]
public string PhotoInterpretation
{
get;
}
Property Value
PixelRepresentation
Gets a value of the pixel “pixelRepresentation”.
public int PixelRepresentation
{
get;
}
Property Value
PlanarConfiguration
Gets the planar configuration.
public int PlanarConfiguration
{
get;
}
Property Value
ReadonlyTagsList
The read-only tags list. These tag values will be reset according to the actual image data upon image save.
public static readonly ReadOnlyCollection<string> ReadonlyTagsList = default;
Property Value
Reds
Gets the array colors of the red
public byte[] Reds
{
get
{
}
}
Property Value
byte []
RescaleIntercept
Gets a value of the “rescaleIntercept”.
public double RescaleIntercept
{
get;
}
Property Value
RescaleSlope
Gets a value of the “rescaleSlope”.
public double RescaleSlope
{
get;
}
Property Value
SamplesPerPixel
Gets a value of the “samplesPerPixel”.
public int SamplesPerPixel
{
get;
}
Property Value
SignedImage
Gets a value indicating whether “signedImage”.
public bool SignedImage
{
get;
}
Property Value
Width
Gets the width.
public int Width
{
get
{
}
}
Property Value
WindowCentre
Gets the window centre.
public class YourClassNameHere
{
[JsonProperty]
public double WindowCentre
{
get;
}
}
Property Value
WindowWidth
Gets the width of the window.
public class MyClass
{
[JsonProperty]
public double WindowWidth { get; }
}
Property Value
Methods
AddTag(string, object)
Add new Dicom tag.
public void AddTag(string tagDescription, object value)
{
}
Parameters
tagDescription
string
The tag description. Can not be null or whitespace.
value
object
The tag value. Can not be null.
RemoveTagAt(int)
Remove an existing tag.
public void RemoveTagAt(int index)
{
}
Parameters
index
int
The index of the tag to be updated.
TryAddTag(string, object)
Add new Dicom tag.
public bool TryAddTag(string tagDescription, object value)
{
}
Parameters
tagDescription
string
The tag description. Can not be null or whitespace.
value
object
The tag value. Can not be null.
Returns
The operation result.
TryRemoveTagAt(int)
Remove an existing tag.
public bool TryRemoveTagAt(int index)
{
}
Parameters
index
int
The index of the tag to be updated.
Returns
The operation result.
TryUpdateTagAt(int, object)
Update an existing tag.
public bool TryUpdateTagAt(int index, object newValue)
{
}
Parameters
index
int
The index of the tag to be updated.
newValue
object
The tag value. Can not be null.
Returns
The operation result.
UpdateTagAt(int, object)
Update an existing tag.
public void UpdateTagAt(int index, object newValue)
{
}
Parameters
index
int
The index of the tag to be updated.
newValue
object
The tag value. Can not be null.