DicomImageInfo 类

Summary: Contains all meta-information from Dicom file header

Module: aspose.imaging.fileformats.dicom

Full Name: aspose.imaging.fileformats.dicom.DicomImageInfo

Properties

NameTypeAccess描述
bits_allocatedintr获取 “bitsAllocated” 的值。
bits_storedintr获取已存储位的数量。
bluesSystem.Byter获取蓝色的颜色数组。
dicom_header_info_by_bytesSystem.Byter按字节获取 DICOM 头信息。
dicom_infoSystem.Collections.Generic.IList`1[[System.String]]r获取 DICOM 文件的头信息。
greensSystem.Byter获取绿色的颜色数组。
heightintr获取高度。
is_little_endianboolr获取一个值,指示此实例是否为小端序。
number_of_framesintr获取帧的数量。
offsetintr获取偏移量。
photo_interpretationstringr获取 “PhotoInterpretation” 的值。
pixel_representationintr获取像素 “pixelRepresentation” 的值。
planar_configurationintr获取平面配置。
readonly_tags_list [static]System.Collections.Generic.IList`1[[System.String]]r只读标签列表。这些标签值将在图像保存时根据实际图像数据重置。
redsSystem.Byter获取红色的数组颜色
rescale_interceptfloatr获取 “rescaleIntercept” 的值。
rescale_slopefloatr获取 “rescaleSlope” 的值。
samples_per_pixelintr获取 “samplesPerPixel” 的值。
signed_imageboolr获取指示是否为 “signedImage” 的值。
widthintr获取宽度。
window_centrefloatr获取窗口中心。
window_widthfloatr获取窗口的宽度。

Methods

Name描述
add_tag(tag_description, value)添加新的 Dicom 标签。
remove_tag_at(index)删除现有的标签。
try_add_tag(tag_description, value)添加新的 Dicom 标签。
try_remove_tag_at(index)删除现有的标签。
try_update_tag_at(index, new_value)更新现有的标签。
update_tag_at(index, new_value)更新现有的标签。

Method: add_tag(tag_description, value)

 add_tag(tag_description, value) 

添加新的 Dicom 标签。

Parameters:

参数TypeDescription
tag_descriptionstring标签描述。不能为空或仅包含空白。
valueSystem.Object标签值。不能为空。

Method: remove_tag_at(index)

 remove_tag_at(index) 

删除现有的标签。

Parameters:

参数TypeDescription
indexint要更新的标签的索引。

Method: try_add_tag(tag_description, value)

 try_add_tag(tag_description, value) 

添加新的 Dicom 标签。

Parameters:

参数TypeDescription
tag_descriptionstring标签描述。不能为空或仅包含空白。
valueSystem.Object标签值。不能为空。

Returns

TypeDescription
bool操作结果。

Method: try_remove_tag_at(index)

 try_remove_tag_at(index) 

删除现有的标签。

Parameters:

参数TypeDescription
indexint要更新的标签的索引。

Returns

TypeDescription
bool操作结果。

Method: try_update_tag_at(index, new_value)

 try_update_tag_at(index, new_value) 

更新现有的标签。

Parameters:

参数TypeDescription
indexint要更新的标签的索引。
new_valueSystem.Object标签值。不能为空。

Returns

TypeDescription
bool操作结果。

Method: update_tag_at(index, new_value)

 update_tag_at(index, new_value) 

更新现有的标签。

Parameters:

参数TypeDescription
indexint要更新的标签的索引。
new_valueSystem.Object标签值。不能为空。