ColorConvertedBitmap.DestinationFormat Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die de PixelFormat geconverteerde bitmap vertegenwoordigt.

public:
 property System::Windows::Media::PixelFormat DestinationFormat { System::Windows::Media::PixelFormat get(); void set(System::Windows::Media::PixelFormat value); };
public System.Windows.Media.PixelFormat DestinationFormat { get; set; }
member this.DestinationFormat : System.Windows.Media.PixelFormat with get, set
Public Property DestinationFormat As PixelFormat

Waarde van eigenschap

Een exemplaar van PixelFormat.

Voorbeelden

In het volgende voorbeeld ziet u hoe u de waarde van de DestinationFormat eigenschap instelt.

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

Wanneer u eigenschapswijzigingen aanbrengt in een ColorConvertedBitmap, moeten de wijzigingen binnen een BeginInit en EndInit blok worden uitgevoerd.

Informatie over afhankelijkheidseigenschappen

Item Waarde
Id-veld DestinationFormatProperty
Eigenschappen van metagegevens ingesteld op true Geen

Van toepassing op

Zie ook