System::Drawing::ImageFormatConverter klass

ImageFormatConverter class

Konverterar ImageFormat-objekt från en datatyp till en annan. Objekt av denna klass bör endast allokeras med hjälp av funktionen System::MakeObject(). Skapa aldrig en instans av denna typ på stacken eller med operatorn new, eftersom det kan leda till körfel och/eller påståendefel. Omslut alltid denna klass i en System::SmartPtr-pekare och använd pekaren för att skicka den till funktioner som argument.

class ImageFormatConverter : public System::ComponentModel::TypeConverter

Metoder

MetodBeskrivning
ConvertFrom(const SharedPtr<ComponentModel::ITypeDescriptorContext>&, const SharedPtr<Globalization::CultureInfo>&, const SharedPtr<Object>&) overrideKonverterar objekt.
ConvertFrom(const System::SharedPtr<System::Object>&)Konverterar objekt.
virtual ConvertFrom(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&)Konverterar objekt.
ConvertFrom(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::String&)Konverterar sträng till objekt.
ConvertTo(const SharedPtr<ComponentModel::ITypeDescriptorContext>&, const SharedPtr<Globalization::CultureInfo>&, const SharedPtr<Object>&, const TypeInfo&) overrideKonverterar objekt till en specifik typ.
ConvertTo(const System::SharedPtr<System::Object>&, const System::TypeInfo&)Konverterar objekt till en specifik typ.
virtual ConvertTo(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&, const System::TypeInfo&)Konverterar objekt till en specifik typ.
ImageFormatConverter()Skapar en ny instans av ImageFormatConverter.

Se även