Color

Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct

public class Color extends Struct<Color>

Constructors

ConstructorDescription
Color()

Fields

FieldDescription
EmptyEmpty Shared Field

Methods

MethodDescription
Clone()
CloneTo(T arg0)
CloneTo(Color that)that - must not be null
clone()
equals(Color obj1, Color obj2)
equals(Object obj)
fromArgb(int argb)
fromArgb(int alpha, Color baseColor)
fromArgb(int red, int green, int blue)
fromArgb(int alpha, int red, int green, int blue)
fromJava(Color nativeObject)
fromKnownColor(int color)
fromName(String name)
getA()
getAliceBlue()
getAntiqueWhite()
getAqua()
getAquamarine()
getAzure()
getB()
getBeige()
getBisque()
getBlack()
getBlanchedAlmond()
getBlue()
getBlueViolet()
getBrightness()
getBrown()
getBurlyWood()
getCadetBlue()
getChartreuse()
getChocolate()
getClass()
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()
getG()
getGainsboro()
getGhostWhite()
getGold()
getGoldenrod()
getGray()
getGreen()
getGreenYellow()
getHoneydew()
getHotPink()
getHue()
getIndianRed()
getIndigo()
getIvory()
getKhaki()
getLavender()
getLavenderBlush()
getLawnGreen()
getLemonChiffon()
getLightBlue()
getLightCoral()
getLightCyan()
getLightGoldenrodYellow()
getLightGray()
getLightGreen()
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()
getName()
getNativeObject()
getNavajoWhite()
getNavy()
getOldLace()
getOlive()
getOliveDrab()
getOrange()
getOrangeRed()
getOrchid()
getPaleGoldenrod()
getPaleGreen()
getPaleTurquoise()
getPaleVioletRed()
getPapayaWhip()
getPeachPuff()
getPeru()
getPink()
getPlum()
getPowderBlue()
getPurple()
getR()
getRed()
getRosyBrown()
getRoyalBlue()
getSaddleBrown()
getSalmon()
getSandyBrown()
getSaturation()
getSeaGreen()
getSeaShell()
getSienna()
getSilver()
getSkyBlue()
getSlateBlue()
getSlateGray()
getSnow()
getSpringGreen()
getSteelBlue()
getTan()
getTeal()
getThistle()
getTomato()
getTransparent()
getTurquoise()
getViolet()
getWheat()
getWhite()
getWhiteSmoke()
getYellow()
getYellowGreen()
hashCode()Reference Equals Method Is commented out because this is handled by the base class.
isEmpty()IsEmpty Property
isKnownColor()
isNamedColor()
isSystemColor()
notify()
notifyAll()
op_Equality(Color left, Color right)Equality Operator
op_Inequality(Color left, Color right)Inequality Operator
toArgb()
toJava(Color color)
toKnownColor()ToKnownColor method
toString()ToString Method
wait()
wait(long arg0)
wait(long arg0, int arg1)

Color()

public Color()

Empty

public static Color Empty

Empty Shared Field


An uninitialized Color Structure

Clone()

public Color Clone()

Returns: Color

CloneTo(T arg0)

public abstract void CloneTo(T arg0)

Parameters:

ParameterTypeDescription
arg0T

CloneTo(Color that)

public void CloneTo(Color that)

that - must not be null

Parameters:

ParameterTypeDescription
thatColor

clone()

public Object clone()

Returns: java.lang.Object

equals(Color obj1, Color obj2)

public static boolean equals(Color obj1, Color obj2)

Parameters:

ParameterTypeDescription
obj1Color
obj2Color

Returns: boolean

equals(Object obj)

public boolean equals(Object obj)

Parameters:

ParameterTypeDescription
objjava.lang.Object

Returns: boolean

fromArgb(int argb)

public static Color fromArgb(int argb)

Parameters:

ParameterTypeDescription
argbint

Returns: Color

fromArgb(int alpha, Color baseColor)

public static Color fromArgb(int alpha, Color baseColor)

Parameters:

ParameterTypeDescription
alphaint
baseColorColor

Returns: Color

fromArgb(int red, int green, int blue)

public static Color fromArgb(int red, int green, int blue)

Parameters:

ParameterTypeDescription
redint
greenint
blueint

Returns: Color

fromArgb(int alpha, int red, int green, int blue)

public static Color fromArgb(int alpha, int red, int green, int blue)

Parameters:

ParameterTypeDescription
alphaint
redint
greenint
blueint

Returns: Color

fromJava(Color nativeObject)

public static Color fromJava(Color nativeObject)

Parameters:

ParameterTypeDescription
nativeObjectjava.awt.Color

Returns: Color

fromKnownColor(int color)

public static Color fromKnownColor(int color)

Parameters:

ParameterTypeDescription
colorint

Returns: Color

fromName(String name)

public static Color fromName(String name)

Parameters:

ParameterTypeDescription
namejava.lang.String

Returns: Color

getA()

public byte getA()

Returns: byte

getAliceBlue()

public static Color getAliceBlue()

Returns: Color

getAntiqueWhite()

public static Color getAntiqueWhite()

Returns: Color

getAqua()

public static Color getAqua()

Returns: Color

getAquamarine()

public static Color getAquamarine()

Returns: Color

getAzure()

public static Color getAzure()

Returns: Color

getB()

public byte getB()

Returns: byte

getBeige()

public static Color getBeige()

Returns: Color

getBisque()

public static Color getBisque()

Returns: Color

getBlack()

public static Color getBlack()

Returns: Color

getBlanchedAlmond()

public static Color getBlanchedAlmond()

Returns: Color

getBlue()

public static Color getBlue()

Returns: Color

getBlueViolet()

public static Color getBlueViolet()

Returns: Color

getBrightness()

public float getBrightness()

Returns: float

getBrown()

public static Color getBrown()

Returns: Color

getBurlyWood()

public static Color getBurlyWood()

Returns: Color

getCadetBlue()

public static Color getCadetBlue()

Returns: Color

getChartreuse()

public static Color getChartreuse()

Returns: Color

getChocolate()

public static Color getChocolate()

Returns: Color

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCoral()

public static Color getCoral()

Returns: Color

getCornflowerBlue()

public static Color getCornflowerBlue()

Returns: Color

getCornsilk()

public static Color getCornsilk()

Returns: Color

getCrimson()

public static Color getCrimson()

Returns: Color

getCyan()

public static Color getCyan()

Returns: Color

getDarkBlue()

public static Color getDarkBlue()

Returns: Color

getDarkCyan()

public static Color getDarkCyan()

Returns: Color

getDarkGoldenrod()

public static Color getDarkGoldenrod()

Returns: Color

getDarkGray()

public static Color getDarkGray()

Returns: Color

getDarkGreen()

public static Color getDarkGreen()

Returns: Color

getDarkKhaki()

public static Color getDarkKhaki()

Returns: Color

getDarkMagenta()

public static Color getDarkMagenta()

Returns: Color

getDarkOliveGreen()

public static Color getDarkOliveGreen()

Returns: Color

getDarkOrange()

public static Color getDarkOrange()

Returns: Color

getDarkOrchid()

public static Color getDarkOrchid()

Returns: Color

getDarkRed()

public static Color getDarkRed()

Returns: Color

getDarkSalmon()

public static Color getDarkSalmon()

Returns: Color

getDarkSeaGreen()

public static Color getDarkSeaGreen()

Returns: Color

getDarkSlateBlue()

public static Color getDarkSlateBlue()

Returns: Color

getDarkSlateGray()

public static Color getDarkSlateGray()

Returns: Color

getDarkTurquoise()

public static Color getDarkTurquoise()

Returns: Color

getDarkViolet()

public static Color getDarkViolet()

Returns: Color

getDeepPink()

public static Color getDeepPink()

Returns: Color

getDeepSkyBlue()

public static Color getDeepSkyBlue()

Returns: Color

getDimGray()

public static Color getDimGray()

Returns: Color

getDodgerBlue()

public static Color getDodgerBlue()

Returns: Color

getFirebrick()

public static Color getFirebrick()

Returns: Color

getFloralWhite()

public static Color getFloralWhite()

Returns: Color

getForestGreen()

public static Color getForestGreen()

Returns: Color

getFuchsia()

public static Color getFuchsia()

Returns: Color

getG()

public byte getG()

Returns: byte

getGainsboro()

public static Color getGainsboro()

Returns: Color

getGhostWhite()

public static Color getGhostWhite()

Returns: Color

getGold()

public static Color getGold()

Returns: Color

getGoldenrod()

public static Color getGoldenrod()

Returns: Color

getGray()

public static Color getGray()

Returns: Color

getGreen()

public static Color getGreen()

Returns: Color

getGreenYellow()

public static Color getGreenYellow()

Returns: Color

getHoneydew()

public static Color getHoneydew()

Returns: Color

getHotPink()

public static Color getHotPink()

Returns: Color

getHue()

public float getHue()

Returns: float

getIndianRed()

public static Color getIndianRed()

Returns: Color

getIndigo()

public static Color getIndigo()

Returns: Color

getIvory()

public static Color getIvory()

Returns: Color

getKhaki()

public static Color getKhaki()

Returns: Color

getLavender()

public static Color getLavender()

Returns: Color

getLavenderBlush()

public static Color getLavenderBlush()

Returns: Color

getLawnGreen()

public static Color getLawnGreen()

Returns: Color

getLemonChiffon()

public static Color getLemonChiffon()

Returns: Color

getLightBlue()

public static Color getLightBlue()

Returns: Color

getLightCoral()

public static Color getLightCoral()

Returns: Color

getLightCyan()

public static Color getLightCyan()

Returns: Color

getLightGoldenrodYellow()

public static Color getLightGoldenrodYellow()

Returns: Color

getLightGray()

public static Color getLightGray()

Returns: Color

getLightGreen()

public static Color getLightGreen()

Returns: Color

getLightPink()

public static Color getLightPink()

Returns: Color

getLightSalmon()

public static Color getLightSalmon()

Returns: Color

getLightSeaGreen()

public static Color getLightSeaGreen()

Returns: Color

getLightSkyBlue()

public static Color getLightSkyBlue()

Returns: Color

getLightSlateGray()

public static Color getLightSlateGray()

Returns: Color

getLightSteelBlue()

public static Color getLightSteelBlue()

Returns: Color

getLightYellow()

public static Color getLightYellow()

Returns: Color

getLime()

public static Color getLime()

Returns: Color

getLimeGreen()

public static Color getLimeGreen()

Returns: Color

getLinen()

public static Color getLinen()

Returns: Color

getMagenta()

public static Color getMagenta()

Returns: Color

getMaroon()

public static Color getMaroon()

Returns: Color

getMediumAquamarine()

public static Color getMediumAquamarine()

Returns: Color

getMediumBlue()

public static Color getMediumBlue()

Returns: Color

getMediumOrchid()

public static Color getMediumOrchid()

Returns: Color

getMediumPurple()

public static Color getMediumPurple()

Returns: Color

getMediumSeaGreen()

public static Color getMediumSeaGreen()

Returns: Color

getMediumSlateBlue()

public static Color getMediumSlateBlue()

Returns: Color

getMediumSpringGreen()

public static Color getMediumSpringGreen()

Returns: Color

getMediumTurquoise()

public static Color getMediumTurquoise()

Returns: Color

getMediumVioletRed()

public static Color getMediumVioletRed()

Returns: Color

getMidnightBlue()

public static Color getMidnightBlue()

Returns: Color

getMintCream()

public static Color getMintCream()

Returns: Color

getMistyRose()

public static Color getMistyRose()

Returns: Color

getMoccasin()

public static Color getMoccasin()

Returns: Color

getName()

public String getName()

Returns: java.lang.String

getNativeObject()

public Color getNativeObject()

Returns: Color

getNavajoWhite()

public static Color getNavajoWhite()

Returns: Color

getNavy()

public static Color getNavy()

Returns: Color

getOldLace()

public static Color getOldLace()

Returns: Color

getOlive()

public static Color getOlive()

Returns: Color

getOliveDrab()

public static Color getOliveDrab()

Returns: Color

getOrange()

public static Color getOrange()

Returns: Color

getOrangeRed()

public static Color getOrangeRed()

Returns: Color

getOrchid()

public static Color getOrchid()

Returns: Color

getPaleGoldenrod()

public static Color getPaleGoldenrod()

Returns: Color

getPaleGreen()

public static Color getPaleGreen()

Returns: Color

getPaleTurquoise()

public static Color getPaleTurquoise()

Returns: Color

getPaleVioletRed()

public static Color getPaleVioletRed()

Returns: Color

getPapayaWhip()

public static Color getPapayaWhip()

Returns: Color

getPeachPuff()

public static Color getPeachPuff()

Returns: Color

getPeru()

public static Color getPeru()

Returns: Color

getPink()

public static Color getPink()

Returns: Color

getPlum()

public static Color getPlum()

Returns: Color

getPowderBlue()

public static Color getPowderBlue()

Returns: Color

getPurple()

public static Color getPurple()

Returns: Color

getR()

public byte getR()

Returns: byte

getRed()

public static Color getRed()

Returns: Color

getRosyBrown()

public static Color getRosyBrown()

Returns: Color

getRoyalBlue()

public static Color getRoyalBlue()

Returns: Color

getSaddleBrown()

public static Color getSaddleBrown()

Returns: Color

getSalmon()

public static Color getSalmon()

Returns: Color

getSandyBrown()

public static Color getSandyBrown()

Returns: Color

getSaturation()

public float getSaturation()

Returns: float

getSeaGreen()

public static Color getSeaGreen()

Returns: Color

getSeaShell()

public static Color getSeaShell()

Returns: Color

getSienna()

public static Color getSienna()

Returns: Color

getSilver()

public static Color getSilver()

Returns: Color

getSkyBlue()

public static Color getSkyBlue()

Returns: Color

getSlateBlue()

public static Color getSlateBlue()

Returns: Color

getSlateGray()

public static Color getSlateGray()

Returns: Color

getSnow()

public static Color getSnow()

Returns: Color

getSpringGreen()

public static Color getSpringGreen()

Returns: Color

getSteelBlue()

public static Color getSteelBlue()

Returns: Color

getTan()

public static Color getTan()

Returns: Color

getTeal()

public static Color getTeal()

Returns: Color

getThistle()

public static Color getThistle()

Returns: Color

getTomato()

public static Color getTomato()

Returns: Color

getTransparent()

public static Color getTransparent()

Returns: Color

getTurquoise()

public static Color getTurquoise()

Returns: Color

getViolet()

public static Color getViolet()

Returns: Color

getWheat()

public static Color getWheat()

Returns: Color

getWhite()

public static Color getWhite()

Returns: Color

getWhiteSmoke()

public static Color getWhiteSmoke()

Returns: Color

getYellow()

public static Color getYellow()

Returns: Color

getYellowGreen()

public static Color getYellowGreen()

Returns: Color

hashCode()

public int hashCode()

Reference Equals Method Is commented out because this is handled by the base class. TODO: Is it correct to let the base class handel reference equals

GetHashCode Method


Checks equivalence of this Color and another object.


Calculates a hashing value.

Returns: int

isEmpty()

public boolean isEmpty()

IsEmpty Property


Indicates transparent black. R,G,B = 0; A=0?

Returns: boolean

isKnownColor()

public boolean isKnownColor()

Returns: boolean

isNamedColor()

public boolean isNamedColor()

Returns: boolean

isSystemColor()

public boolean isSystemColor()

Returns: boolean

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

op_Equality(Color left, Color right)

public static boolean op_Equality(Color left, Color right)

Equality Operator


Compares two Color objects. The return value is based on the equivalence of the A,R,G,B properties of the two Colors.

Parameters:

ParameterTypeDescription
leftColor
rightColor

Returns: boolean

op_Inequality(Color left, Color right)

public static boolean op_Inequality(Color left, Color right)

Inequality Operator


Compares two Color objects. The return value is based on the equivalence of the A,R,G,B properties of the two colors.

Parameters:

ParameterTypeDescription
leftColor
rightColor

Returns: boolean

toArgb()

public int toArgb()

Returns: int

toJava(Color color)

public static Color toJava(Color color)

Parameters:

ParameterTypeDescription
colorColor

Returns: Color

toKnownColor()

public int toKnownColor()

ToKnownColor method


Returns the KnownColor enum value for this color, 0 if is not known.

Returns: int

toString()

public String toString()

ToString Method


Formats the Color as a string in ARGB notation.

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int