xtd 0.2.0
Loading...
Searching...
No Matches
xtd::drawing::imaging::property_item Class Referencefinal
Inheritance diagram for xtd::drawing::imaging::property_item:
xtd::object xtd::iequatable< property_item >

Definition

Encapsulates a metadata property to be included in an image file. Not inheritable.

Namespace
xtd::drawing::imaging
Library
xtd.drawing
Remarks
The data consists of: an identifier, the length (in bytes) of the property, the property type, and a pointer to the property value.
A property_item is not intended to be used as a stand-alone object. A property_item object is intended to be used by classes that are derived from image. A property_item object is used to retrieve and to change the metadata of existing image files, not to create the metadata. Therefore, the property_item class does not have a defined Public constructor, and you cannot create an instance of a property_item object.
To work around the absence of a Public constructor, use an existing property_item object instead of creating a new instance of the property_item class. For more information, see image.Getproperty_item.

Public Properties

int32 id () const noexcept
 Gets the ID of the property.
 
void id (int32 id) noexcept
 Sets the ID of the property.
 
int32 len () const noexcept
 Gets the length (in bytes) of the value property.
 
void len (int32 len) noexcept
 Sets the length (in bytes) of the value property. &param len An integer that represents the length (in bytes) of the value byte array.
 
int16 type () const noexcept
 Gets an integer that defines the type of data contained in the value property.
 
void type (int16 type) noexcept
 Sets an integer that defines the type of data contained in the value property.
 
const std::vector< xtd::byte > & value () const noexcept
 Gets the value of the property item.
 
std::vector< xtd::byte > & value () noexcept
 Gets the value of the property item.
 
void value (const std::vector< xtd::byte > &value) noexcept
 Sets the value of the property item.
 
bool equals (const property_item &value) const noexcept override
 
virtual bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object.
 
template<typename object_a_t , typename object_b_t >
static bool equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 

Additional Inherited Members

- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object.
 
virtual size_t get_hash_code () const noexcept
 Serves as a hash function for a particular type.
 
virtual type_object get_type () const noexcept
 Gets the type of the current instance.
 
template<typename object_t >
xtd::uptr< object_t > memberwise_clone () const
 Creates a shallow copy of the current object.
 
virtual xtd::string to_string () const noexcept
 Returns a xtd::string that represents the current object.
 
- Static Public Member Functions inherited from xtd::object
template<typename object_a_t , typename object_b_t >
static bool equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
template<typename object_a_t , typename object_b_t >
static bool reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are the same instance.
 

Member Function Documentation

◆ id() [1/2]

int32 xtd::drawing::imaging::property_item::id ( ) const
inlinenoexcept

Gets the ID of the property.

Returns
The integer that represents the ID of the property.
Remarks
The following table shows the property tags and their IDs.
ID Property tag
0x000 property_tag_gps_ver
0x001 property_tag_gps_latitude_ref
0x002 property_tag_gps_latitude
0x003 property_tag_gp_longitude_ref
0x004 property_tag_gps_longitude
0x005 property_tag_gps_altitude_ref
0x006 property_tag_gps_altitude
0x007 property_tag_gps_gps_time
0x008 property_tag_gps_gps_satellites
0x009 property_tag_gps_gps_status
0x00A property_tag_gps_gps_measure_mode
0x00B property_tag_gps_gps_dop
0x00C property_tag_gps_speed_ref
0x00D property_tag_gps_speed
0x00E property_tag_gps_track_ref
0x00F property_tag_gps_track
0x010 property_tag_gps_img_dir_ref
0x011 property_tag_gps_img_dir
0x012 property_tag_gps_map_datum
0x013 property_tag_gps_dest_lat_ref
0x014 property_tag_gps_dest_lat
0x015 property_tag_gps_Dest_long_ref
0x016 property_tag_gps_dest_long
0x017 property_tag_gps_dest_bear _ref
0x018 property_tag_gps_dest_bear
0x019 property_tag_gps_dest_dist_ref
0x01A property_tag_gps_dest_dist
0x0FE property_tag_new_subfile_type
0x0FF property_tag_subfileType
0x100 property_tag_image_width
0x101 property_tag_image_height
0x102 property_tag_bits_per_sample
0x103 property_tag_compression
0x106 property_tag_photometric_interp
0x107 property_tag_thresh_holding
0x108 property_tag_cell_width
0x109 property_tag_Cell_height
0x10A property_tag_fill_order
0x10D property_tag_document_name
0x10E property_tag_image_description
0x10F property_tag_equip_make
0x110 property_tag_equip_model
0x111 property_tag_strip_offsets
0x112 property_tag_orientation
0x115 property_tag_Samples_per_pixel
0x116 property_tag_rows_per_strip
0x117 property_tag_strip_bytes_count
0x118 property_tag_min_sample_value
0x119 property_tag_max_sample_value
0x11A property_tag_xresolution
0x11B property_tag_yresolution
0x11C property_tag_planar_config
0x11D property_tag_page_name
0x11E property_tag_xposition
0x11F property_tag_yposition
0x120 property_tag_free_offset
0x121 property_tag_free_byte_counts
0x122 property_tag_gray_response_unit
0x123 property_tag_gray_response_curve
0x124 property_tag_t4_option
0x125 property_tag_t6_option
0x128 property_tag_resolution_unit
0x129 property_tag_page_number
0x12D property_tag_transfer_function
0x131 property_tag_software_used
0x132 property_tag_date_time
0x13B property_tag_artist
0x13C property_tag_host_computer
0x13D property_tag_predictor
0x13E property_tag_white_point
0x13F property_tag_primary_chromaticities
0x140 property_tag_color_map
0x141 property_tag_halftone_hints
0x142 property_tag_tile_width
0x143 property_tag_tile_length
0x144 property_tag_tile_offset
0x145 property_tag_tile_byte_counts
0x14C property_tag_ink_set
0x14D property_tag_ink_names
0x14E property_tag_number_of_inks
0x150 property_tag_dot_range
0x151 property_tag_target_printer
0x152 property_tag_extra_samples
0x153 property_tag_sample_format
0x154 property_tag_smin_sample_value
0x155 property_tag_smax_sample_value
0x156 property_tag_transfer_range
0x200 property_tag_jpeg_proc
0x201 property_tag_jpeg_inter_format
0x202 property_tag_jpeg_Inter_length
0x203 property_tag_jpeg_restart_interval
0x205 property_tag_jpeg_lossless_predictors
0x206 property_tag_jpeg_point_transforms
0x207 property_tag_jpeg_qtables
0x208 property_tag_jpeg_dctables
0x209 property_tag_jpeg_actables
0x211 property_tag_ycb_cr_coefficients
0x212 property_tag_ycb_cr_subsampling
0x213 property_tag_ycb_cr_positioning
0x214 property_tag_refblack_white
0x301 property_tag_gamma
0x302 property_tag_iccprofile_descriptor
0x303 property_tag_srgbrendering_intent
0x320 property_tag_image_title
0x5001 property_tag_resolution_xunit
0x5002 property_tag_resolution_yunit
0x5003 property_tag_resolution_xlength_unit
0x5004 property_tag_resolution_ylength_unit
0x5005 property_tag_print_flags
0x5006 property_tag_print_flags_version
0x5007 property_tag_print_flags_crop
0x5008 property_tag_print_flags_bleed_width
0x5009 property_tag_print_flags_bleed_width_scale
0x500A property_tag_halfton_elpi
0x500B property_tag_halfton_elpi_unit
0x500C property_tag_halfton_edegree
0x500D property_tag_halfton_eshape
0x500E property_tag_halfton_emisc
0x500F property_tag_halfton_escreen
0x5010 property_tag_jpeg_quality
0x5011 property_tag_grid_size
0x5012 property_tag_thumbnail_format
0x5013 property_tag_thumbnail_width
0x5014 property_tag_thumbnail_height
0x5015 property_tag_thumbnail_color_depth
0x5016 property_tag_thumbnail_planes
0x5017 property_tag_thumbnail_raw_bytes
0x5018 property_tag_thumbnail_size
0x5019 property_tag_thumbnail_compressed_size
0x501A property_tag_color_transfer_function
0x501B property_tag_thumbnail_data
0x5020 property_tag_thumbnail_image_width
0x5021 property_tag_thumbnail_image_height
0x5022 property_tag_thumbnail_bits_per_sample
0x5023 property_tag_thumbnail_compression
0x5024 property_tag_thumbnail_photometric_interp
0x5025 property_tag_thumbnail_image_description
0x5026 property_tag_thumbnail_equip_make
0x5027 property_tag_thumbnail_equip_model
0x5028 property_tag_thumbnail_strip_offsets
0x5029 property_tag_thumbnail_orientation
0x502A property_tag_thumbnail_samples_per_pixel
0x502B property_tag_thumbnail_rows_per_strip
0x502C property_tag_thumbnail_strip_bytes_count
0x502D property_tag_thumbnail_resolution_x
0x502E property_tag_thumbnail_resolution_y
0x502F property_tag_thumbnail_planar_config
0x5030 property_tag_thumbnail_resolution_unit
0x5031 property_tag_thumbnail_transfer_function
0x5032 property_tag_thumbnail_doftware_used
0x5033 property_tag_thumbnail_date_time
0x5034 property_tag_thumbnail_artist
0x5035 property_tag_thumbnail_white_point
0x5036 property_tag_thumbnail_primary_chromaticities
0x5037 property_tag_thumbnail_ycb_cr_coefficients
0x5038 property_tag_thumbnail_ycb_cr_subsampling
0x5039 property_tag_thumbnail_ycb_cr_positioning
0x503A property_tag_thumbnail_ref_black_white
0x503B property_tag_thumbnail_copyRight
0x5090 property_tag_luminance_table
0x5091 property_tag_chrominance_table
0x5100 property_tag_frame_delay
0x5101 property_tag_loop_count
0x5102 property_tag_global_palette
0x5103 property_tag_index_background
0x5104 property_tag_index_transparent
0x5110 property_tag_pixel_unit
0x5111 property_tag_pixel_per_unit_x
0x5112 property_tag_pixel_per_unit_y
0x5113 property_tag_palette_histogram
0x8298 property_tag_copyright
0x829A property_tag_exif_exposureTime
0x829D property_tag_exif_fnumber
0x8769 property_tag_exif_ifd
0x8773 property_tag_icc_profile
0x8822 property_tag_exif_exposure_prog
0x8824 property_tag_exif_spectral_sense
0x8825 property_tag_gps_ifd
0x8827 property_tag_exif_iso_speed
0x8828 property_tag_exif_oecf
0x9000 property_tag_exif_ver
0x9003 property_tag_exif_dt_orig
0x9004 property_tag_exif__dt_digitized
0x9101 property_tag_exif_comp_config
0x9102 property_tag_exif_comp_bpp
0x9201 property_tag_exif_shutter_speed
0x9202 property_tag_exif_aperture
0x9203 property_tag_exif_brightness
0x9204 property_tag_exif_exposure_bias
0x9205 property_tag_exif_max_aperture
0x9206 property_tag_exif_subject_dist
0x9207 property_tag_exif_metering_mode
0x9208 property_tag_exif_light_source
0x9209 property_tag_exif_flash
0x920A property_tag_exif_focal_length
0x927C property_tag_exif_maker_note
0x9286 property_tag_exif_user_comment
0x9290 property_tag_exif_dt_subsec
0x9291 property_tag_exif_dt_orig_ss
0x9292 property_tag_exif_dt_dig_ss
0xA000 property_tag_exif_fpx_ver
0xA001 property_tag_exif_color_space
0xA002 property_tag_exif_pix_x_dim
0xA003 property_tag_exif_pix_y_dim
0xA004 property_tag_exif_related_wav
0xA005 property_tag_exif_interop
0xA20B property_tag_exif_flash_energy
0xA20C property_tag_exif_spatial_fr
0xA20E property_tag_exif_focal_x_res
0xA20F property_tag_exif_focal_y_res
0xA210 property_tag_exif_focal_res_unit
0xA214 property_tag_exif_subject_loc
0xA215 property_tag_exif_exposure_index
0xA217 property_tag_exif_sensing_method
0xA300 property_tag_exif_file_Source
0xA301 property_tag_exif_scene_type
0xA302 property_tag_exif_cfa_pattern

◆ id() [2/2]

void xtd::drawing::imaging::property_item::id ( int32  id)
inlinenoexcept

Sets the ID of the property.

Parameters
idThe integer that represents the ID of the property.
Remarks
The following table shows the property tags and their IDs.
ID Property tag
0x000 property_tag_gps_ver
0x001 property_tag_gps_latitude_ref
0x002 property_tag_gps_latitude
0x003 property_tag_gp_longitude_ref
0x004 property_tag_gps_longitude
0x005 property_tag_gps_altitude_ref
0x006 property_tag_gps_altitude
0x007 property_tag_gps_gps_time
0x008 property_tag_gps_gps_satellites
0x009 property_tag_gps_gps_status
0x00A property_tag_gps_gps_measure_mode
0x00B property_tag_gps_gps_dop
0x00C property_tag_gps_speed_ref
0x00D property_tag_gps_speed
0x00E property_tag_gps_track_ref
0x00F property_tag_gps_track
0x010 property_tag_gps_img_dir_ref
0x011 property_tag_gps_img_dir
0x012 property_tag_gps_map_datum
0x013 property_tag_gps_dest_lat_ref
0x014 property_tag_gps_dest_lat
0x015 property_tag_gps_Dest_long_ref
0x016 property_tag_gps_dest_long
0x017 property_tag_gps_dest_bear _ref
0x018 property_tag_gps_dest_bear
0x019 property_tag_gps_dest_dist_ref
0x01A property_tag_gps_dest_dist
0x0FE property_tag_new_subfile_type
0x0FF property_tag_subfileType
0x100 property_tag_image_width
0x101 property_tag_image_height
0x102 property_tag_bits_per_sample
0x103 property_tag_compression
0x106 property_tag_photometric_interp
0x107 property_tag_thresh_holding
0x108 property_tag_cell_width
0x109 property_tag_Cell_height
0x10A property_tag_fill_order
0x10D property_tag_document_name
0x10E property_tag_image_description
0x10F property_tag_equip_make
0x110 property_tag_equip_model
0x111 property_tag_strip_offsets
0x112 property_tag_orientation
0x115 property_tag_Samples_per_pixel
0x116 property_tag_rows_per_strip
0x117 property_tag_strip_bytes_count
0x118 property_tag_min_sample_value
0x119 property_tag_max_sample_value
0x11A property_tag_xresolution
0x11B property_tag_yresolution
0x11C property_tag_planar_config
0x11D property_tag_page_name
0x11E property_tag_xposition
0x11F property_tag_yposition
0x120 property_tag_free_offset
0x121 property_tag_free_byte_counts
0x122 property_tag_gray_response_unit
0x123 property_tag_gray_response_curve
0x124 property_tag_t4_option
0x125 property_tag_t6_option
0x128 property_tag_resolution_unit
0x129 property_tag_page_number
0x12D property_tag_transfer_function
0x131 property_tag_software_used
0x132 property_tag_date_time
0x13B property_tag_artist
0x13C property_tag_host_computer
0x13D property_tag_predictor
0x13E property_tag_white_point
0x13F property_tag_primary_chromaticities
0x140 property_tag_color_map
0x141 property_tag_halftone_hints
0x142 property_tag_tile_width
0x143 property_tag_tile_length
0x144 property_tag_tile_offset
0x145 property_tag_tile_byte_counts
0x14C property_tag_ink_set
0x14D property_tag_ink_names
0x14E property_tag_number_of_inks
0x150 property_tag_dot_range
0x151 property_tag_target_printer
0x152 property_tag_extra_samples
0x153 property_tag_sample_format
0x154 property_tag_smin_sample_value
0x155 property_tag_smax_sample_value
0x156 property_tag_transfer_range
0x200 property_tag_jpeg_proc
0x201 property_tag_jpeg_inter_format
0x202 property_tag_jpeg_Inter_length
0x203 property_tag_jpeg_restart_interval
0x205 property_tag_jpeg_lossless_predictors
0x206 property_tag_jpeg_point_transforms
0x207 property_tag_jpeg_qtables
0x208 property_tag_jpeg_dctables
0x209 property_tag_jpeg_actables
0x211 property_tag_ycb_cr_coefficients
0x212 property_tag_ycb_cr_subsampling
0x213 property_tag_ycb_cr_positioning
0x214 property_tag_refblack_white
0x301 property_tag_gamma
0x302 property_tag_iccprofile_descriptor
0x303 property_tag_srgbrendering_intent
0x320 property_tag_image_title
0x5001 property_tag_resolution_xunit
0x5002 property_tag_resolution_yunit
0x5003 property_tag_resolution_xlength_unit
0x5004 property_tag_resolution_ylength_unit
0x5005 property_tag_print_flags
0x5006 property_tag_print_flags_version
0x5007 property_tag_print_flags_crop
0x5008 property_tag_print_flags_bleed_width
0x5009 property_tag_print_flags_bleed_width_scale
0x500A property_tag_halfton_elpi
0x500B property_tag_halfton_elpi_unit
0x500C property_tag_halfton_edegree
0x500D property_tag_halfton_eshape
0x500E property_tag_halfton_emisc
0x500F property_tag_halfton_escreen
0x5010 property_tag_jpeg_quality
0x5011 property_tag_grid_size
0x5012 property_tag_thumbnail_format
0x5013 property_tag_thumbnail_width
0x5014 property_tag_thumbnail_height
0x5015 property_tag_thumbnail_color_depth
0x5016 property_tag_thumbnail_planes
0x5017 property_tag_thumbnail_raw_bytes
0x5018 property_tag_thumbnail_size
0x5019 property_tag_thumbnail_compressed_size
0x501A property_tag_color_transfer_function
0x501B property_tag_thumbnail_data
0x5020 property_tag_thumbnail_image_width
0x5021 property_tag_thumbnail_image_height
0x5022 property_tag_thumbnail_bits_per_sample
0x5023 property_tag_thumbnail_compression
0x5024 property_tag_thumbnail_photometric_interp
0x5025 property_tag_thumbnail_image_description
0x5026 property_tag_thumbnail_equip_make
0x5027 property_tag_thumbnail_equip_model
0x5028 property_tag_thumbnail_strip_offsets
0x5029 property_tag_thumbnail_orientation
0x502A property_tag_thumbnail_samples_per_pixel
0x502B property_tag_thumbnail_rows_per_strip
0x502C property_tag_thumbnail_strip_bytes_count
0x502D property_tag_thumbnail_resolution_x
0x502E property_tag_thumbnail_resolution_y
0x502F property_tag_thumbnail_planar_config
0x5030 property_tag_thumbnail_resolution_unit
0x5031 property_tag_thumbnail_transfer_function
0x5032 property_tag_thumbnail_software_used
0x5033 property_tag_thumbnail_date_time
0x5034 property_tag_thumbnail_artist
0x5035 property_tag_thumbnail_white_point
0x5036 property_tag_thumbnail_primary_chromaticities
0x5037 property_tag_thumbnail_ycb_cr_coefficients
0x5038 property_tag_thumbnail_ycb_cr_subsampling
0x5039 property_tag_thumbnail_ycb_cr_positioning
0x503A property_tag_thumbnail_ref_black_white
0x503B property_tag_thumbnail_copyRight
0x5090 property_tag_luminance_table
0x5091 property_tag_chrominance_table
0x5100 property_tag_frame_delay
0x5101 property_tag_loop_count
0x5102 property_tag_global_palette
0x5103 property_tag_index_background
0x5104 property_tag_index_transparent
0x5110 property_tag_pixel_unit
0x5111 property_tag_pixel_per_unit_x
0x5112 property_tag_pixel_per_unit_y
0x5113 property_tag_palette_histogram
0x8298 property_tag_copyright
0x829A property_tag_exif_exposureTime
0x829D property_tag_exif_fnumber
0x8769 property_tag_exif_ifd
0x8773 property_tag_icc_profile
0x8822 property_tag_exif_exposure_prog
0x8824 property_tag_exif_spectral_sense
0x8825 property_tag_gps_ifd
0x8827 property_tag_exif_iso_speed
0x8828 property_tag_exif_oecf
0x9000 property_tag_exif_ver
0x9003 property_tag_exif_dt_orig
0x9004 property_tag_exif__dt_digitized
0x9101 property_tag_exif_comp_config
0x9102 property_tag_exif_comp_bpp
0x9201 property_tag_exif_shutter_speed
0x9202 property_tag_exif_aperture
0x9203 property_tag_exif_brightness
0x9204 property_tag_exif_exposure_bias
0x9205 property_tag_exif_max_aperture
0x9206 property_tag_exif_subject_dist
0x9207 property_tag_exif_metering_mode
0x9208 property_tag_exif_light_source
0x9209 property_tag_exif_flash
0x920A property_tag_exif_focal_length
0x927C property_tag_exif_maker_note
0x9286 property_tag_exif_user_comment
0x9290 property_tag_exif_dt_subsec
0x9291 property_tag_exif_dt_orig_ss
0x9292 property_tag_exif_dt_dig_ss
0xA000 property_tag_exif_fpx_ver
0xA001 property_tag_exif_color_space
0xA002 property_tag_exif_pix_x_dim
0xA003 property_tag_exif_pix_y_dim
0xA004 property_tag_exif_related_wav
0xA005 property_tag_exif_interop
0xA20B property_tag_exif_flash_energy
0xA20C property_tag_exif_spatial_fr
0xA20E property_tag_exif_focal_x_res
0xA20F property_tag_exif_focal_y_res
0xA210 property_tag_exif_focal_res_unit
0xA214 property_tag_exif_dubject_loc
0xA215 property_tag_exif_exposure_index
0xA217 property_tag_exif_sensing_method
0xA300 property_tag_exif_file_Source
0xA301 property_tag_exif_scene_type
0xA302 property_tag_exif_cfa_pattern

◆ len() [1/2]

int32 xtd::drawing::imaging::property_item::len ( ) const
inlinenoexcept

Gets the length (in bytes) of the value property.

Returns
An integer that represents the length (in bytes) of the value byte array.

◆ len() [2/2]

void xtd::drawing::imaging::property_item::len ( int32  len)
inlinenoexcept

Sets the length (in bytes) of the value property. &param len An integer that represents the length (in bytes) of the value byte array.

◆ type() [1/2]

int16 xtd::drawing::imaging::property_item::type ( ) const
inlinenoexcept

Gets an integer that defines the type of data contained in the value property.

Returns
An integer that defines the type of data contained in value.
Remarks
The following table shows integers and the types they represent.
Integer Represented Type
1 Specifies that Value is an array of bytes.
2 Specifies that Value is a null-terminated ASCII string. If you set the type data member to ASCII type, you should set the Len property to the length of the string including the null terminator. For example, the string "Hello" would have a length of 6.
3 Specifies that Value is an array of unsigned short (16-bit) integers.
4 Specifies that Value is an array of unsigned long (32-bit) integers.
5 Specifies that Value data member is an array of pairs of unsigned long integers. Each pair represents a fraction; the first integer is the numerator and the second integer is the denominator.
6 Specifies that Value is an array of bytes that can hold values of any data type.
7 Specifies that Value is an array of signed long (32-bit) integers.
10 Specifies that Value is an array of pairs of signed long integers. Each pair represents a fraction; the first integer is the numerator and the second integer is the denominator.

◆ type() [2/2]

void xtd::drawing::imaging::property_item::type ( int16  type)
inlinenoexcept

Sets an integer that defines the type of data contained in the value property.

Parameters
typeAn integer that defines the type of data contained in value.
Remarks
The following table shows integers and the types they represent.
Integer Represented Type
1 Specifies that Value is an array of bytes.
2 Specifies that Value is a null-terminated ASCII string. If you set the type data member to ASCII type, you should set the Len property to the length of the string including the null terminator. For example, the string "Hello" would have a length of 6.
3 Specifies that Value is an array of unsigned short (16-bit) integers.
4 Specifies that Value is an array of unsigned long (32-bit) integers.
5 Specifies that Value data member is an array of pairs of unsigned long integers. Each pair represents a fraction; the first integer is the numerator and the second integer is the denominator.
6 Specifies that Value is an array of bytes that can hold values of any data type.
7 Specifies that Value is an array of signed long (32-bit) integers.
10 Specifies that Value is an array of pairs of signed long integers. Each pair represents a fraction; the first integer is the numerator and the second integer is the denominator.

◆ value() [1/3]

const std::vector< xtd::byte > & xtd::drawing::imaging::property_item::value ( ) const
inlinenoexcept

Gets the value of the property item.

Returns
A byte array that represents the value of the property item.
Remarks
The byte array returned by the Value property contains data in one of several different primitive types. To use the data, determine the data type using the type property and convert the byte array accordingly.

◆ value() [2/3]

std::vector< xtd::byte > & xtd::drawing::imaging::property_item::value ( )
inlinenoexcept

Gets the value of the property item.

Returns
A byte array that represents the value of the property item.
Remarks
The byte array returned by the Value property contains data in one of several different primitive types. To use the data, determine the data type using the type property and convert the byte array accordingly.

◆ value() [3/3]

void xtd::drawing::imaging::property_item::value ( const std::vector< xtd::byte > &  value)
inlinenoexcept

Sets the value of the property item.

Parameters
valueA byte array that represents the value of the property item.
Remarks
The byte array returned by the Value property contains data in one of several different primitive types. To use the data, determine the data type using the type property and convert the byte array accordingly.

◆ equals() [1/2]

virtual bool xtd::object::equals ( const object obj) const
virtualnoexcept

Determines whether the specified object is equal to the current object.

Parameters
objThe object to compare with the current object.
Returns
true if the specified object is equal to the current object. otherwise, false.
Examples
The following code example compares the current instance with another object.
#include <xtd/console>
using namespace xtd;
auto main() -> int {
auto object1 = new_ptr<object>();
auto object2 = new_ptr<object>();
auto object3 = object2;
console::write_line(object1->equals(*object3));
console::write_line(*object1 == *object3);
object3 = object1;
console::write_line(object1->equals(*object3));
console::write_line(*object1 == *object3);
}
// This code produces the following output :
//
// false
// false
// true
// true
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10

Reimplemented from xtd::object.

◆ equals() [2/2]

template<typename object_a_t , typename object_b_t >
static bool xtd::object::equals ( const object_a_t &  object_a,
const object_b_t &  object_b 
)
inlinestaticnoexcept

Determines whether the specified object instances are considered equal.

Parameters
object_aThe first object to compare.
object_bThe second object to compare.
Returns
true if object_a is the same instance as object_b or if both are null references or if object_a(object_b) returns true. otherwise, false.
Examples
The following code example compares different objects.
#include <xtd/console>
using namespace xtd;
auto main() -> int {
string s1 = "Tom";
string s2 = "Carol";
console::write_line("object::equals(\"{0}\", \"{1}\") => {2}", s1, s2, object::equals(s1, s2));
s1 = "Tom";
s2 = "Tom";
console::write_line("object::equals(\"{0}\", \"{1}\") => {2}", s1, s2, object::equals(s1, s2));
s1 = "";
s2 = "Tom";
console::write_line("object::equals(\"{0}\", \"{1}\") => {2}", s1, s2, object::equals(s1, s2));
s1 = "Carol";
s2 = "";
console::write_line("object::equals(\"{0}\", \"{1}\") => {2}", s1, s2, object::equals(s1, s2));
s1 = "";
s2 = "";
console::write_line("object::equals(\"{0}\", \"{1}\") => {2}", s1, s2, object::equals(s1, s2));
}
// This code produces the following output :
//
// object::equals("Tom", "Carol") => false
// object::equals("Tom", "Tom") => true
// object::equals("", "Tom") => false
// object::equals("Carol", "") => false
// object::equals("", "") => true
virtual bool equals(const object &obj) const noexcept
Determines whether the specified object is equal to the current object.

The documentation for this class was generated from the following file: