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
Il colore del pixel.
Costruttori
| Costruttore | Descrizione |
|---|---|
| Color() |
Metodi
| Metodo | Descrizione |
|---|---|
| getEmpty() | Restituisce un Color vuoto. |
| getTransparent() | Restituisce un colore definito dal sistema. |
| getAliceBlue() | Restituisce un colore definito dal sistema. |
| getAntiqueWhite() | Restituisce un colore definito dal sistema. |
| getAqua() | Restituisce un colore definito dal sistema. |
| getAquamarine() | Restituisce un colore definito dal sistema. |
| getAzure() | Restituisce un colore definito dal sistema. |
| getBeige() | Restituisce un colore definito dal sistema. |
| getBisque() | Restituisce un colore definito dal sistema. |
| getBlack() | Restituisce un colore definito dal sistema. |
| getBlanchedAlmond() | Restituisce un colore definito dal sistema. |
| getBlue() | Restituisce un colore definito dal sistema. |
| getBlueViolet() | Restituisce un colore definito dal sistema. |
| getBrown() | Restituisce un colore definito dal sistema. |
| getBurlyWood() | Restituisce un colore definito dal sistema. |
| getCadetBlue() | Restituisce un colore definito dal sistema. |
| getChartreuse() | Restituisce un colore definito dal sistema. |
| getChocolate() | Restituisce un colore definito dal sistema. |
| getCoral() | Restituisce un colore definito dal sistema. |
| getCornflowerBlue() | Restituisce un colore definito dal sistema. |
| getCornsilk() | Restituisce un colore definito dal sistema. |
| getCrimson() | Restituisce un colore definito dal sistema. |
| getCyan() | Restituisce un colore definito dal sistema. |
| getDarkBlue() | Restituisce un colore definito dal sistema. |
| getDarkCyan() | Restituisce un colore definito dal sistema. |
| getDarkGoldenrod() | Restituisce un colore definito dal sistema. |
| getDarkGray() | Restituisce un colore definito dal sistema. |
| getDarkGreen() | Restituisce un colore definito dal sistema. |
| getDarkKhaki() | Restituisce un colore definito dal sistema. |
| getDarkMagenta() | Restituisce un colore definito dal sistema. |
| getDarkOliveGreen() | Restituisce un colore definito dal sistema. |
| getDarkOrange() | Restituisce un colore definito dal sistema. |
| getDarkOrchid() | Restituisce un colore definito dal sistema. |
| getDarkRed() | Restituisce un colore definito dal sistema. |
| getDarkSalmon() | Restituisce un colore definito dal sistema. |
| getDarkSeaGreen() | Restituisce un colore definito dal sistema. |
| getDarkSlateBlue() | Restituisce un colore definito dal sistema. |
| getDarkSlateGray() | Restituisce un colore definito dal sistema. |
| getDarkTurquoise() | Restituisce un colore definito dal sistema. |
| getDarkViolet() | Restituisce un colore definito dal sistema. |
| getDeepPink() | Restituisce un colore definito dal sistema. |
| getDeepSkyBlue() | Restituisce un colore definito dal sistema. |
| getDimGray() | Restituisce un colore definito dal sistema. |
| getDodgerBlue() | Restituisce un colore definito dal sistema. |
| getFirebrick() | Restituisce un colore definito dal sistema. |
| getFloralWhite() | Restituisce un colore definito dal sistema. |
| getForestGreen() | Restituisce un colore definito dal sistema. |
| getFuchsia() | Restituisce un colore definito dal sistema. |
| getGainsboro() | Restituisce un colore definito dal sistema. |
| getGhostWhite() | Restituisce un colore definito dal sistema. |
| getGold() | Restituisce un colore definito dal sistema. |
| getGoldenrod() | Restituisce un colore definito dal sistema. |
| getGray() | Restituisce un colore definito dal sistema. |
| getGreen() | Restituisce un colore definito dal sistema. |
| getGreenYellow() | Restituisce un colore definito dal sistema. |
| getHoneydew() | Restituisce un colore definito dal sistema. |
| getHotPink() | Restituisce un colore definito dal sistema. |
| getIndianRed() | Restituisce un colore definito dal sistema. |
| getIndigo() | Restituisce un colore definito dal sistema. |
| getIvory() | Restituisce un colore definito dal sistema. |
| getKhaki() | Restituisce un colore definito dal sistema. |
| getLavender() | Restituisce un colore definito dal sistema. |
| getLavenderBlush() | Restituisce un colore definito dal sistema. |
| getLawnGreen() | Restituisce un colore definito dal sistema. |
| getLemonChiffon() | Restituisce un colore definito dal sistema. |
| getLightBlue() | Restituisce un colore definito dal sistema. |
| getLightCoral() | Restituisce un colore definito dal sistema. |
| getLightCyan() | Restituisce un colore definito dal sistema. |
| getLightGoldenrodYellow() | Restituisce un colore definito dal sistema. |
| getLightGreen() | Restituisce un colore definito dal sistema. |
| getLightGray() | Restituisce un colore definito dal sistema. |
| getLightPink() | Restituisce un colore definito dal sistema. |
| getLightSalmon() | Restituisce un colore definito dal sistema. |
| getLightSeaGreen() | Restituisce un colore definito dal sistema. |
| getLightSkyBlue() | Restituisce un colore definito dal sistema. |
| getLightSlateGray() | Restituisce un colore definito dal sistema. |
| getLightSteelBlue() | Restituisce un colore definito dal sistema. |
| getLightYellow() | Restituisce un colore definito dal sistema. |
| getLime() | Restituisce un colore definito dal sistema. |
| getLimeGreen() | Restituisce un colore definito dal sistema. |
| getLinen() | Restituisce un colore definito dal sistema. |
| getMagenta() | Restituisce un colore definito dal sistema. |
| getMaroon() | Restituisce un colore definito dal sistema. |
| getMediumAquamarine() | Restituisce un colore definito dal sistema. |
| getMediumBlue() | Restituisce un colore definito dal sistema. |
| getMediumOrchid() | Restituisce un colore definito dal sistema. |
| getMediumPurple() | Restituisce un colore definito dal sistema. |
| getMediumSeaGreen() | Restituisce un colore definito dal sistema. |
| getMediumSlateBlue() | Restituisce un colore definito dal sistema. |
| getMediumSpringGreen() | Restituisce un colore definito dal sistema. |
| getMediumTurquoise() | Restituisce un colore definito dal sistema. |
| getMediumVioletRed() | Restituisce un colore definito dal sistema. |
| getMidnightBlue() | Restituisce un colore definito dal sistema. |
| getMintCream() | Restituisce un colore definito dal sistema. |
| getMistyRose() | Restituisce un colore definito dal sistema. |
| getMoccasin() | Restituisce un colore definito dal sistema. |
| getNavajoWhite() | Restituisce un colore definito dal sistema. |
| getNavy() | Restituisce un colore definito dal sistema. |
| getOldLace() | Restituisce un colore definito dal sistema. |
| getOlive() | Restituisce un colore definito dal sistema. |
| getOliveDrab() | Restituisce un colore definito dal sistema. |
| getOrange() | Restituisce un colore definito dal sistema. |
| getOrangeRed() | Restituisce un colore definito dal sistema. |
| getOrchid() | Restituisce un colore definito dal sistema. |
| getPaleGoldenrod() | Restituisce un colore definito dal sistema. |
| getPaleGreen() | Restituisce un colore definito dal sistema. |
| getPaleTurquoise() | Restituisce un colore definito dal sistema. |
| getPaleVioletRed() | Restituisce un colore definito dal sistema. |
| getPapayaWhip() | Restituisce un colore definito dal sistema. |
| getPeachPuff() | Restituisce un colore definito dal sistema. |
| getPeru() | Restituisce un colore definito dal sistema. |
| getPink() | Restituisce un colore definito dal sistema. |
| getPlum() | Restituisce un colore definito dal sistema. |
| getPowderBlue() | Restituisce un colore definito dal sistema. |
| getPurple() | Restituisce un colore definito dal sistema. |
| getRed() | Restituisce un colore definito dal sistema. |
| getRosyBrown() | Restituisce un colore definito dal sistema. |
| getRoyalBlue() | Restituisce un colore definito dal sistema. |
| getSaddleBrown() | Restituisce un colore definito dal sistema. |
| getSalmon() | Restituisce un colore definito dal sistema. |
| getSandyBrown() | Restituisce un colore definito dal sistema. |
| getSeaGreen() | Restituisce un colore definito dal sistema. |
| getSeaShell() | Restituisce un colore definito dal sistema. |
| getSienna() | Restituisce un colore definito dal sistema. |
| getSilver() | Restituisce un colore definito dal sistema. |
| getSkyBlue() | Restituisce un colore definito dal sistema. |
| getSlateBlue() | Restituisce un colore definito dal sistema. |
| getSlateGray() | Restituisce un colore definito dal sistema. |
| getSnow() | Restituisce un colore definito dal sistema. |
| getSpringGreen() | Restituisce un colore definito dal sistema. |
| getSteelBlue() | Restituisce un colore definito dal sistema. |
| getTan() | Restituisce un colore definito dal sistema. |
| getTeal() | Restituisce un colore definito dal sistema. |
| getThistle() | Restituisce un colore definito dal sistema. |
| getTomato() | Restituisce un colore definito dal sistema. |
| getTurquoise() | Restituisce un colore definito dal sistema. |
| getViolet() | Restituisce un colore definito dal sistema. |
| getWheat() | Restituisce un colore definito dal sistema. |
| getWhite() | Restituisce un colore definito dal sistema. |
| getWhiteSmoke() | Restituisce un colore definito dal sistema. |
| getYellow() | Restituisce un colore definito dal sistema. |
| getYellowGreen() | Restituisce un colore definito dal sistema. |
| op_Equality(Color left, Color right) | Verifica se due strutture com.aspose.imaging.Color specificate sono equivalenti. |
| op_Inequality(Color left, Color right) | Verifica se due strutture com.aspose.imaging.Color specificate sono diverse. |
| fromArgb(int argb) | Crea una struttura com.aspose.imaging.Color da un valore ARGB a 32 bit. |
| fromArgb(int alpha, int red, int green, int blue) | Crea una struttura com.aspose.imaging.Color dai quattro valori dei componenti ARGB (alpha, rosso, verde e blu). |
| fromArgb(byte alpha, byte red, byte green, byte blue) | Crea una struttura com.aspose.imaging.Color dai quattro valori dei componenti ARGB (alpha, rosso, verde e blu). |
| fromArgb(int alpha, Color baseColor) | Crea una struttura com.aspose.imaging.Color a partire dalla struttura com.aspose.imaging.Color specificata, ma con il nuovo valore alfa specificato. |
| fromArgb(int red, int green, int blue) | Crea una struttura com.aspose.imaging.Color a partire dai valori di colore a 8 bit specificati (rosso, verde e blu). |
| fromArgb(byte red, byte green, byte blue) | Crea una struttura com.aspose.imaging.Color a partire dai valori di colore a 8 bit specificati (rosso, verde e blu). |
| fromKnownColor(int color) | Crea una struttura com.aspose.imaging.Color a partire dal colore predefinito specificato. |
| fromName(String name) | Crea una struttura com.aspose.imaging.Color a partire dal nome specificato di un colore predefinito. |
| toCmyk(Color[] pixels) | La conversione da Color a CMYKColor. |
| toCmyk(Color pixel) | La conversione da Color a CMYKColor. |
| toCmykIcc(Color pixel, InputStream rgbIccStream, InputStream cmykIccStream) | La conversione da Color a CMYKColor utilizzando la conversione icc con profili predefiniti. |
| toCmykIcc(Color pixel) | La conversione da Color a CMYKColor utilizzando la conversione icc con profili predefiniti. |
| toCmykIcc(Color[] pixels) | La conversione da Color a CMYKColor utilizzando la conversione icc con profili predefiniti. |
| toCmykIcc(Color[] pixels, InputStream rgbIccStream, InputStream cmykIccStream) | La conversione da Color a CMYKColor utilizzando la conversione icc. |
| isEquals(Color obj1, Color obj2) | |
| getR() | Ottiene il valore del componente rosso di questa struttura com.aspose.imaging.Color. |
| getG() | Ottiene il valore del componente verde di questa struttura com.aspose.imaging.Color. |
| getB() | Ottiene il valore del componente blu di questa struttura com.aspose.imaging.Color. |
| getA() | Ottiene il valore del componente alfa di questa struttura com.aspose.imaging.Color. |
| isKnownColor() | Restituisce un valore che indica se questa struttura com.aspose.imaging.Color è un colore predefinito. |
| isEmpty() | Restituisce un valore che indica se questa struttura com.aspose.imaging.Color non è inizializzata. |
| isNamedColor() | Restituisce un valore che indica se questa struttura com.aspose.imaging.Color è un colore con nome o un membro dell’enumerazione Aspose.Imaging.KnownColor. |
| getName() | Ottiene il nome di questa com.aspose.imaging.Color. |
| getBrightness() | Ottiene il valore di luminosità hue-saturation-brightness (HSB) per questa struttura com.aspose.imaging.Color. |
| getHue() | Ottiene il valore di tonalità hue-saturation-brightness (HSB), in gradi, per questa struttura com.aspose.imaging.Color. |
| getSaturation() | Ottiene il valore di saturazione hue-saturation-brightness (HSB) per questa struttura com.aspose.imaging.Color. |
| toArgb() | Ottiene il valore ARGB a 32 bit di questa struttura com.aspose.imaging.Color. |
| toKnownColor() | Ottiene il valore Aspose.Imaging.KnownColor di questa struttura com.aspose.imaging.Color. |
| toString() | Converte questa struttura com.aspose.imaging.Color in una stringa leggibile dall’uomo. |
| equals(Object obj) | Verifica se l’oggetto specificato è una struttura com.aspose.imaging.Color ed è equivalente a questa struttura com.aspose.imaging.Color. |
| hashCode() | Restituisce un codice hash per questa struttura com.aspose.imaging.Color. |
| CloneTo(Color that) | |
| Clone() |
Color()
public Color()
getEmpty()
public static Color getEmpty()
Restituisce un Color vuoto.
Returns:
Color - The empty Color.
getTransparent()
public static Color getTransparent()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getAliceBlue()
public static Color getAliceBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getAntiqueWhite()
public static Color getAntiqueWhite()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getAqua()
public static Color getAqua()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getAquamarine()
public static Color getAquamarine()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getAzure()
public static Color getAzure()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getBeige()
public static Color getBeige()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getBisque()
public static Color getBisque()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getBlack()
public static Color getBlack()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getBlanchedAlmond()
public static Color getBlanchedAlmond()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getBlue()
public static Color getBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getBlueViolet()
public static Color getBlueViolet()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getBrown()
public static Color getBrown()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getBurlyWood()
public static Color getBurlyWood()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getCadetBlue()
public static Color getCadetBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getChartreuse()
public static Color getChartreuse()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getChocolate()
public static Color getChocolate()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getCoral()
public static Color getCoral()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getCornflowerBlue()
public static Color getCornflowerBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getCornsilk()
public static Color getCornsilk()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getCrimson()
public static Color getCrimson()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getCyan()
public static Color getCyan()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkBlue()
public static Color getDarkBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkCyan()
public static Color getDarkCyan()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkGoldenrod()
public static Color getDarkGoldenrod()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkGray()
public static Color getDarkGray()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkGreen()
public static Color getDarkGreen()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkKhaki()
public static Color getDarkKhaki()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkMagenta()
public static Color getDarkMagenta()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkOliveGreen()
public static Color getDarkOliveGreen()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkOrange()
public static Color getDarkOrange()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkOrchid()
public static Color getDarkOrchid()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkRed()
public static Color getDarkRed()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkSalmon()
public static Color getDarkSalmon()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkSeaGreen()
public static Color getDarkSeaGreen()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkSlateBlue()
public static Color getDarkSlateBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkSlateGray()
public static Color getDarkSlateGray()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkTurquoise()
public static Color getDarkTurquoise()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDarkViolet()
public static Color getDarkViolet()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDeepPink()
public static Color getDeepPink()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDeepSkyBlue()
public static Color getDeepSkyBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDimGray()
public static Color getDimGray()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getDodgerBlue()
public static Color getDodgerBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getFirebrick()
public static Color getFirebrick()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getFloralWhite()
public static Color getFloralWhite()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getForestGreen()
public static Color getForestGreen()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getFuchsia()
public static Color getFuchsia()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getGainsboro()
public static Color getGainsboro()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getGhostWhite()
public static Color getGhostWhite()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getGold()
public static Color getGold()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getGoldenrod()
public static Color getGoldenrod()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getGray()
public static Color getGray()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color structure representing a system-defined color.
getGreen()
public static Color getGreen()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getGreenYellow()
public static Color getGreenYellow()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getHoneydew()
public static Color getHoneydew()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getHotPink()
public static Color getHotPink()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getIndianRed()
public static Color getIndianRed()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getIndigo()
public static Color getIndigo()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getIvory()
public static Color getIvory()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getKhaki()
public static Color getKhaki()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLavender()
public static Color getLavender()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLavenderBlush()
public static Color getLavenderBlush()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLawnGreen()
public static Color getLawnGreen()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLemonChiffon()
public static Color getLemonChiffon()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightBlue()
public static Color getLightBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightCoral()
public static Color getLightCoral()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightCyan()
public static Color getLightCyan()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightGoldenrodYellow()
public static Color getLightGoldenrodYellow()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightGreen()
public static Color getLightGreen()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightGray()
public static Color getLightGray()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightPink()
public static Color getLightPink()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightSalmon()
public static Color getLightSalmon()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightSeaGreen()
public static Color getLightSeaGreen()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightSkyBlue()
public static Color getLightSkyBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightSlateGray()
public static Color getLightSlateGray()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightSteelBlue()
public static Color getLightSteelBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLightYellow()
public static Color getLightYellow()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLime()
public static Color getLime()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLimeGreen()
public static Color getLimeGreen()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getLinen()
public static Color getLinen()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMagenta()
public static Color getMagenta()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMaroon()
public static Color getMaroon()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumAquamarine()
public static Color getMediumAquamarine()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumBlue()
public static Color getMediumBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumOrchid()
public static Color getMediumOrchid()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumPurple()
public static Color getMediumPurple()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumSeaGreen()
public static Color getMediumSeaGreen()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumSlateBlue()
public static Color getMediumSlateBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumSpringGreen()
public static Color getMediumSpringGreen()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumTurquoise()
public static Color getMediumTurquoise()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMediumVioletRed()
public static Color getMediumVioletRed()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMidnightBlue()
public static Color getMidnightBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMintCream()
public static Color getMintCream()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMistyRose()
public static Color getMistyRose()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getMoccasin()
public static Color getMoccasin()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getNavajoWhite()
public static Color getNavajoWhite()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getNavy()
public static Color getNavy()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getOldLace()
public static Color getOldLace()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getOlive()
public static Color getOlive()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getOliveDrab()
public static Color getOliveDrab()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getOrange()
public static Color getOrange()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getOrangeRed()
public static Color getOrangeRed()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getOrchid()
public static Color getOrchid()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPaleGoldenrod()
public static Color getPaleGoldenrod()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPaleGreen()
public static Color getPaleGreen()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPaleTurquoise()
public static Color getPaleTurquoise()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPaleVioletRed()
public static Color getPaleVioletRed()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPapayaWhip()
public static Color getPapayaWhip()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPeachPuff()
public static Color getPeachPuff()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPeru()
public static Color getPeru()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPink()
public static Color getPink()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPlum()
public static Color getPlum()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPowderBlue()
public static Color getPowderBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getPurple()
public static Color getPurple()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getRed()
public static Color getRed()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getRosyBrown()
public static Color getRosyBrown()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getRoyalBlue()
public static Color getRoyalBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSaddleBrown()
public static Color getSaddleBrown()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSalmon()
public static Color getSalmon()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSandyBrown()
public static Color getSandyBrown()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSeaGreen()
public static Color getSeaGreen()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSeaShell()
public static Color getSeaShell()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSienna()
public static Color getSienna()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSilver()
public static Color getSilver()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSkyBlue()
public static Color getSkyBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSlateBlue()
public static Color getSlateBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSlateGray()
public static Color getSlateGray()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSnow()
public static Color getSnow()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSpringGreen()
public static Color getSpringGreen()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getSteelBlue()
public static Color getSteelBlue()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getTan()
public static Color getTan()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getTeal()
public static Color getTeal()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getThistle()
public static Color getThistle()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getTomato()
public static Color getTomato()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getTurquoise()
public static Color getTurquoise()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getViolet()
public static Color getViolet()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getWheat()
public static Color getWheat()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getWhite()
public static Color getWhite()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getWhiteSmoke()
public static Color getWhiteSmoke()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getYellow()
public static Color getYellow()
Restituisce un colore definito dal sistema.
Returns:
Color - A com.aspose.imaging.Color representing a system-defined color.
getYellowGreen()
public static Color getYellowGreen()
Restituisce un colore definito dal sistema.
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)
Verifica se due strutture com.aspose.imaging.Color specificate sono equivalenti.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| left | Color | Il com.aspose.imaging.Color che si trova a sinistra dell’operatore di uguaglianza. |
| right | Color | Il com.aspose.imaging.Color che si trova a destra dell’operatore di uguaglianza. |
Returns:
boolean - Vero se le due strutture com.aspose.imaging.Color sono uguali; altrimenti, falso.
op_Inequality(Color left, Color right)
public static boolean op_Inequality(Color left, Color right)
Verifica se due strutture com.aspose.imaging.Color specificate sono diverse.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| left | Color | Il com.aspose.imaging.Color che si trova a sinistra dell’operatore di disuguaglianza. |
| right | Color | Il com.aspose.imaging.Color che si trova a destra dell’operatore di disuguaglianza. |
Returns:
boolean - Vero se le due strutture com.aspose.imaging.Color sono diverse; altrimenti, falso.
fromArgb(int argb)
public static Color fromArgb(int argb)
Crea una struttura com.aspose.imaging.Color da un valore ARGB a 32 bit.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| argb | int | Un valore che specifica il valore ARGB a 32 bit. |
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)
Crea una struttura com.aspose.imaging.Color dai quattro valori dei componenti ARGB (alpha, rosso, verde e blu). Sebbene questo metodo consenta di passare un valore a 32 bit per ciascun componente, il valore di ogni componente è limitato a 8 bit.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| alpha | int | Il componente alpha. I valori validi sono da 0 a 255. |
| red | int | Il componente red. I valori validi sono da 0 a 255. |
| green | int | Il componente green. I valori validi sono da 0 a 255. |
| blue | int | Il componente blue. I valori validi sono da 0 a 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;
// Salva i pixel per l'intera immagine.
rasterImage.savePixels(rasterImage.getBounds(), colors);
// I pixel sono memorizzati nell'immagine originale nella forma non premoltiplicata.
// È necessario specificare esplicitamente l'opzione corrispondente per ottenere componenti di colore premoltiplicati.
// I componenti di colore premoltiplicati sono calcolati con le formule:
// 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)
Crea una struttura com.aspose.imaging.Color dai quattro valori dei componenti ARGB (alpha, rosso, verde e blu). Sebbene questo metodo consenta di passare un valore a 32 bit per ciascun componente, il valore di ogni componente è limitato a 8 bit.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| alpha | byte | Il componente alpha. I valori validi sono da 0 a 255. |
| red | byte | Il componente red. I valori validi sono da 0 a 255. |
| green | byte | Il componente green. I valori validi sono da 0 a 255. |
| blue | byte | Il componente blue. I valori validi sono da 0 a 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)
Crea una struttura com.aspose.imaging.Color dalla struttura com.aspose.imaging.Color specificata, ma con il nuovo valore alpha specificato. Sebbene questo metodo consenta di passare un valore a 32 bit per il valore alpha, il valore è limitato a 8 bit.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| alpha | int | Il valore alpha per il nuovo com.aspose.imaging.Color. I valori validi sono da 0 a 255. |
| baseColor | Color | Il com.aspose.imaging.Color da cui creare il nuovo 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)
Crea una struttura com.aspose.imaging.Color dai valori di colore a 8 bit specificati (red, green e blue). Il valore alpha è implicitamente 255 (completamente opaco). Sebbene questo metodo consenta di passare un valore a 32 bit per ciascun componente di colore, il valore di ogni componente è limitato a 8 bit.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| red | int | Il valore del componente rosso per il nuovo com.aspose.imaging.Color. I valori validi sono da 0 a 255. |
| green | int | Il valore del componente verde per il nuovo com.aspose.imaging.Color. I valori validi sono da 0 a 255. |
| blue | int | Il valore del componente blu per il nuovo com.aspose.imaging.Color. I valori validi sono da 0 a 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)
Crea una struttura com.aspose.imaging.Color dai valori di colore a 8 bit specificati (red, green e blue). Il valore alpha è implicitamente 255 (completamente opaco). Sebbene questo metodo consenta di passare un valore a 32 bit per ciascun componente di colore, il valore di ogni componente è limitato a 8 bit.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| red | byte | Il valore del componente rosso per il nuovo com.aspose.imaging.Color. I valori validi sono da 0 a 255. |
| green | byte | Il valore del componente verde per il nuovo com.aspose.imaging.Color. I valori validi sono da 0 a 255. |
| blue | byte | Il valore del componente blu per il nuovo com.aspose.imaging.Color. I valori validi sono da 0 a 255. |
Returns:
Color - The com.aspose.imaging.Color that this method creates.
fromKnownColor(int color)
public static Color fromKnownColor(int color)
Crea una struttura com.aspose.imaging.Color a partire dal colore predefinito specificato.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| colore | int | Un elemento dell’enumerazione Aspose.Imaging.KnownColor. |
Returns:
Color - The com.aspose.imaging.Color that this method creates.
fromName(String name)
public static Color fromName(String name)
Crea una struttura com.aspose.imaging.Color a partire dal nome specificato di un colore predefinito.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| nome | java.lang.String | Una stringa che è il nome di un colore predefinito. I nomi validi sono gli stessi dei nomi degli elementi dell’enumerazione Aspose.Imaging.KnownColor. |
Returns:
Color - The com.aspose.imaging.Color that this method creates.
toCmyk(Color[] pixels)
public static CmykColor[] toCmyk(Color[] pixels)
La conversione da Color a CMYKColor. Questo metodo è deprecato. Si prega di utilizzare una versione più efficace CmykColorHelper.toCmyk(Color[]).
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| pixels | Color[] | I pixel di tipo Color in formato RGB. |
Returns: com.aspose.imaging.CmykColor[] - Il CmykColor[].
toCmyk(Color pixel)
public static CmykColor toCmyk(Color pixel)
La conversione da Color a CMYKColor. Questo metodo è deprecato. Si prega di utilizzare una versione più efficace CmykColorHelper.toCmyk(Color).
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| pixel | Color | Il pixel di tipo Color in formato RGB. |
Returns: CmykColor - The CmykColor.
toCmykIcc(Color pixel, InputStream rgbIccStream, InputStream cmykIccStream)
public static CmykColor toCmykIcc(Color pixel, InputStream rgbIccStream, InputStream cmykIccStream)
La conversione da Color a CMYKColor usando la conversione icc con profili predefiniti. Questo metodo è deprecato. Si prega di utilizzare una versione più efficace CmykColorHelper.toCmykIcc(Color, InputStream, InputStream).
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| pixel | Color | Il pixel di tipo Color in formato RGB. |
| rgbIccStream | java.io.InputStream | Il flusso contenente il profilo icc rgb. |
| cmykIccStream | java.io.InputStream | Il flusso contenente il profilo icc cmyk. |
Returns: CmykColor - The CmykColor[].
toCmykIcc(Color pixel)
public static CmykColor toCmykIcc(Color pixel)
La conversione da Color a CMYKColor usando la conversione icc con profili predefiniti. Questo metodo è deprecato. Si prega di utilizzare una versione più efficace CmykColorHelper.toCmykIcc(Color).
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| pixel | Color | Il pixel di tipo Color in formato RGB. |
Returns: CmykColor - The CmykColor.
toCmykIcc(Color[] pixels)
public static CmykColor[] toCmykIcc(Color[] pixels)
La conversione da Color a CMYKColor usando la conversione icc con profili predefiniti. Questo metodo è deprecato. Si prega di utilizzare una versione più efficace CmykColorHelper.toCmykIcc(Color[]).
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| pixels | Color[] | I pixel di tipo Color in formato RGB. |
Returns: com.aspose.imaging.CmykColor[] - Il CmykColor[].
toCmykIcc(Color[] pixels, InputStream rgbIccStream, InputStream cmykIccStream)
public static CmykColor[] toCmykIcc(Color[] pixels, InputStream rgbIccStream, InputStream cmykIccStream)
La conversione da Color a CMYKColor usando la conversione icc. Questo metodo è deprecato. Si prega di utilizzare una versione più efficace CmykColorHelper.toCmykIcc(Color[], InputStream, InputStream).
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| pixels | Color[] | I pixel di tipo Color in formato RGB. |
| rgbIccStream | java.io.InputStream | Il flusso contenente il profilo icc rgb. |
| cmykIccStream | java.io.InputStream | Il flusso contenente il profilo icc cmyk. |
Returns: com.aspose.imaging.CmykColor[] - Il CmykColor[].
isEquals(Color obj1, Color obj2)
public static boolean isEquals(Color obj1, Color obj2)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| obj1 | Color | |
| obj2 | Color |
Returns: boolean
getR()
public byte getR()
Ottiene il valore del componente rosso di questa struttura com.aspose.imaging.Color.
Returns:
byte - Il valore del componente rosso di questo com.aspose.imaging.Color.
getG()
public byte getG()
Ottiene il valore del componente verde di questa struttura com.aspose.imaging.Color.
Returns:
byte - Il valore del componente verde di questo com.aspose.imaging.Color.
getB()
public byte getB()
Ottiene il valore del componente blu di questa struttura com.aspose.imaging.Color.
Returns:
byte - Il valore del componente blu di questo com.aspose.imaging.Color.
getA()
public byte getA()
Ottiene il valore del componente alfa di questa struttura com.aspose.imaging.Color.
Returns:
byte - Il valore del componente alfa di questo com.aspose.imaging.Color.
isKnownColor()
public boolean isKnownColor()
Restituisce un valore che indica se questa struttura com.aspose.imaging.Color è un colore predefinito. I colori predefiniti sono rappresentati dagli elementi dell’enumerazione Aspose.Imaging.KnownColor.
Returns:
boolean - True se questo com.aspose.imaging.Color è stato creato da un colore predefinito usando il metodo Aspose.Imaging.Color.FromName(String) o il metodo Aspose.Imaging.Color.FromKnownColor(Aspose.Imaging.KnownColor); altrimenti, false.
isEmpty()
public boolean isEmpty()
Restituisce un valore che indica se questa struttura com.aspose.imaging.Color non è inizializzata.
Returns: boolean - Questa proprietà restituisce true se questo colore non è inizializzato; altrimenti, false.
isNamedColor()
public boolean isNamedColor()
Restituisce un valore che indica se questa struttura com.aspose.imaging.Color è un colore con nome o un membro dell’enumerazione Aspose.Imaging.KnownColor.
Returns:
boolean - True se questo com.aspose.imaging.Color è stato creato usando il metodo Aspose.Imaging.Color.FromName(String) o il metodo Aspose.Imaging.Color.FromKnownColor(Aspose.Imaging.KnownColor); altrimenti, false.
getName()
public String getName()
Ottiene il nome di questa com.aspose.imaging.Color.
Returns:
java.lang.String - Il nome di questo com.aspose.imaging.Color.
getBrightness()
public float getBrightness()
Ottiene il valore di luminosità hue-saturation-brightness (HSB) per questa struttura com.aspose.imaging.Color.
Returns:
float - La luminosità di questo com.aspose.imaging.Color. La luminosità varia da 0.0 a 1.0, dove 0.0 rappresenta il nero e 1.0 rappresenta il bianco.
getHue()
public float getHue()
Ottiene il valore di tonalità hue-saturation-brightness (HSB), in gradi, per questa struttura com.aspose.imaging.Color.
Returns:
float - La tonalità, in gradi, di questo com.aspose.imaging.Color. La tonalità è misurata in gradi, variando da 0.0 a 360.0, nello spazio colore HSB.
getSaturation()
public float getSaturation()
Ottiene il valore di saturazione hue-saturation-brightness (HSB) per questa struttura com.aspose.imaging.Color.
Returns:
float - La saturazione di questo com.aspose.imaging.Color. La saturazione varia da 0.0 a 1.0, dove 0.0 è in scala di grigi e 1.0 è la massima saturazione.
toArgb()
public int toArgb()
Ottiene il valore ARGB a 32 bit di questa struttura com.aspose.imaging.Color.
Returns:
int - Il valore ARGB a 32 bit di questo com.aspose.imaging.Color.
toKnownColor()
public int toKnownColor()
Ottiene il valore Aspose.Imaging.KnownColor di questa struttura com.aspose.imaging.Color.
Returns:
int - Un elemento dell’enumerazione Aspose.Imaging.KnownColor, se il com.aspose.imaging.Color è creato da un colore predefinito utilizzando il metodo Aspose.Imaging.Color.FromName(String) o il metodo Aspose.Imaging.Color.FromKnownColor(Aspose.Imaging.KnownColor); altrimenti, 0.
toString()
public String toString()
Converte questa struttura com.aspose.imaging.Color in una stringa leggibile dall’uomo.
Returns:
java.lang.String - Una stringa che è il nome di questo com.aspose.imaging.Color, se il com.aspose.imaging.Color è creato da un colore predefinito utilizzando il metodo Aspose.Imaging.Color.FromName(String) o il metodo Aspose.Imaging.Color.FromKnownColor(Aspose.Imaging.KnownColor); altrimenti, una stringa che consiste nei nomi dei componenti ARGB e nei loro valori.
equals(Object obj)
public boolean equals(Object obj)
Verifica se l’oggetto specificato è una struttura com.aspose.imaging.Color ed è equivalente a questa struttura com.aspose.imaging.Color.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| obj | java.lang.Object | L’oggetto da testare. |
Returns:
boolean - Vero se obj è una struttura com.aspose.imaging.Color equivalente a questa struttura com.aspose.imaging.Color; altrimenti, falso.
hashCode()
public int hashCode()
Restituisce un codice hash per questa struttura com.aspose.imaging.Color.
Returns:
int - Un valore intero che specifica il codice hash per questo com.aspose.imaging.Color.
CloneTo(Color that)
public void CloneTo(Color that)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| that | Color |
Clone()
public Color Clone()
Returns: Color