public class Color extends ValueType
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Windows.Media.Color
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: PresentationCore, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
|
static java.lang.String |
assemblyShortName
Assembly name: PresentationCore
|
static java.lang.String |
className
Qualified class name: System.Windows.Media.Color
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Color() |
Color(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Color |
Add(Color color1,
Color color2)
Invokes the .NET member Add.
|
static boolean |
AreClose(Color color1,
Color color2)
Invokes the .NET member AreClose.
|
static Color |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Color, a cast assert is made to check if types are compatible. |
void |
Clamp()
Invokes the .NET member Clamp.
|
boolean |
Equals(Color color)
Invokes the .NET member Equals.
|
static boolean |
Equals(Color color1,
Color color2)
Invokes the .NET member Equals.
|
static Color |
FromArgb(byte a,
byte r,
byte g,
byte b)
Invokes the .NET member FromArgb.
|
static Color |
FromAValues(Single a,
Single[] values,
Uri profileUri)
Invokes the .NET member FromAValues.
|
static Color |
FromRgb(byte r,
byte g,
byte b)
Invokes the .NET member FromRgb.
|
static Color |
FromScRgb(Single a,
Single r,
Single g,
Single b)
Invokes the .NET member FromScRgb.
|
static Color |
FromValues(Single[] values,
Uri profileUri)
Invokes the .NET member FromValues.
|
byte |
getA()
Gets the value of the .NET property A.
|
byte |
getB()
Gets the value of the .NET property B.
|
ColorContext |
getColorContext()
Gets the value of the .NET property ColorContext.
|
byte |
getG()
Gets the value of the .NET property G.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
Single[] |
GetNativeColorValues()
Invokes the .NET member GetNativeColorValues.
|
byte |
getR()
Gets the value of the .NET property R.
|
Single |
getScA()
Gets the value of the .NET property ScA.
|
Single |
getScB()
Gets the value of the .NET property ScB.
|
Single |
getScG()
Gets the value of the .NET property ScG.
|
Single |
getScR()
Gets the value of the .NET property ScR.
|
static Color |
Multiply(Color color,
Single coefficient)
Invokes the .NET member Multiply.
|
void |
setA(byte A)
Sets the value of the .NET property A.
|
void |
setB(byte B)
Sets the value of the .NET property B.
|
void |
setG(byte G)
Sets the value of the .NET property G.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setR(byte R)
Sets the value of the .NET property R.
|
void |
setScA(Single ScA)
Sets the value of the .NET property ScA.
|
void |
setScB(Single ScB)
Sets the value of the .NET property ScB.
|
void |
setScG(Single ScG)
Sets the value of the .NET property ScG.
|
void |
setScR(Single ScR)
Sets the value of the .NET property ScR.
|
static Color |
Subtract(Color color1,
Color color2)
Invokes the .NET member Subtract.
|
java.lang.String |
ToString(IFormatProvider provider)
Invokes the .NET member ToString.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Color()
throws java.lang.Throwable
java.lang.Throwablepublic Color(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static Color Add(Color color1, Color color2) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, NotSupportedException, OutOfMemoryException, CultureNotFoundException, UnreachableException, FileFormatException, WebException, Win32Exception, CookieException, UriFormatException, IOException, ObjectDisposedException, SecurityException, UnauthorizedAccessException, FileNotFoundException, RankException, ArrayTypeMismatchException, AccessViolationException
color1 - the argument of type Colorcolor2 - the argument of type Colorjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itUnreachableException - if the .NET member raises itFileFormatException - if the .NET member raises itWebException - if the .NET member raises itWin32Exception - if the .NET member raises itCookieException - if the .NET member raises itUriFormatException - if the .NET member raises itIOException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSecurityException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itFileNotFoundException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itAccessViolationException - if the .NET member raises itpublic static boolean AreClose(Color color1, Color color2) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, IndexOutOfRangeException
color1 - the argument of type Colorcolor2 - the argument of type Colorjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic static Color cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Color, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedColor instancejava.lang.Throwable - in case of error during cast operationpublic void Clamp()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean Equals(Color color) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException
color - the argument of type Colorjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic static boolean Equals(Color color1, Color color2) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException
color1 - the argument of type Colorcolor2 - the argument of type Colorjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic static Color FromArgb(byte a, byte r, byte g, byte b) throws java.lang.Throwable
a - the argument of type byter - the argument of type byteg - the argument of type byteb - the argument of type bytejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Color FromAValues(Single a, Single[] values, Uri profileUri) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, FileFormatException, OutOfMemoryException, IndexOutOfRangeException, WebException, Win32Exception, CookieException, UriFormatException, IOException, ObjectDisposedException, SecurityException, UnauthorizedAccessException, FileNotFoundException, AccessViolationException
a - the argument of type Singlevalues - the argument of type Single[]profileUri - the argument of type Urijava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFileFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itWebException - if the .NET member raises itWin32Exception - if the .NET member raises itCookieException - if the .NET member raises itUriFormatException - if the .NET member raises itIOException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSecurityException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itFileNotFoundException - if the .NET member raises itAccessViolationException - if the .NET member raises itpublic static Color FromRgb(byte r, byte g, byte b) throws java.lang.Throwable
r - the argument of type byteg - the argument of type byteb - the argument of type bytejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Color FromScRgb(Single a, Single r, Single g, Single b) throws java.lang.Throwable
a - the argument of type Singler - the argument of type Singleg - the argument of type Singleb - the argument of type Singlejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Color FromValues(Single[] values, Uri profileUri) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, PlatformNotSupportedException, ArgumentOutOfRangeException, FileFormatException, WebException, Win32Exception, CookieException, IOException, ObjectDisposedException, SecurityException, FileNotFoundException, IndexOutOfRangeException, OutOfMemoryException, AccessViolationException
values - the argument of type Single[]profileUri - the argument of type Urijava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFileFormatException - if the .NET member raises itWebException - if the .NET member raises itWin32Exception - if the .NET member raises itCookieException - if the .NET member raises itIOException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSecurityException - if the .NET member raises itFileNotFoundException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itAccessViolationException - if the .NET member raises itpublic byte getA()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic byte getB()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic ColorContext getColorContext() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic byte getG()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ValueTypepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ValueTypepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ValueTypenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ValueTypepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class ValueTypepublic Single[] GetNativeColorValues() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic byte getR()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Single getScA() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Single getScB() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Single getScG() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Single getScR() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Color Multiply(Color color, Single coefficient) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, OutOfMemoryException, InvalidOperationException, FileFormatException, WebException, Win32Exception, CookieException, IOException, ObjectDisposedException, SecurityException, FileNotFoundException, RankException, ArrayTypeMismatchException, AccessViolationException
color - the argument of type Colorcoefficient - the argument of type Singlejava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFileFormatException - if the .NET member raises itWebException - if the .NET member raises itWin32Exception - if the .NET member raises itCookieException - if the .NET member raises itIOException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSecurityException - if the .NET member raises itFileNotFoundException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itAccessViolationException - if the .NET member raises itpublic void setA(byte A)
throws java.lang.Throwable
A - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setB(byte B)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException
B - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setG(byte G)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException
G - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class ValueTypeinstance - the new underlying objectpublic void setR(byte R)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException
R - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setScA(Single ScA) throws java.lang.Throwable
ScA - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setScB(Single ScB) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
ScB - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setScG(Single ScG) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
ScG - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setScR(Single ScR) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
ScR - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic static Color Subtract(Color color1, Color color2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, IndexOutOfRangeException, NotSupportedException, UnreachableException, FileFormatException, WebException, Win32Exception, CookieException, UriFormatException, IOException, SecurityException, UnauthorizedAccessException, FileNotFoundException, RankException, ArrayTypeMismatchException, AccessViolationException
color1 - the argument of type Colorcolor2 - the argument of type Colorjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itUnreachableException - if the .NET member raises itFileFormatException - if the .NET member raises itWebException - if the .NET member raises itWin32Exception - if the .NET member raises itCookieException - if the .NET member raises itUriFormatException - if the .NET member raises itIOException - if the .NET member raises itSecurityException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itFileNotFoundException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itAccessViolationException - if the .NET member raises itpublic java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, FormatException, ArgumentNullException, ObjectDisposedException, SecurityException, IOException, UnauthorizedAccessException, UnreachableException, UriFormatException, OutOfMemoryException
provider - the argument of type IFormatProviderjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOverflowException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSecurityException - if the .NET member raises itIOException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itUnreachableException - if the .NET member raises itUriFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises it