Platforms to show: All Mac Windows Linux Cross-Platform

Back to GMColorMBS class.

GMColorMBS.Black as GMColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method GraphicsMagick MBS GraphicsMagick Plugin 18.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries a black color.
Example
dim black as GMColorMBS = GMColorMBS.Black

MsgBox str(black.colorValue)

GMColorMBS.Color(ColorValue as Color, alpha as Integer) as GMColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method GraphicsMagick MBS GraphicsMagick Plugin 18.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts color from Xojo to GMColorMBS with separate alpha value.
Example
dim c as GMColorMBS = GMColorMBS.Color(&cFF0000, 128)

MsgBox str(c.colorValue)+" "+str(c.alpha)

Alpha in range from 0 to 255.

See also:

GMColorMBS.Color(red as integer, green as integer, blue as integer) as GMColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method GraphicsMagick MBS GraphicsMagick Plugin 18.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates color with RGB values.
Example
dim c as GMColorMBS = GMColorMBS.Color(127, 191, 255)

MsgBox str(c.colorValue)

Range in 0 to 255 for 8bit and 0 to 65535 for 16bit class.

See also:

GMColorMBS.Color(red as integer, green as integer, blue as integer, alpha as Integer) as GMColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method GraphicsMagick MBS GraphicsMagick Plugin 18.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates color with RGB values.
Example
dim c as GMColorMBS = GMColorMBS.Color(127, 191, 255, 127)

MsgBox str(c.colorValue)+" "+str(c.alphaQuantum)

Range in 0 to 255 for 8bit and 0 to 65535 for 16bit class.

See also:

GMColorMBS.QuantumByteSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The quantum byte size.
Example
MsgBox str(GMColorMBS.QuantumByteSize)

As the plugin uses 8 bit this value should be 1.

GMColorMBS.scaleDoubleToQuantum(value as Double) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Scales a double value to a value in the range of a quantum.
Example
dim d as Double = 1.0
dim v as Integer = GMColorMBS.scaleDoubleToQuantum(d)
MsgBox str(v)

As the plugin uses 8 bit quantums, this is basicly a multiplication by 255.0

GMColorMBS.scaleQuantumToDouble(value as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Scales a quantum to a double value.
Example
dim v as Integer = 255
dim d as Double = GMColorMBS.scaleQuantumToDouble(v)
MsgBox str(d)

The plugin uses 8bit quantums, so this is basicly the division of value by 255.0

GMColorMBS.White as GMColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method GraphicsMagick MBS GraphicsMagick Plugin 18.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries a white color.
Example
dim White as GMColorMBS = GMColorMBS.White

MsgBox str(White.colorValue)

The items on this page are in the following plugins: MBS GraphicsMagick Plugin.


The biggest plugin in space...