System::Drawing::ImageFormatConverter::ConvertTo method

ImageFormatConverter::ConvertTo(const SharedPtr<ComponentModel::ITypeDescriptorContext>&, const SharedPtr<Globalization::CultureInfo>&, const SharedPtr<Object>&, const TypeInfo&) method

Converts object to specific type.

SharedPtr<Object> System::Drawing::ImageFormatConverter::ConvertTo(const SharedPtr<ComponentModel::ITypeDescriptorContext> &context, const SharedPtr<Globalization::CultureInfo> &culture, const SharedPtr<Object> &value, const TypeInfo &destinationType) override
ParameterTypeDescription
contextconst SharedPtr<ComponentModel::ITypeDescriptorContext>&Object conversion context information.
cultureconst SharedPtr<Globalization::CultureInfo>&Culture to use when converting objects.
valueconst SharedPtr<Object>&Object to convert.
destinationTypeconst TypeInfo&Type to convert to.

ReturnValue

Converted object.

See Also

ImageFormatConverter::ConvertTo(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&, const System::TypeInfo&) method

Converts object to specific type.

virtual System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertTo(const System::SharedPtr<ITypeDescriptorContext> &context, const System::SharedPtr<System::Globalization::CultureInfo> &culture, const System::SharedPtr<System::Object> &value, const System::TypeInfo &destinationType)
ParameterTypeDescription
contextconst System::SharedPtr<ITypeDescriptorContext>&Object conversion context information.
cultureconst System::SharedPtr<System::Globalization::CultureInfo>&Culture to use when converting objects.
valueconst System::SharedPtr<System::Object>&Object to convert.
destinationTypeconst System::TypeInfo&Type to convert to.

ReturnValue

Converted object.

See Also

ImageFormatConverter::ConvertTo(const System::SharedPtr<System::Object>&, const System::TypeInfo&) method

Converts object to specific type.

System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertTo(const System::SharedPtr<System::Object> &value, const System::TypeInfo &destinationType)
ParameterTypeDescription
valueconst System::SharedPtr<System::Object>&Object to convert.
destinationTypeconst System::TypeInfo&Type to convert to.

ReturnValue

Converted object.

See Also