Class ColorPalette

Class ColorPalette

이름 공간 : Aspose.Imaging 모임: Aspose.Imaging.dll (25.4.0)

색상 패널을 구성하는 색상의 범위를 정의합니다. 색상은 32 비트 ARGB 색상입니다.

[JsonObject(MemberSerialization.OptIn)]
public sealed class ColorPalette : IColorPalette

Inheritance

object ColorPalette

Implements

IColorPalette

상속 회원들

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

ColorPalette(이트[ ] [ [ ], 바울)

Aspose.Imaging.ColorPalette 클래스의 새로운 사례를 시작합니다.

[JsonConstructor]
public ColorPalette(int[] argb32Entries, bool isCompactPalette)

Parameters

argb32Entries int [ ] [ [ ]

32비트 ARGB 색상 패널이 입력됩니다.

isCompactPalette bool

그것이 패널을 컴팩트하는지 여부를 나타냅니다.

ColorPalette(이트[])

Aspose.Imaging.ColorPalette 클래스와 IsCompactPalette의 새로운 사례를 시작하는 것은 거짓입니다.

public ColorPalette(int[] argb32Entries)

Parameters

argb32Entries int [ ] [ [ ]

32비트 ARGB 색상 패널이 입력됩니다.

ColorPalette(Color[ ] [ [ ], 바울)

Aspose.Imaging.ColorPalette 클래스의 새로운 사례를 시작합니다.

public ColorPalette(Color[] entries, bool isCompactPalette)

Parameters

entries Color [ ] [ [ ]

색상 패널이 들어갑니다.

isCompactPalette bool

그것이 패널을 컴팩트하는지 여부를 나타냅니다.

ColorPalette(Color[])

Aspose.Imaging.ColorPalette 클래스와 IsCompactPalette의 새로운 사례를 시작하는 것은 거짓입니다.

public ColorPalette(Color[] entries)

Parameters

entries Color [ ] [ [ ]

색상 패널이 들어갑니다.

Properties

Argb32Entries

32비트 ARGB 구조를 제공합니다.

public int[] Argb32Entries { get; }

부동산 가치

int [ ] [ [ ]

Entries

그것은 Aspose.Imaging.Color 구조의 일련을 얻습니다.

public Color[] Entries { get; }

부동산 가치

Color [ ] [ [ ]

EntriesCount

입구를 계산할 수 있습니다.

public int EntriesCount { get; }

부동산 가치

int

IsCompactPalette

컴팩트 팔레트가 사용되는지 여부를 나타내는 값을 얻거나 설정합니다.

public bool IsCompactPalette { get; }

부동산 가치

bool

Remarks

컴팩트 팔레트는 이미지가 가능한 경우에만 지정된 팔레트 입력을 포함하거나 다른 말로 하면 이미지가 더 컴팩트하고 공간을 덜 차지한다는 것을 의미합니다.그렇지 않으면 2^bitPerPixel 입력이있을 것이며 이미지는 가능한 모든 팔레트 입력에 더 많은 공간을 예약합니다.이 값을 진짜로 설정하고 팔레트 입력을 변경하면 데이터 움직임이 발생할 수 있기 때문에 성과 벌금을 일으킬 수 있으므로 신중하게 사용하십시오.

Methods

CopyPalette(바이올린, 바이올린)

팔레트를 복사합니다.

public static ColorPalette CopyPalette(IColorPalette colorPalette, bool useCompactPalette)

Parameters

colorPalette IColorPalette

색상 팔레트

useCompactPalette bool

컴팩트한 패널인지 여부를 지정합니다.

Returns

ColorPalette

새로 만든 및 복사 된 팔레트 또는 null null 팔레트가 통과되면.

CopyPalette(아이콜라 패널)

팔레트를 복사합니다.

public static ColorPalette CopyPalette(IColorPalette colorPalette)

Parameters

colorPalette IColorPalette

색상 팔레트

Returns

ColorPalette

새로 만든 및 복사 된 팔레트 또는 null null 팔레트가 통과되면.

GetArgb32Color(이트)

인덱스에 따라 32비트 ARGB 팔레트 색상을 얻습니다.

public int GetArgb32Color(int index)

Parameters

index int

32비트 ARGB 패널 색상 인덱스

Returns

int

색상 패널 입력은 index"에 의해 지정됩니다.

Exceptions

ArgumentOutOfRangeException

색상 팔레트 index’ 지정된 경우 팔레트 입력 범위에서 나옵니다.

GetColor(이트)

패널 색상은 인덱스에 따라 표시됩니다.

public Color GetColor(int index)

Parameters

index int

팔레트 색상 인덱스

Returns

Color

색상 패널 입력은 index"에 의해 지정됩니다.

Exceptions

ArgumentOutOfRangeException

색상 팔레트 index’ 지정된 경우 팔레트 입력 범위에서 나옵니다.

GetNearestColorIndex(이트)

가장 가까운 색깔의 인덱스를 얻습니다.

public int GetNearestColorIndex(int argb32Color)

Parameters

argb32Color int

32비트 ARGB 색상

Returns

int

가장 가까운 색상 인덱스입니다.

GetNearestColorIndex(Color)

가장 가까운 색깔의 인덱스를 얻습니다.

public int GetNearestColorIndex(Color color)

Parameters

color Color

그 색깔을

Returns

int

가장 가까운 색상 인덱스입니다.

 한국어