ColorConvertedBitmap.EndInit Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Geeft het einde van de ColorConvertedBitmap initialisatie aan.
public:
virtual void EndInit();
[System.Security.SecurityCritical]
public void EndInit();
public void EndInit();
[<System.Security.SecurityCritical>]
abstract member EndInit : unit -> unit
override this.EndInit : unit -> unit
abstract member EndInit : unit -> unit
override this.EndInit : unit -> unit
Public Sub EndInit ()
Implementeringen
- Kenmerken
Uitzonderingen
De Sourceeigenschap , SourceColorContextof DestinationColorContext eigenschap is null.
– of –
De EndInit() methode wordt aangeroepen zonder eerst aan te roepen BeginInit().
Voorbeelden
In het volgende voorbeeld ziet u hoe u de EndInit methode gebruikt om de eigenschappen van een ColorConvertedBitmap.
ColorConvertedBitmap myColorConvertedBitmap = new ColorConvertedBitmap();
myColorConvertedBitmap.BeginInit();
myColorConvertedBitmap.SourceColorContext = myBitmapSourceFrame2.ColorContexts[0];
myColorConvertedBitmap.Source = myBitmapSource2;
myColorConvertedBitmap.DestinationFormat = PixelFormats.Pbgra32;
myColorConvertedBitmap.DestinationColorContext = new ColorContext(PixelFormats.Bgra32);
myColorConvertedBitmap.EndInit();
Dim myColorConvertedBitmap As New ColorConvertedBitmap()
myColorConvertedBitmap.BeginInit()
myColorConvertedBitmap.SourceColorContext = myBitmapSourceFrame2.ColorContexts(0)
myColorConvertedBitmap.Source = myBitmapSource2
myColorConvertedBitmap.DestinationFormat = PixelFormats.Pbgra32
myColorConvertedBitmap.DestinationColorContext = New ColorContext(PixelFormats.Bgra32)
myColorConvertedBitmap.EndInit()
Opmerkingen
Initialisatie van eigenschappen moet worden uitgevoerd tussen BeginInit en EndInit aanroepen. Nadat de ColorConvertedBitmap eigenschap is geïnitialiseerd, worden eigenschapswijzigingen genegeerd.