|
Dieser Artikel wurde maschinell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen. Weitere Informationen
|
Übersetzung
Original
|
ImageAttributes-Klasse
Namespace: System.Drawing.Imaging
Assembly: System.Drawing (in System.Drawing.dll)
Der ImageAttributes-Typ macht die folgenden Member verfügbar.
| Name | Beschreibung | |
|---|---|---|
![]() | ImageAttributes |
| Name | Beschreibung | |
|---|---|---|
![]() | ClearBrushRemapTable | |
![]() | ClearColorKey() | |
![]() | ClearColorKey(ColorAdjustType) | |
![]() | ClearColorMatrix() | |
![]() | ClearColorMatrix(ColorAdjustType) | |
![]() | ClearGamma() | |
![]() | ClearGamma(ColorAdjustType) | |
![]() | ClearNoOp() | |
![]() | ClearNoOp(ColorAdjustType) | |
![]() | ClearOutputChannel() | |
![]() | ClearOutputChannel(ColorAdjustType) | |
![]() | ClearOutputChannelColorProfile() | |
![]() | ClearOutputChannelColorProfile(ColorAdjustType) | |
![]() | ClearRemapTable() | |
![]() | ClearRemapTable(ColorAdjustType) | |
![]() | ClearThreshold() | |
![]() | ClearThreshold(ColorAdjustType) | |
![]() | Clone | |
![]() | Dispose | |
![]() | Equals(Object) | |
![]() | GetAdjustedPalette | |
![]() | GetHashCode | |
![]() | GetType | |
![]() | SetBrushRemapTable | |
![]() | SetColorKey(Color, Color) | |
![]() | SetColorKey(Color, Color, ColorAdjustType) | |
![]() | SetColorMatrices(ColorMatrix, ColorMatrix) | |
![]() | SetColorMatrices(ColorMatrix, ColorMatrix, ColorMatrixFlag) | |
![]() | SetColorMatrices(ColorMatrix, ColorMatrix, ColorMatrixFlag, ColorAdjustType) | |
![]() | SetColorMatrix(ColorMatrix) | |
![]() | SetColorMatrix(ColorMatrix, ColorMatrixFlag) | |
![]() | SetColorMatrix(ColorMatrix, ColorMatrixFlag, ColorAdjustType) | |
![]() | SetGamma(Single) | |
![]() | SetGamma(Single, ColorAdjustType) | |
![]() | SetNoOp() | |
![]() | SetNoOp(ColorAdjustType) | |
![]() | SetOutputChannel(ColorChannelFlag) | |
![]() | SetOutputChannel(ColorChannelFlag, ColorAdjustType) | |
![]() | SetOutputChannelColorProfile(String) | |
![]() | SetOutputChannelColorProfile(String, ColorAdjustType) | |
![]() | SetRemapTable(ColorMap[]) | |
![]() | SetRemapTable(ColorMap[], ColorAdjustType) | |
![]() | SetThreshold(Single) | |
![]() | SetThreshold(Single, ColorAdjustType) | |
![]() | SetWrapMode(WrapMode) | |
![]() | SetWrapMode(WrapMode, Color) | |
![]() | SetWrapMode(WrapMode, Color, Boolean) | |
![]() | ToString |

Initialisieren eines ColorMatrix-Objekts. Erstellen eines ImageAttributes-Objekts und Übergeben des ColorMatrix-Objekts an die SetColorMatrix-Methode des ImageAttributes-Objekts. Übergeben des ImageAttributes-Objekts an die DrawImage-Methode eines Graphics-Objekts.
Image image = new Bitmap("InputColor.bmp"); ImageAttributes imageAttributes = new ImageAttributes(); int width = image.Width; int height = image.Height; float[][] colorMatrixElements = { new float[] {2, 0, 0, 0, 0}, // red scaling factor of 2 new float[] {0, 1, 0, 0, 0}, // green scaling factor of 1 new float[] {0, 0, 1, 0, 0}, // blue scaling factor of 1 new float[] {0, 0, 0, 1, 0}, // alpha scaling factor of 1 new float[] {.2f, .2f, .2f, 0, 1}}; // three translations of 0.2 ColorMatrix colorMatrix = new ColorMatrix(colorMatrixElements); imageAttributes.SetColorMatrix( colorMatrix, ColorMatrixFlag.Default, ColorAdjustType.Bitmap); e.Graphics.DrawImage(image, 10, 10); e.Graphics.DrawImage( image, new Rectangle(120, 10, width, height), // destination rectangle 0, 0, // upper-left corner of source rectangle width, // width of source rectangle height, // height of source rectangle GraphicsUnit.Pixel, imageAttributes);
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core-Rolle wird nicht unterstützt), Windows Server 2008 R2 (Server Core-Rolle wird mit SP1 oder höher unterstützt; Itanium wird nicht unterstützt)
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.
