CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
image_format_converter.h
1
2#pragma once
3
4#include <system/component_model/type_converter.h>
5
6namespace System { namespace Drawing {
7
12class ASPOSECPP_SHARED_CLASS ImageFormatConverter : public ComponentModel::TypeConverter
13{
16
17 ASPOSECPP_SHARED_RTTI_INFO_DECL();
18
19public:
22
24 ASPOSECPP_SHARED_API ImageFormatConverter();
25
31 ASPOSECPP_SHARED_API SharedPtr<Object> ConvertFrom(
34 const SharedPtr<Object>& value) override;
35
42 ASPOSECPP_SHARED_API SharedPtr<Object> ConvertTo(
45 const SharedPtr<Object>& value,
46 const TypeInfo& destinationType) override;
47};
48
49}} // namespace System::Drawing
Class that handles type conversion in component model. Objects of this class should only be allocated...
Definition: type_converter.h:18
System::SharedPtr< System::Object > ConvertFrom(const System::SharedPtr< System::Object > &value)
Converts objects.
System::SharedPtr< System::Object > ConvertTo(const System::SharedPtr< System::Object > &value, const System::TypeInfo &destinationType)
Converts object to specific type.
Converts ImageFormat objects from one data type to another. Objects of this class should only be allo...
Definition: image_format_converter.h:13
SharedPtr< Object > ConvertTo(const SharedPtr< ComponentModel::ITypeDescriptorContext > &context, const SharedPtr< Globalization::CultureInfo > &culture, const SharedPtr< Object > &value, const TypeInfo &destinationType) override
Converts object to specific type.
SharedPtr< Object > ConvertFrom(const SharedPtr< ComponentModel::ITypeDescriptorContext > &context, const SharedPtr< Globalization::CultureInfo > &culture, const SharedPtr< Object > &value) override
Converts objects.
ImageFormatConverter()
Constructs a new instance of ImageFormatConverter.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Represents a particular type and provides information about it.
Definition: type_info.h:109
Definition: db_command.h:9