Taal

ColorContext Constructors

Definitie

Initialiseert een nieuw exemplaar van ColorContext.

Overloads

Name Description
ColorContext(Uri)

Initialiseert een nieuw exemplaar van ColorContext het ICM-kleurenprofiel (International Color Consortium) of Image Color Management (ICM) dat zich op een gegeven locatie Uribevindt.

ColorContext(PixelFormat)

Initialiseert een nieuw exemplaar van ColorContext het standaardkleurprofiel (sRGB of RGB) dat het meest overeenkomt met de opgegeven PixelFormat.

ColorContext(Uri)

Initialiseert een nieuw exemplaar van ColorContext het ICM-kleurenprofiel (International Color Consortium) of Image Color Management (ICM) dat zich op een gegeven locatie Uribevindt.

public:
 ColorContext(Uri ^ profileUri);
public ColorContext(Uri profileUri);
[System.Security.SecurityCritical]
public ColorContext(Uri profileUri);
new System.Windows.Media.ColorContext : Uri -> System.Windows.Media.ColorContext
[<System.Security.SecurityCritical>]
new System.Windows.Media.ColorContext : Uri -> System.Windows.Media.ColorContext
Public Sub New (profileUri As Uri)

Parameters

profileUri
Uri

De Uri locatie van het gewenste kleurprofiel.

Kenmerken

Opmerkingen

Als u een van de niet-ondersteunde kleurprofielen wilt gebruiken, moet u er een installeren en de bijbehorende URI gebruiken om de ColorContext met behulp van de ColorContext constructor te initialiseren.

Van toepassing op

ColorContext(PixelFormat)

Initialiseert een nieuw exemplaar van ColorContext het standaardkleurprofiel (sRGB of RGB) dat het meest overeenkomt met de opgegeven PixelFormat.

public:
 ColorContext(System::Windows::Media::PixelFormat pixelFormat);
[System.Security.SecurityCritical]
public ColorContext(System.Windows.Media.PixelFormat pixelFormat);
public ColorContext(System.Windows.Media.PixelFormat pixelFormat);
[<System.Security.SecurityCritical>]
new System.Windows.Media.ColorContext : System.Windows.Media.PixelFormat -> System.Windows.Media.ColorContext
new System.Windows.Media.ColorContext : System.Windows.Media.PixelFormat -> System.Windows.Media.ColorContext
Public Sub New (pixelFormat As PixelFormat)

Parameters

pixelFormat
PixelFormat

De PixelFormat waaruit de ColorContext is afgeleid.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u een nieuw exemplaar van ColorContext.

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()

Zie ook

Van toepassing op