ColorConvertedBitmap::BeginInit Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Signals the start of the ColorConvertedBitmap initialization.

Namespace:   System.Windows.Media.Imaging
Assembly:  PresentationCore (in PresentationCore.dll)

public:
virtual void BeginInit() sealed

Exception Condition
InvalidOperationException

The ColorConvertedBitmap is currently being initialized. BeginInit has already been called.

-or-

The ColorConvertedBitmap has already been initialized.

Property initialization must be done between BeginInit and EndInit calls. After the ColorConvertedBitmap has been initialized, property changes are ignored.

The following example demonstrates how to initialize a ColorConvertedBitmap with a set of properties by using the BeginInit and EndInit methods.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: