Color
Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct
All Implemented Interfaces: java.io.Serializable
public class Color extends Struct<Color> implements Serializable
لون البكسل.
المنشئات
| المنشئ | الوصف |
|---|---|
| Color() |
الطرق
| طريقة | الوصف |
|---|---|
| getEmpty() | يحصل على Color فارغ. |
| getTransparent() | يحصل على لون معرف من النظام. |
| getAliceBlue() | يحصل على لون معرف من النظام. |
| getAntiqueWhite() | يحصل على لون معرف من النظام. |
| getAqua() | يحصل على لون معرف من النظام. |
| getAquamarine() | يحصل على لون معرف من النظام. |
| getAzure() | يحصل على لون معرف من النظام. |
| getBeige() | يحصل على لون معرف من النظام. |
| getBisque() | يحصل على لون معرف من النظام. |
| getBlack() | يحصل على لون معرف من النظام. |
| getBlanchedAlmond() | يحصل على لون معرف من النظام. |
| getBlue() | يحصل على لون معرف من النظام. |
| getBlueViolet() | يحصل على لون معرف من النظام. |
| getBrown() | يحصل على لون معرف من النظام. |
| getBurlyWood() | يحصل على لون معرف من النظام. |
| getCadetBlue() | يحصل على لون معرف من النظام. |
| getChartreuse() | يحصل على لون معرف من النظام. |
| getChocolate() | يحصل على لون معرف من النظام. |
| getCoral() | يحصل على لون معرف من النظام. |
| getCornflowerBlue() | يحصل على لون معرف من النظام. |
| getCornsilk() | يحصل على لون معرف من النظام. |
| getCrimson() | يحصل على لون معرف من النظام. |
| getCyan() | يحصل على لون معرف من النظام. |
| getDarkBlue() | يحصل على لون معرف من النظام. |
| getDarkCyan() | يحصل على لون معرف من النظام. |
| getDarkGoldenrod() | يحصل على لون معرف من النظام. |
| getDarkGray() | يحصل على لون معرف من النظام. |
| getDarkGreen() | يحصل على لون معرف من النظام. |
| getDarkKhaki() | يحصل على لون معرف من النظام. |
| getDarkMagenta() | يحصل على لون معرف من النظام. |
| getDarkOliveGreen() | يحصل على لون معرف من النظام. |
| getDarkOrange() | يحصل على لون معرف من النظام. |
| getDarkOrchid() | يحصل على لون معرف من النظام. |
| getDarkRed() | يحصل على لون معرف من النظام. |
| getDarkSalmon() | يحصل على لون معرف من النظام. |
| getDarkSeaGreen() | يحصل على لون معرف من النظام. |
| getDarkSlateBlue() | يحصل على لون معرف من النظام. |
| getDarkSlateGray() | يحصل على لون معرف من النظام. |
| getDarkTurquoise() | يحصل على لون معرف من النظام. |
| getDarkViolet() | يحصل على لون معرف من النظام. |
| getDeepPink() | يحصل على لون معرف من النظام. |
| getDeepSkyBlue() | يحصل على لون معرف من النظام. |
| getDimGray() | يحصل على لون معرف من النظام. |
| getDodgerBlue() | يحصل على لون معرف من النظام. |
| getFirebrick() | يحصل على لون معرف من النظام. |
| getFloralWhite() | يحصل على لون معرف من النظام. |
| getForestGreen() | يحصل على لون معرف من النظام. |
| getFuchsia() | يحصل على لون معرف من النظام. |
| getGainsboro() | يحصل على لون معرف من النظام. |
| getGhostWhite() | يحصل على لون معرف من النظام. |
| getGold() | يحصل على لون معرف من النظام. |
| getGoldenrod() | يحصل على لون معرف من النظام. |
| getGray() | يحصل على لون معرف من النظام. |
| getGreen() | يحصل على لون معرف من النظام. |
| getGreenYellow() | يحصل على لون معرف من النظام. |
| getHoneydew() | يحصل على لون معرف من النظام. |
| getHotPink() | يحصل على لون معرف من النظام. |
| getIndianRed() | يحصل على لون معرف من النظام. |
| getIndigo() | يحصل على لون معرف من النظام. |
| getIvory() | يحصل على لون معرف من النظام. |
| getKhaki() | يحصل على لون معرف من النظام. |
| getLavender() | يحصل على لون معرف من النظام. |
| getLavenderBlush() | يحصل على لون معرف من النظام. |
| getLawnGreen() | يحصل على لون معرف من النظام. |
| getLemonChiffon() | يحصل على لون معرف من النظام. |
| getLightBlue() | يحصل على لون معرف من النظام. |
| getLightCoral() | يحصل على لون معرف من النظام. |
| getLightCyan() | يحصل على لون معرف من النظام. |
| getLightGoldenrodYellow() | يحصل على لون معرف من النظام. |
| getLightGreen() | يحصل على لون معرف من النظام. |
| getLightGray() | يحصل على لون معرف من النظام. |
| getLightPink() | يحصل على لون معرف من النظام. |
| getLightSalmon() | يحصل على لون معرف من النظام. |
| getLightSeaGreen() | يحصل على لون معرف من النظام. |
| getLightSkyBlue() | يحصل على لون معرف من النظام. |
| getLightSlateGray() | يحصل على لون معرف من النظام. |
| getLightSteelBlue() | يحصل على لون معرف من النظام. |
| getLightYellow() | يحصل على لون معرف من النظام. |
| getLime() | يحصل على لون معرف من النظام. |
| getLimeGreen() | يحصل على لون معرف من النظام. |
| getLinen() | يحصل على لون معرف من النظام. |
| getMagenta() | يحصل على لون معرف من النظام. |
| getMaroon() | يحصل على لون معرف من النظام. |
| getMediumAquamarine() | يحصل على لون معرف من النظام. |
| getMediumBlue() | يحصل على لون معرف من النظام. |
| getMediumOrchid() | يحصل على لون معرف من النظام. |
| getMediumPurple() | يحصل على لون معرف من النظام. |
| getMediumSeaGreen() | يحصل على لون معرف من النظام. |
| getMediumSlateBlue() | يحصل على لون معرف من النظام. |
| getMediumSpringGreen() | يحصل على لون معرف من النظام. |
| getMediumTurquoise() | يحصل على لون معرف من النظام. |
| getMediumVioletRed() | يحصل على لون معرف من النظام. |
| getMidnightBlue() | يحصل على لون معرف من النظام. |
| getMintCream() | يحصل على لون معرف من النظام. |
| getMistyRose() | يحصل على لون معرف من النظام. |
| getMoccasin() | يحصل على لون معرف من النظام. |
| getNavajoWhite() | يحصل على لون معرف من النظام. |
| getNavy() | يحصل على لون معرف من النظام. |
| getOldLace() | يحصل على لون معرف من النظام. |
| getOlive() | يحصل على لون معرف من النظام. |
| getOliveDrab() | يحصل على لون معرف من النظام. |
| getOrange() | يحصل على لون معرف من النظام. |
| getOrangeRed() | يحصل على لون معرف من النظام. |
| getOrchid() | يحصل على لون معرف من النظام. |
| getPaleGoldenrod() | يحصل على لون معرف من النظام. |
| getPaleGreen() | يحصل على لون معرف من النظام. |
| getPaleTurquoise() | يحصل على لون معرف من النظام. |
| getPaleVioletRed() | يحصل على لون معرف من النظام. |
| getPapayaWhip() | يحصل على لون معرف من النظام. |
| getPeachPuff() | يحصل على لون معرف من النظام. |
| getPeru() | يحصل على لون معرف من النظام. |
| getPink() | يحصل على لون معرف من النظام. |
| getPlum() | يحصل على لون معرف من النظام. |
| getPowderBlue() | يحصل على لون معرف من النظام. |
| getPurple() | يحصل على لون معرف من النظام. |
| getRed() | يحصل على لون معرف من النظام. |
| getRosyBrown() | يحصل على لون معرف من النظام. |
| getRoyalBlue() | يحصل على لون معرف من النظام. |
| getSaddleBrown() | يحصل على لون معرف من النظام. |
| getSalmon() | يحصل على لون معرف من النظام. |
| getSandyBrown() | يحصل على لون معرف من النظام. |
| getSeaGreen() | يحصل على لون معرف من النظام. |
| getSeaShell() | يحصل على لون معرف من النظام. |
| getSienna() | يحصل على لون معرف من النظام. |
| getSilver() | يحصل على لون معرف من النظام. |
| getSkyBlue() | يحصل على لون معرف من النظام. |
| getSlateBlue() | يحصل على لون معرف من النظام. |
| getSlateGray() | يحصل على لون معرف من النظام. |
| getSnow() | يحصل على لون معرف من النظام. |
| getSpringGreen() | يحصل على لون معرف من النظام. |
| getSteelBlue() | يحصل على لون معرف من النظام. |
| getTan() | يحصل على لون معرف من النظام. |
| getTeal() | يحصل على لون معرف من النظام. |
| getThistle() | يحصل على لون معرف من النظام. |
| getTomato() | يحصل على لون معرف من النظام. |
| getTurquoise() | يحصل على لون معرف من النظام. |
| getViolet() | يحصل على لون معرف من النظام. |
| getWheat() | يحصل على لون معرف من النظام. |
| getWhite() | يحصل على لون معرف من النظام. |
| getWhiteSmoke() | يحصل على لون معرف من النظام. |
| getYellow() | يحصل على لون معرف من النظام. |
| getYellowGreen() | يحصل على لون معرف من النظام. |
| op_Equality(Color left, Color right) | يفحص ما إذا كان هيكلا com.aspose.imaging.Color المحددين متكافئين. |
| op_Inequality(Color left, Color right) | يفحص ما إذا كان هيكلا com.aspose.imaging.Color المحددين مختلفين. |
| fromArgb(int argb) | ينشئ هيكل com.aspose.imaging.Color من قيمة ARGB 32-بت. |
| fromArgb(int alpha, int red, int green, int blue) | ينشئ هيكل com.aspose.imaging.Color من القيم الأربعة لمكوّنات ARGB (ألفا، أحمر، أخضر، وأزرق). |
| fromArgb(byte alpha, byte red, byte green, byte blue) | ينشئ هيكل com.aspose.imaging.Color من القيم الأربعة لمكوّنات ARGB (ألفا، أحمر، أخضر، وأزرق). |
| fromArgb(int alpha, Color baseColor) | ينشئ بنية com.aspose.imaging.Color من البنية com.aspose.imaging.Color المحددة، ولكن مع قيمة ألفا المحددة الجديدة. |
| fromArgb(int red, int green, int blue) | ينشئ بنية com.aspose.imaging.Color من قيم اللون ذات 8 بت المحددة (الأحمر، الأخضر، والأزرق). |
| fromArgb(byte red, byte green, byte blue) | ينشئ بنية com.aspose.imaging.Color من قيم اللون ذات 8 بت المحددة (الأحمر، الأخضر، والأزرق). |
| fromKnownColor(int color) | ينشئ بنية com.aspose.imaging.Color من اللون المحدد مسبقًا. |
| fromName(String name) | ينشئ بنية com.aspose.imaging.Color من الاسم المحدد للون مسبقًا. |
| toCmyk(Color[] pixels) | التحويل من Color إلى CMYKColor. |
| toCmyk(Color pixel) | التحويل من Color إلى CMYKColor. |
| toCmykIcc(Color pixel, InputStream rgbIccStream, InputStream cmykIccStream) | التحويل من Color إلى CMYKColor باستخدام تحويل icc مع ملفات التعريف الافتراضية. |
| toCmykIcc(Color pixel) | التحويل من Color إلى CMYKColor باستخدام تحويل icc مع ملفات التعريف الافتراضية. |
| toCmykIcc(Color[] pixels) | التحويل من Color إلى CMYKColor باستخدام تحويل icc مع ملفات التعريف الافتراضية. |
| toCmykIcc(Color[] pixels, InputStream rgbIccStream, InputStream cmykIccStream) | التحويل من Color إلى CMYKColor باستخدام تحويل icc. |
| isEquals(Color obj1, Color obj2) | |
| getR() | يحصل على قيمة المكوّن الأحمر في بنية com.aspose.imaging.Color هذه. |
| getG() | يحصل على قيمة المكوّن الأخضر في بنية com.aspose.imaging.Color هذه. |
| getB() | يحصل على قيمة المكوّن الأزرق في بنية com.aspose.imaging.Color هذه. |
| getA() | يحصل على قيمة المكوّن ألفا في بنية com.aspose.imaging.Color هذه. |
| isKnownColor() | يحصل على قيمة تشير إلى ما إذا كانت بنية com.aspose.imaging.Color هذه لونًا مسبقًا. |
| isEmpty() | يحصل على قيمة تشير إلى ما إذا كانت بنية com.aspose.imaging.Color هذه غير مهيأة. |
| isNamedColor() | يحصل على قيمة تشير إلى ما إذا كانت بنية com.aspose.imaging.Color هذه لونًا مسمىً أو عضوًا في تعداد Aspose.Imaging.KnownColor. |
| getName() | يحصل على اسم هذا com.aspose.imaging.Color. |
| getBrightness() | يحصل على قيمة السطوع في نظام اللون-التشبع-السطوع (HSB) لهذه بنية com.aspose.imaging.Color. |
| getHue() | يحصل على قيمة الصبغة (hue) في نظام اللون-التشبع-السطوع (HSB) بالدرجات لهذه بنية com.aspose.imaging.Color. |
| getSaturation() | يحصل على قيمة التشبع في نظام اللون-التشبع-السطوع (HSB) لهذه بنية com.aspose.imaging.Color. |
| toArgb() | يحصل على قيمة ARGB ذات 32 بت لهذه بنية com.aspose.imaging.Color. |
| toKnownColor() | يحصل على قيمة Aspose.Imaging.KnownColor لهذه بنية com.aspose.imaging.Color. |
| toString() | يحوّل بنية com.aspose.imaging.Color هذه إلى سلسلة قابلة للقراءة من قبل الإنسان. |
| equals(Object obj) | يفحص ما إذا كان الكائن المحدد بنية com.aspose.imaging.Color ومكافئًا لهذه البنية com.aspose.imaging.Color. |
| hashCode() | يرجع رمز تجزئة (hash code) لهذه بنية com.aspose.imaging.Color. |
| CloneTo(Color that) | |
| Clone() |
Color()
public Color()
getEmpty()
public static Color getEmpty()
يحصل على Color فارغ.
Returns:
Color - The empty Color.
getTransparent()
public static Color getTransparent()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getAliceBlue()
public static Color getAliceBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getAntiqueWhite()
public static Color getAntiqueWhite()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getAqua()
public static Color getAqua()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getAquamarine()
public static Color getAquamarine()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getAzure()
public static Color getAzure()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getBeige()
public static Color getBeige()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getBisque()
public static Color getBisque()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getBlack()
public static Color getBlack()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getBlanchedAlmond()
public static Color getBlanchedAlmond()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getBlue()
public static Color getBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getBlueViolet()
public static Color getBlueViolet()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getBrown()
public static Color getBrown()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getBurlyWood()
public static Color getBurlyWood()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getCadetBlue()
public static Color getCadetBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getChartreuse()
public static Color getChartreuse()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getChocolate()
public static Color getChocolate()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getCoral()
public static Color getCoral()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getCornflowerBlue()
public static Color getCornflowerBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getCornsilk()
public static Color getCornsilk()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getCrimson()
public static Color getCrimson()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getCyan()
public static Color getCyan()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkBlue()
public static Color getDarkBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkCyan()
public static Color getDarkCyan()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkGoldenrod()
public static Color getDarkGoldenrod()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkGray()
public static Color getDarkGray()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkGreen()
public static Color getDarkGreen()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkKhaki()
public static Color getDarkKhaki()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkMagenta()
public static Color getDarkMagenta()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkOliveGreen()
public static Color getDarkOliveGreen()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkOrange()
public static Color getDarkOrange()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkOrchid()
public static Color getDarkOrchid()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkRed()
public static Color getDarkRed()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkSalmon()
public static Color getDarkSalmon()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkSeaGreen()
public static Color getDarkSeaGreen()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkSlateBlue()
public static Color getDarkSlateBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkSlateGray()
public static Color getDarkSlateGray()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkTurquoise()
public static Color getDarkTurquoise()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkViolet()
public static Color getDarkViolet()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDeepPink()
public static Color getDeepPink()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDeepSkyBlue()
public static Color getDeepSkyBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDimGray()
public static Color getDimGray()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDodgerBlue()
public static Color getDodgerBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getFirebrick()
public static Color getFirebrick()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getFloralWhite()
public static Color getFloralWhite()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getForestGreen()
public static Color getForestGreen()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getFuchsia()
public static Color getFuchsia()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getGainsboro()
public static Color getGainsboro()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getGhostWhite()
public static Color getGhostWhite()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getGold()
public static Color getGold()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getGoldenrod()
public static Color getGoldenrod()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getGray()
public static Color getGray()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color structure representing a system-defined color.
getGreen()
public static Color getGreen()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getGreenYellow()
public static Color getGreenYellow()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getHoneydew()
public static Color getHoneydew()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getHotPink()
public static Color getHotPink()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getIndianRed()
public static Color getIndianRed()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getIndigo()
public static Color getIndigo()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getIvory()
public static Color getIvory()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getKhaki()
public static Color getKhaki()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLavender()
public static Color getLavender()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLavenderBlush()
public static Color getLavenderBlush()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLawnGreen()
public static Color getLawnGreen()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLemonChiffon()
public static Color getLemonChiffon()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightBlue()
public static Color getLightBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightCoral()
public static Color getLightCoral()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightCyan()
public static Color getLightCyan()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightGoldenrodYellow()
public static Color getLightGoldenrodYellow()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightGreen()
public static Color getLightGreen()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightGray()
public static Color getLightGray()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightPink()
public static Color getLightPink()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightSalmon()
public static Color getLightSalmon()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightSeaGreen()
public static Color getLightSeaGreen()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightSkyBlue()
public static Color getLightSkyBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightSlateGray()
public static Color getLightSlateGray()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightSteelBlue()
public static Color getLightSteelBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightYellow()
public static Color getLightYellow()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLime()
public static Color getLime()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLimeGreen()
public static Color getLimeGreen()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLinen()
public static Color getLinen()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMagenta()
public static Color getMagenta()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMaroon()
public static Color getMaroon()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumAquamarine()
public static Color getMediumAquamarine()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumBlue()
public static Color getMediumBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumOrchid()
public static Color getMediumOrchid()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumPurple()
public static Color getMediumPurple()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumSeaGreen()
public static Color getMediumSeaGreen()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumSlateBlue()
public static Color getMediumSlateBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumSpringGreen()
public static Color getMediumSpringGreen()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumTurquoise()
public static Color getMediumTurquoise()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumVioletRed()
public static Color getMediumVioletRed()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMidnightBlue()
public static Color getMidnightBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMintCream()
public static Color getMintCream()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMistyRose()
public static Color getMistyRose()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMoccasin()
public static Color getMoccasin()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getNavajoWhite()
public static Color getNavajoWhite()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getNavy()
public static Color getNavy()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getOldLace()
public static Color getOldLace()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getOlive()
public static Color getOlive()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getOliveDrab()
public static Color getOliveDrab()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getOrange()
public static Color getOrange()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getOrangeRed()
public static Color getOrangeRed()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getOrchid()
public static Color getOrchid()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPaleGoldenrod()
public static Color getPaleGoldenrod()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPaleGreen()
public static Color getPaleGreen()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPaleTurquoise()
public static Color getPaleTurquoise()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPaleVioletRed()
public static Color getPaleVioletRed()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPapayaWhip()
public static Color getPapayaWhip()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPeachPuff()
public static Color getPeachPuff()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPeru()
public static Color getPeru()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPink()
public static Color getPink()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPlum()
public static Color getPlum()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPowderBlue()
public static Color getPowderBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPurple()
public static Color getPurple()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getRed()
public static Color getRed()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getRosyBrown()
public static Color getRosyBrown()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getRoyalBlue()
public static Color getRoyalBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSaddleBrown()
public static Color getSaddleBrown()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSalmon()
public static Color getSalmon()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSandyBrown()
public static Color getSandyBrown()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSeaGreen()
public static Color getSeaGreen()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSeaShell()
public static Color getSeaShell()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSienna()
public static Color getSienna()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSilver()
public static Color getSilver()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSkyBlue()
public static Color getSkyBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSlateBlue()
public static Color getSlateBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSlateGray()
public static Color getSlateGray()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSnow()
public static Color getSnow()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSpringGreen()
public static Color getSpringGreen()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSteelBlue()
public static Color getSteelBlue()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getTan()
public static Color getTan()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getTeal()
public static Color getTeal()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getThistle()
public static Color getThistle()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getTomato()
public static Color getTomato()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getTurquoise()
public static Color getTurquoise()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getViolet()
public static Color getViolet()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getWheat()
public static Color getWheat()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getWhite()
public static Color getWhite()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getWhiteSmoke()
public static Color getWhiteSmoke()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getYellow()
public static Color getYellow()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getYellowGreen()
public static Color getYellowGreen()
يحصل على لون معرف من النظام.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
op_Equality(Color left, Color right)
public static boolean op_Equality(Color left, Color right)
يفحص ما إذا كان هيكلا com.aspose.imaging.Color المحددين متكافئين.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| left | Color | com.aspose.imaging.Color الموجود إلى يسار عامل المساواة. |
| right | Color | com.aspose.imaging.Color الموجود إلى يمين عامل المساواة. |
Returns:
منطقي - صحيح إذا كانت هياكل com.aspose.imaging.Color الاثنين متساوية؛ وإلا، خطأ.
op_Inequality(Color left, Color right)
public static boolean op_Inequality(Color left, Color right)
يفحص ما إذا كان هيكلا com.aspose.imaging.Color المحددين مختلفين.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| left | Color | الـ com.aspose.imaging.Color الموجودة إلى يسار عامل عدم المساواة. |
| right | Color | الـ com.aspose.imaging.Color الموجودة إلى يمين عامل عدم المساواة. |
Returns:
منطقي - صحيح إذا كانت هياكل com.aspose.imaging.Color الاثنين مختلفة؛ وإلا، خطأ.
fromArgb(int argb)
public static Color fromArgb(int argb)
ينشئ هيكل com.aspose.imaging.Color من قيمة ARGB 32-بت.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| argb | int | قيمة تحدد قيمة ARGB ذات 32 بت. |
Returns:
Color - The com.aspose.imaging.Color structure that this method creates.
fromArgb(int alpha, int red, int green, int blue)
public static Color fromArgb(int alpha, int red, int green, int blue)
ينشئ هيكل com.aspose.imaging.Color من القيم الأربعة لمكوّنات ARGB (ألفا، أحمر، أخضر، وأزرق). على الرغم من أن هذه الطريقة تسمح بتمرير قيمة 32 بت لكل مكوّن، فإن قيمة كل مكوّن محدودة بـ 8 بت.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| ألفا | int | مكوّن ألفا. القيم الصالحة هي من 0 إلى 255. |
| أحمر | int | مكوّن الأحمر. القيم الصالحة هي من 0 إلى 255. |
| أخضر | int | مكوّن الأخضر. القيم الصالحة هي من 0 إلى 255. |
| أزرق | int | مكوّن الأزرق. القيم الصالحة هي من 0 إلى 255. |
Returns:
Color - The com.aspose.imaging.Color that this method creates.
Example: The following example creates a new raster image, saves the specified semi-transparent pixels, then loads those pixels and gets final colors in the premultiplied form.
int imageWidth = 3;
int imageHeight = 2;
com.aspose.imaging.Color[] colors = new com.aspose.imaging.Color[]
{
com.aspose.imaging.Color.fromArgb(127, 255, 0, 0),
com.aspose.imaging.Color.fromArgb(127, 0, 255, 0),
com.aspose.imaging.Color.fromArgb(127, 0, 0, 255),
com.aspose.imaging.Color.fromArgb(127, 255, 255, 0),
com.aspose.imaging.Color.fromArgb(127, 255, 0, 255),
com.aspose.imaging.Color.fromArgb(127, 0, 255, 255),
};
com.aspose.imaging.imageoptions.PngOptions createOptions = new com.aspose.imaging.imageoptions.PngOptions();
createOptions.setSource(new com.aspose.imaging.sources.StreamSource(new com.aspose.imaging.system.io.MemoryStream(), true));
createOptions.setColorType(com.aspose.imaging.fileformats.png.PngColorType.TruecolorWithAlpha);
com.aspose.imaging.Image image = com.aspose.imaging.Image.create(createOptions, imageWidth, imageHeight);
try {
com.aspose.imaging.RasterImage rasterImage = (com.aspose.imaging.RasterImage) image;
// احفظ البكسلات لكامل الصورة.
rasterImage.savePixels(rasterImage.getBounds(), colors);
// يتم تخزين البكسلات في الصورة الأصلية بصيغة غير مضاعفة مسبقًا.
// يجب تحديد الخيار المقابل صراحةً للحصول على مكوّنات اللون المضاعفة مسبقًا.
// يتم حساب مكوّنات اللون المضاعفة مسبقًا باستخدام الصيغ:
// red = original_red * alpha / 255;
// green = original_green * alpha / 255;
// blue = original_blue * alpha / 255;
rasterImage.setPremultiplyComponents(true);
com.aspose.imaging.Color[] premultipliedColors = rasterImage.loadPixels(rasterImage.getBounds());
for (int i = 0; i < colors.length; i++) {
System.out.println("Original color: " + colors[i].toString());
System.out.println("Premultiplied color: " + premultipliedColors[i].toString());
}
} finally {
image.dispose();
}
fromArgb(byte alpha, byte red, byte green, byte blue)
public static Color fromArgb(byte alpha, byte red, byte green, byte blue)
ينشئ هيكل com.aspose.imaging.Color من القيم الأربعة لمكوّنات ARGB (ألفا، أحمر، أخضر، وأزرق). على الرغم من أن هذه الطريقة تسمح بتمرير قيمة 32 بت لكل مكوّن، فإن قيمة كل مكوّن محدودة بـ 8 بت.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| ألفا | byte | مكوّن ألفا. القيم الصالحة هي من 0 إلى 255. |
| أحمر | byte | مكوّن الأحمر. القيم الصالحة هي من 0 إلى 255. |
| أخضر | byte | مكوّن الأخضر. القيم الصالحة هي من 0 إلى 255. |
| أزرق | byte | مكوّن الأزرق. القيم الصالحة هي من 0 إلى 255. |
Returns:
Color - The com.aspose.imaging.Color that this method creates.
fromArgb(int alpha, Color baseColor)
public static Color fromArgb(int alpha, Color baseColor)
ينشئ هيكل com.aspose.imaging.Color من الهيكل com.aspose.imaging.Color المحدد، ولكن مع قيمة ألفا الجديدة المحددة. على الرغم من أن هذه الطريقة تسمح بتمرير قيمة 32 بت لقيمة ألفا، فإن القيمة محدودة بـ 8 بت.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| ألفا | int | قيمة ألفا للـ com.aspose.imaging.Color الجديد. القيم الصالحة هي من 0 إلى 255. |
| baseColor | Color | الـ com.aspose.imaging.Color الذي يُنشأ منه الـ com.aspose.imaging.Color الجديد. |
Returns:
Color - The com.aspose.imaging.Color that this method creates.
fromArgb(int red, int green, int blue)
public static Color fromArgb(int red, int green, int blue)
ينشئ هيكل com.aspose.imaging.Color من قيم الألوان 8‑بت المحددة (أحمر، أخضر، وأزرق). قيمة ألفا هي ضمنيًا 255 (معتمة تمامًا). على الرغم من أن هذه الطريقة تسمح بتمرير قيمة 32 بت لكل مكوّن لون، فإن قيمة كل مكوّن محدودة بـ 8 بت.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| أحمر | int | قيمة المكوّن الأحمر للـ com.aspose.imaging.Color الجديد. القيم الصالحة هي من 0 إلى 255. |
| أخضر | int | قيمة المكوّن الأخضر للـ com.aspose.imaging.Color الجديد. القيم الصالحة هي من 0 إلى 255. |
| أزرق | int | قيمة المكوّن الأزرق للـ com.aspose.imaging.Color الجديد. القيم الصالحة هي من 0 إلى 255. |
Returns:
Color - The com.aspose.imaging.Color that this method creates.
fromArgb(byte red, byte green, byte blue)
public static Color fromArgb(byte red, byte green, byte blue)
ينشئ هيكل com.aspose.imaging.Color من قيم الألوان 8‑بت المحددة (أحمر، أخضر، وأزرق). قيمة ألفا هي ضمنيًا 255 (معتمة تمامًا). على الرغم من أن هذه الطريقة تسمح بتمرير قيمة 32 بت لكل مكوّن لون، فإن قيمة كل مكوّن محدودة بـ 8 بت.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| أحمر | byte | قيمة المكوّن الأحمر للـ com.aspose.imaging.Color الجديد. القيم الصالحة هي من 0 إلى 255. |
| أخضر | byte | قيمة المكوّن الأخضر للـ com.aspose.imaging.Color الجديد. القيم الصالحة هي من 0 إلى 255. |
| أزرق | byte | قيمة المكوّن الأزرق للـ com.aspose.imaging.Color الجديد. القيم الصالحة هي من 0 إلى 255. |
Returns:
Color - The com.aspose.imaging.Color that this method creates.
fromKnownColor(int color)
public static Color fromKnownColor(int color)
ينشئ بنية com.aspose.imaging.Color من اللون المحدد مسبقًا.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| لون | int | عنصر من تعداد Aspose.Imaging.KnownColor. |
Returns:
Color - The com.aspose.imaging.Color that this method creates.
fromName(String name)
public static Color fromName(String name)
ينشئ بنية com.aspose.imaging.Color من الاسم المحدد للون مسبقًا.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| الاسم | java.lang.String | سلسلة تمثل اسم لون مُعرّف مسبقًا. الأسماء الصالحة هي نفسها أسماء عناصر تعداد Aspose.Imaging.KnownColor. |
Returns:
Color - The com.aspose.imaging.Color that this method creates.
toCmyk(Color[] pixels)
public static CmykColor[] toCmyk(Color[] pixels)
التحويل من Color إلى CMYKColor. هذه الطريقة مهجورة. يرجى استخدام أكثر فعالية CmykColorHelper.toCmyk(Color[]).
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| pixels | Color[] | البكسلات من نوع Color بصيغة RGB. |
Returns: com.aspose.imaging.CmykColor[] - الـ CmykColor[].
toCmyk(Color pixel)
public static CmykColor toCmyk(Color pixel)
التحويل من Color إلى CMYKColor. هذه الطريقة مهجورة. يرجى استخدام أكثر فعالية CmykColorHelper.toCmyk(Color).
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| pixel | Color | البكسل من نوع Color بصيغة RGB. |
Returns: CmykColor - The CmykColor.
toCmykIcc(Color pixel, InputStream rgbIccStream, InputStream cmykIccStream)
public static CmykColor toCmykIcc(Color pixel, InputStream rgbIccStream, InputStream cmykIccStream)
التحويل من Color إلى CMYKColor باستخدام تحويل icc مع ملفات تعريف افتراضية. هذه الطريقة مهجورة. يرجى استخدام أكثر فعالية CmykColorHelper.toCmykIcc(Color, InputStream, InputStream).
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| pixel | Color | البكسل من نوع Color بصيغة RGB. |
| rgbIccStream | java.io.InputStream | الدفق الذي يحتوي على ملف تعريف icc rgb. |
| cmykIccStream | java.io.InputStream | الدفق الذي يحتوي على ملف تعريف icc cmyk. |
Returns: CmykColor - The CmykColor[].
toCmykIcc(Color pixel)
public static CmykColor toCmykIcc(Color pixel)
التحويل من Color إلى CMYKColor باستخدام تحويل icc مع ملفات تعريف افتراضية. هذه الطريقة مهجورة. يرجى استخدام أكثر فعالية CmykColorHelper.toCmykIcc(Color).
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| pixel | Color | البكسل من نوع Color بصيغة RGB. |
Returns: CmykColor - The CmykColor.
toCmykIcc(Color[] pixels)
public static CmykColor[] toCmykIcc(Color[] pixels)
التحويل من Color إلى CMYKColor باستخدام تحويل icc مع ملفات تعريف افتراضية. هذه الطريقة مهجورة. يرجى استخدام أكثر فعالية CmykColorHelper.toCmykIcc(Color[]).
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| pixels | Color[] | البكسلات من نوع Color بصيغة RGB. |
Returns: com.aspose.imaging.CmykColor[] - الـ CmykColor[].
toCmykIcc(Color[] pixels, InputStream rgbIccStream, InputStream cmykIccStream)
public static CmykColor[] toCmykIcc(Color[] pixels, InputStream rgbIccStream, InputStream cmykIccStream)
التحويل من Color إلى CMYKColor باستخدام تحويل icc. هذه الطريقة مهجورة. يرجى استخدام أكثر فعالية CmykColorHelper.toCmykIcc(Color[], InputStream, InputStream).
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| pixels | Color[] | البكسلات من نوع Color بصيغة RGB. |
| rgbIccStream | java.io.InputStream | الدفق الذي يحتوي على ملف تعريف icc rgb. |
| cmykIccStream | java.io.InputStream | الدفق الذي يحتوي على ملف تعريف icc cmyk. |
Returns: com.aspose.imaging.CmykColor[] - الـ CmykColor[].
isEquals(Color obj1, Color obj2)
public static boolean isEquals(Color obj1, Color obj2)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| obj1 | Color | |
| obj2 | Color |
Returns: boolean
getR()
public byte getR()
يحصل على قيمة المكوّن الأحمر في بنية com.aspose.imaging.Color هذه.
Returns:
byte - قيمة المكوّن الأحمر لهذا com.aspose.imaging.Color.
getG()
public byte getG()
يحصل على قيمة المكوّن الأخضر في بنية com.aspose.imaging.Color هذه.
Returns:
byte - قيمة المكوّن الأخضر لهذا com.aspose.imaging.Color.
getB()
public byte getB()
يحصل على قيمة المكوّن الأزرق في بنية com.aspose.imaging.Color هذه.
Returns:
byte - قيمة المكوّن الأزرق لهذا com.aspose.imaging.Color.
getA()
public byte getA()
يحصل على قيمة المكوّن ألفا في بنية com.aspose.imaging.Color هذه.
Returns:
byte - قيمة المكوّن ألفا لهذا com.aspose.imaging.Color.
isKnownColor()
public boolean isKnownColor()
يحصل على قيمة تشير إلى ما إذا كان بنية com.aspose.imaging.Color هذه لونًا مُعرّفًا مسبقًا. الألوان المُعرّفة مسبقًا ممثلة بعناصر تعداد Aspose.Imaging.KnownColor.
Returns:
boolean - صحيح إذا تم إنشاء هذا com.aspose.imaging.Color من لون مُعرّف مسبقًا باستخدام إما طريقة Aspose.Imaging.Color.FromName(String) أو طريقة Aspose.Imaging.Color.FromKnownColor(Aspose.Imaging.KnownColor)؛ وإلا فإنها خاطئة.
isEmpty()
public boolean isEmpty()
يحصل على قيمة تشير إلى ما إذا كانت بنية com.aspose.imaging.Color هذه غير مهيأة.
Returns: boolean - تُعيد هذه الخاصية true إذا كان هذا اللون غير مبدئ؛ وإلا false.
isNamedColor()
public boolean isNamedColor()
يحصل على قيمة تشير إلى ما إذا كانت بنية com.aspose.imaging.Color هذه لونًا مسمىً أو عضوًا في تعداد Aspose.Imaging.KnownColor.
Returns:
boolean - صحيح إذا تم إنشاء هذا com.aspose.imaging.Color باستخدام إما طريقة Aspose.Imaging.Color.FromName(String) أو طريقة Aspose.Imaging.Color.FromKnownColor(Aspose.Imaging.KnownColor)؛ وإلا false.
getName()
public String getName()
يحصل على اسم هذا com.aspose.imaging.Color.
Returns:
java.lang.String - اسم هذا com.aspose.imaging.Color.
getBrightness()
public float getBrightness()
يحصل على قيمة السطوع في نظام اللون-التشبع-السطوع (HSB) لهذه بنية com.aspose.imaging.Color.
Returns:
float - سطوع هذا com.aspose.imaging.Color. يتراوح السطوع من 0.0 إلى 1.0، حيث يمثل 0.0 اللون الأسود و1.0 اللون الأبيض.
getHue()
public float getHue()
يحصل على قيمة الصبغة (hue) في نظام اللون-التشبع-السطوع (HSB) بالدرجات لهذه بنية com.aspose.imaging.Color.
Returns:
float - درجة اللون (Hue) بالدرجات لهذا com.aspose.imaging.Color. تُقاس درجة اللون بالدرجات، وتتراوح من 0.0 إلى 360.0 في مساحة لون HSB.
getSaturation()
public float getSaturation()
يحصل على قيمة التشبع في نظام اللون-التشبع-السطوع (HSB) لهذه بنية com.aspose.imaging.Color.
Returns:
float - تشبع هذا com.aspose.imaging.Color. يتراوح التشبع من 0.0 إلى 1.0، حيث 0.0 يعني تدرج رمادي و1.0 يعني أقصى تشبع.
toArgb()
public int toArgb()
يحصل على قيمة ARGB ذات 32 بت لهذه بنية com.aspose.imaging.Color.
Returns:
int - قيمة ARGB 32‑بت لهذا com.aspose.imaging.Color.
toKnownColor()
public int toKnownColor()
يحصل على قيمة Aspose.Imaging.KnownColor لهذه بنية com.aspose.imaging.Color.
Returns:
int - عنصر من تعداد Aspose.Imaging.KnownColor، إذا تم إنشاء com.aspose.imaging.Color من لون مسبق التعريف باستخدام إما طريقة Aspose.Imaging.Color.FromName(String) أو طريقة Aspose.Imaging.Color.FromKnownColor(Aspose.Imaging.KnownColor)؛ وإلا يكون 0.
toString()
public String toString()
يحوّل بنية com.aspose.imaging.Color هذه إلى سلسلة قابلة للقراءة من قبل الإنسان.
Returns:
java.lang.String - سلسلة تمثل اسم هذا com.aspose.imaging.Color، إذا تم إنشاء com.aspose.imaging.Color من لون مسبق التعريف باستخدام إما طريقة Aspose.Imaging.Color.FromName(String) أو طريقة Aspose.Imaging.Color.FromKnownColor(Aspose.Imaging.KnownColor)؛ وإلا تكون سلسلة تتكون من أسماء مكونات ARGB وقيمها.
equals(Object obj)
public boolean equals(Object obj)
يفحص ما إذا كان الكائن المحدد بنية com.aspose.imaging.Color ومكافئًا لهذه البنية com.aspose.imaging.Color.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| obj | java.lang.Object | الكائن المراد اختباره. |
Returns:
boolean - صحيح إذا كان obj بنية com.aspose.imaging.Color مكافئة لهذه البنية com.aspose.imaging.Color؛ وإلا يكون خاطئ.
hashCode()
public int hashCode()
يرجع رمز تجزئة (hash code) لهذه بنية com.aspose.imaging.Color.
Returns:
int - قيمة عددية تحدد رمز التجزئة لهذا com.aspose.imaging.Color.
CloneTo(Color that)
public void CloneTo(Color that)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| that | Color |
Clone()
public Color Clone()
Returns: Color