ImageAttributes.SetColorMatrices Metod

Definition

Anger färgjusteringsmatrisen och matrisen för gråskalejustering.

Överlagringar

Name Description
SetColorMatrices(ColorMatrix, ColorMatrix)

Anger färgjusteringsmatrisen och matrisen grayscale-adjustment för standardkategorin.

SetColorMatrices(ColorMatrix, ColorMatrix, ColorMatrixFlag)

Anger färgjusteringsmatrisen och matrisen grayscale-adjustment för standardkategorin.

SetColorMatrices(ColorMatrix, ColorMatrix, ColorMatrixFlag, ColorAdjustType)

Anger färgjusteringsmatrisen och matrisen för gråskalejustering för en angiven kategori.

SetColorMatrices(ColorMatrix, ColorMatrix)

Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs

Anger färgjusteringsmatrisen och matrisen grayscale-adjustment för standardkategorin.

public:
 void SetColorMatrices(System::Drawing::Imaging::ColorMatrix ^ newColorMatrix, System::Drawing::Imaging::ColorMatrix ^ grayMatrix);
public void SetColorMatrices(System.Drawing.Imaging.ColorMatrix newColorMatrix, System.Drawing.Imaging.ColorMatrix? grayMatrix);
public void SetColorMatrices(System.Drawing.Imaging.ColorMatrix newColorMatrix, System.Drawing.Imaging.ColorMatrix grayMatrix);
member this.SetColorMatrices : System.Drawing.Imaging.ColorMatrix * System.Drawing.Imaging.ColorMatrix -> unit
Public Sub SetColorMatrices (newColorMatrix As ColorMatrix, grayMatrix As ColorMatrix)

Parametrar

newColorMatrix
ColorMatrix

Färgjusteringsmatrisen.

grayMatrix
ColorMatrix

Matrisen för gråskalejustering.

Kommentarer

Ett ImageAttributes objekt har färg- och gråskaleinställningar för fem justeringskategorier: standard, bitmapp, pensel, penna och text. Du kan till exempel ange justeringsmatriser för standardkategorin, olika justeringsmatriser för bitmappskategorin och fortfarande olika justeringsmatriser för pennkategorin.

Standardinställningarna för färgjustering och gråskalejustering gäller för alla kategorier som inte har egna justeringsinställningar. Om du till exempel aldrig anger några justeringsinställningar för pennkategorin gäller standardinställningarna för pennkategorin.

ImageAttributes.SetColorMatrices(ColorMatrix, ColorMatrix) Att anropa metoden motsvarar att anropa ImageAttributes.SetColorMatrices(ColorMatrix, ColorMatrix, ColorMatrixFlag) metoden och skicka ColorMatrixFlag.Default för parameternflags. ColorMatrixFlag.Default anger att alla färger (inklusive gråtoner) justeras av färgjusteringsmatrisen, inte matrisen för justering av gråskala. Därför har den gråskalejusteringsmatris som skickas till den här metoden ingen effekt.

Gäller för

SetColorMatrices(ColorMatrix, ColorMatrix, ColorMatrixFlag)

Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs

Anger färgjusteringsmatrisen och matrisen grayscale-adjustment för standardkategorin.

public:
 void SetColorMatrices(System::Drawing::Imaging::ColorMatrix ^ newColorMatrix, System::Drawing::Imaging::ColorMatrix ^ grayMatrix, System::Drawing::Imaging::ColorMatrixFlag flags);
public void SetColorMatrices(System.Drawing.Imaging.ColorMatrix newColorMatrix, System.Drawing.Imaging.ColorMatrix? grayMatrix, System.Drawing.Imaging.ColorMatrixFlag flags);
public void SetColorMatrices(System.Drawing.Imaging.ColorMatrix newColorMatrix, System.Drawing.Imaging.ColorMatrix grayMatrix, System.Drawing.Imaging.ColorMatrixFlag flags);
member this.SetColorMatrices : System.Drawing.Imaging.ColorMatrix * System.Drawing.Imaging.ColorMatrix * System.Drawing.Imaging.ColorMatrixFlag -> unit
Public Sub SetColorMatrices (newColorMatrix As ColorMatrix, grayMatrix As ColorMatrix, flags As ColorMatrixFlag)

Parametrar

newColorMatrix
ColorMatrix

Färgjusteringsmatrisen.

grayMatrix
ColorMatrix

Matrisen för gråskalejustering.

flags
ColorMatrixFlag

Ett element som ColorMatrixFlag anger vilken typ av bild och färg som påverkas av färgjusteringen och matriserna för gråskalejustering.

Kommentarer

Ett ImageAttributes objekt har färg- och gråskaleinställningar för fem justeringskategorier: standard, bitmapp, pensel, penna och text. Du kan till exempel ange justeringsmatriser för standardkategorin, olika justeringsmatriser för bitmappskategorin och fortfarande olika justeringsmatriser för pennkategorin.

Standardinställningarna för färgjustering och gråskalejustering gäller för alla kategorier som inte har egna justeringsinställningar. Om du till exempel aldrig anger några justeringsinställningar för pennkategorin gäller standardinställningarna för pennkategorin.

Gäller för

SetColorMatrices(ColorMatrix, ColorMatrix, ColorMatrixFlag, ColorAdjustType)

Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs
Källa:
ImageAttributes.cs

Anger färgjusteringsmatrisen och matrisen för gråskalejustering för en angiven kategori.

public:
 void SetColorMatrices(System::Drawing::Imaging::ColorMatrix ^ newColorMatrix, System::Drawing::Imaging::ColorMatrix ^ grayMatrix, System::Drawing::Imaging::ColorMatrixFlag mode, System::Drawing::Imaging::ColorAdjustType type);
public void SetColorMatrices(System.Drawing.Imaging.ColorMatrix newColorMatrix, System.Drawing.Imaging.ColorMatrix? grayMatrix, System.Drawing.Imaging.ColorMatrixFlag mode, System.Drawing.Imaging.ColorAdjustType type);
public void SetColorMatrices(System.Drawing.Imaging.ColorMatrix newColorMatrix, System.Drawing.Imaging.ColorMatrix grayMatrix, System.Drawing.Imaging.ColorMatrixFlag mode, System.Drawing.Imaging.ColorAdjustType type);
member this.SetColorMatrices : System.Drawing.Imaging.ColorMatrix * System.Drawing.Imaging.ColorMatrix * System.Drawing.Imaging.ColorMatrixFlag * System.Drawing.Imaging.ColorAdjustType -> unit
Public Sub SetColorMatrices (newColorMatrix As ColorMatrix, grayMatrix As ColorMatrix, mode As ColorMatrixFlag, type As ColorAdjustType)

Parametrar

newColorMatrix
ColorMatrix

Färgjusteringsmatrisen.

grayMatrix
ColorMatrix

Matrisen för gråskalejustering.

mode
ColorMatrixFlag

Ett element som ColorMatrixFlag anger vilken typ av bild och färg som påverkas av färgjusteringen och matriserna för gråskalejustering.

type
ColorAdjustType

Ett element i ColorAdjustType som anger den kategori för vilken matriserna färgjustering och gråskalejustering anges.

Kommentarer

Ett ImageAttributes objekt har färg- och gråskaleinställningar för fem justeringskategorier: standard, bitmapp, pensel, penna och text. Du kan till exempel ange justeringsmatriser för standardkategorin, olika justeringsmatriser för bitmappskategorin och fortfarande olika justeringsmatriser för pennkategorin.

Standardinställningarna för färgjustering och gråskalejustering gäller för alla kategorier som inte har egna justeringsinställningar. Om du till exempel aldrig anger några justeringsinställningar för pennkategorin gäller standardinställningarna för pennkategorin.

Så snart du anger en inställning för färgjustering eller gråskalejustering för en viss kategori gäller standardjusteringsinställningarna inte längre för den kategorin. Anta till exempel att du anger en samling justeringsinställningar för standardkategorin. Om du anger matriser för färgjustering och gråskalejustering för pennkategorin genom att skicka Pen till SetColorMatrices metoden gäller ingen av standardjusteringsinställningarna för pennor.

Gäller för