فئة ColorPalette
Summary: Defines an array of colors that make up a color palette. The colors are 32-bit ARGB colors. Not inheritable.
Module: aspose.imaging
Full Name: aspose.imaging.ColorPalette
Inheritance: IColorPalette
Constructors
| Name | الوصف |
|---|---|
| ColorPalette(argb_32_entries) | ينشئ مثيلًا جديدًا من الفئة ColorPalette وتكون الخاصية IsCompactPalette خاطئة. |
| ColorPalette(argb_32_entries, is_compact_palette) | ينشئ مثيلًا جديدًا من الفئة ColorPalette. |
| ColorPalette(entries) | ينشئ مثيلًا جديدًا من الفئة ColorPalette وتكون الخاصية IsCompactPalette خاطئة. |
| ColorPalette(entries, is_compact_palette) | ينشئ مثيلًا جديدًا من الفئة ColorPalette. |
Properties
| Name | Type | Access | الوصف |
|---|---|---|---|
| argb_32_entries | int[] | r | يحصل على مصفوفة من هياكل ARGB 32-بت. |
| entries | Color[] | r | يحصل على مصفوفة من هياكل Color. |
| entries_count | int | r | يحصل على عدد الإدخالات. |
| is_compact_palette | bool | r | يحصل أو يضبط قيمة تشير إلى ما إذا كانت لوحة الألوان المدمجة مستخدمة. |
Methods
| Name | الوصف |
|---|---|
| copy_palette(color_palette) | ينسخ لوحة الألوان. |
| copy_palette(color_palette, use_compact_palette) | ينسخ لوحة الألوان. |
| create_with_argb(argb_32_entries) | ينشئ مثيلًا جديدًا من الفئة ColorPalette وتكون الخاصية IsCompactPalette خاطئة. |
| create_with_argb_compact(argb_32_entries, is_compact_palette) | ينشئ مثيلًا جديدًا من الفئة ColorPalette. |
| create_with_colors(entries) | ينشئ مثيلًا جديدًا من الفئة ColorPalette وتكون الخاصية IsCompactPalette خاطئة. |
| create_with_colors_compact(entries, is_compact_palette) | ينشئ مثيلًا جديدًا من الفئة ColorPalette. |
| get_argb_32_color(index) | يحصل على لون لوحة الألوان ARGB 32-بت حسب الفهرس. |
| get_color(index) | يحصل على لون لوحة الألوان حسب الفهرس. |
| get_nearest_argb_index(argb_32_color) | يحصل على فهرس أقرب لون. |
| get_nearest_color_index(argb_32_color) | يحصل على فهرس أقرب لون. |
| get_nearest_color_index(color) | يحصل على فهرس أقرب لون. |
Constructor: ColorPalette(argb_32_entries)
ColorPalette(argb_32_entries)
ينشئ مثيلًا جديدًا من الفئة ColorPalette وتكون الخاصية IsCompactPalette خاطئة.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| argb_32_entries | int[] | إدخالات لوحة ألوان ARGB 32‑بت. |
Constructor: ColorPalette(argb_32_entries, is_compact_palette)
ColorPalette(argb_32_entries, is_compact_palette)
ينشئ مثيلًا جديدًا من الفئة ColorPalette.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| argb_32_entries | int[] | إدخالات لوحة ألوان ARGB 32‑بت. |
| is_compact_palette | bool | الإشارة إلى ما إذا كانت لوحة الألوان مدمجة. |
Constructor: ColorPalette(entries)
ColorPalette(entries)
ينشئ مثيلًا جديدًا من الفئة ColorPalette وتكون الخاصية IsCompactPalette خاطئة.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| entries | Color[] |
Constructor: ColorPalette(entries, is_compact_palette)
ColorPalette(entries, is_compact_palette)
ينشئ مثيلًا جديدًا من الفئة ColorPalette.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| entries | Color[] | |
| is_compact_palette | bool | الإشارة إلى ما إذا كانت لوحة الألوان مدمجة. |
Method: copy_palette(color_palette) [static]
copy_palette(color_palette)
ينسخ لوحة الألوان.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| color_palette | IColorPalette | لوحة الألوان. |
Returns
| نوع | الوصف |
|---|---|
| ColorPalette | لوحة الألوان التي تم إنشاؤها ونسخها حديثًا أو null إذا تم تمرير لوحة ألوان null. |
Method: copy_palette(color_palette, use_compact_palette) [static]
copy_palette(color_palette, use_compact_palette)
ينسخ لوحة الألوان.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| color_palette | IColorPalette | لوحة الألوان. |
| use_compact_palette | bool | الإشارة إلى ما إذا كانت لوحة الألوان مدمجة. |
Returns
| نوع | الوصف |
|---|---|
| ColorPalette | لوحة الألوان التي تم إنشاؤها ونسخها حديثًا أو null إذا تم تمرير لوحة ألوان null. |
Method: create_with_argb(argb_32_entries) [static]
create_with_argb(argb_32_entries)
ينشئ مثيلًا جديدًا من الفئة ColorPalette وتكون الخاصية IsCompactPalette خاطئة.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| argb_32_entries | int[] | إدخالات لوحة ألوان ARGB 32‑بت. |
Returns
| نوع | الوصف |
|---|---|
| ColorPalette |
Method: create_with_argb_compact(argb_32_entries, is_compact_palette) [static]
create_with_argb_compact(argb_32_entries, is_compact_palette)
ينشئ مثيلًا جديدًا من الفئة ColorPalette.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| argb_32_entries | int[] | إدخالات لوحة ألوان ARGB 32‑بت. |
| is_compact_palette | bool | الإشارة إلى ما إذا كانت لوحة الألوان مدمجة. |
Returns
| نوع | الوصف |
|---|---|
| ColorPalette |
Method: create_with_colors(entries) [static]
create_with_colors(entries)
ينشئ مثيلًا جديدًا من الفئة ColorPalette وتكون الخاصية IsCompactPalette خاطئة.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| entries | Color[] | إدخالات لوحة الألوان. |
Returns
| نوع | الوصف |
|---|---|
| ColorPalette |
Method: create_with_colors_compact(entries, is_compact_palette) [static]
create_with_colors_compact(entries, is_compact_palette)
ينشئ مثيلًا جديدًا من الفئة ColorPalette.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| entries | Color[] | إدخالات لوحة الألوان. |
| is_compact_palette | bool | الإشارة إلى ما إذا كانت لوحة الألوان مدمجة. |
Returns
| نوع | الوصف |
|---|---|
| ColorPalette |
Method: get_argb_32_color(index)
get_argb_32_color(index)
يحصل على لون لوحة الألوان ARGB 32-بت حسب الفهرس.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| index | int | فهرس لون لوحة ARGB 32‑بت. |
Returns
| نوع | الوصف |
|---|---|
| int | إدخال لوحة الألوان المحدد بواسطة index. |
Method: get_color(index)
get_color(index)
يحصل على لون لوحة الألوان حسب الفهرس.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| index | int | فهرس لون لوحة الألوان. |
Returns
| نوع | الوصف |
|---|---|
| Color | إدخال لوحة الألوان المحدد بواسطة index. |
Method: get_nearest_argb_index(argb_32_color)
get_nearest_argb_index(argb_32_color)
يحصل على فهرس أقرب لون.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| argb_32_color | int | لون ARGB 32‑بت. |
Returns
| نوع | الوصف |
|---|---|
| int | فهرس أقرب لون. |
Method: get_nearest_color_index(argb_32_color)
get_nearest_color_index(argb_32_color)
يحصل على فهرس أقرب لون.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| argb_32_color | int | لون ARGB 32‑بت. |
Returns
| نوع | الوصف |
|---|---|
| int | فهرس أقرب لون. |
Method: get_nearest_color_index(color)
get_nearest_color_index(color)
يحصل على فهرس أقرب لون.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| color | Color |
Returns
| نوع | الوصف |
|---|---|
| int | فهرس أقرب لون. |