Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

GMColorMBS.Black as GMColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method GraphicsMagick MBS GraphicsMagick Plugin 18.3 Yes Yes Yes Yes No
Function: Queries a black color.
Example:
dim black as GMColorMBS = GMColorMBS.Black

MsgBox str(black.colorValue)

Feedback, Comments & Corrections

GMColorMBS.Color(ColorValue as Color) as GMColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method GraphicsMagick MBS GraphicsMagick Plugin 18.3 Yes Yes Yes Yes No
Function: Converts color from Xojo to GMColorMBS.
Example:
dim c as GMColorMBS = GMColorMBS.Color(&cFF0000)

MsgBox str(c.colorValue)

See also:

Feedback, Comments & Corrections

GMColorMBS.Color(ColorValue as Color, alpha as Integer) as GMColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method GraphicsMagick MBS GraphicsMagick Plugin 18.3 Yes Yes Yes Yes No
Function: 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)
Notes: Alpha in range from 0 to 255.

See also:

Feedback, Comments & Corrections

GMColorMBS.Color(red as integer, green as integer, blue as integer) as GMColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method GraphicsMagick MBS GraphicsMagick Plugin 18.3 Yes Yes Yes Yes No
Function: Creates color with RGB values.
Example:
dim c as GMColorMBS = GMColorMBS.Color(127, 191, 255)

MsgBox str(c.colorValue)
Notes: Range in 0 to 255 for 8bit and 0 to 65535 for 16bit class.

See also:

Feedback, Comments & Corrections

GMColorMBS.Color(red as integer, green as integer, blue as integer, alpha as Integer) as GMColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method GraphicsMagick MBS GraphicsMagick Plugin 18.3 Yes Yes Yes Yes No
Function: Creates color with RGB values.
Example:
dim c as GMColorMBS = GMColorMBS.Color(127, 191, 255, 127)

MsgBox str(c.colorValue)+" "+str(c.alphaQuantum)
Notes: Range in 0 to 255 for 8bit and 0 to 65535 for 16bit class.

See also:

Feedback, Comments & Corrections

GMColorMBS.QuantumByteSize as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: The quantum byte size.
Example:
MsgBox str(GMColorMBS.QuantumByteSize)
Notes: As the plugin uses 8 bit this value should be 1.

Feedback, Comments & Corrections

GMColorMBS.scaleDoubleToQuantum(value as Double) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: 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)
Notes: As the plugin uses 8 bit quantums, this is basicly a multiplication by 255.0

Feedback, Comments & Corrections

GMColorMBS.scaleQuantumToDouble(value as Integer) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Scales a quantum to a double value.
Example:
dim v as Integer = 255
dim d as Double = GMColorMBS.scaleQuantumToDouble(v)
MsgBox str(d)
Notes: The plugin uses 8bit quantums, so this is basicly the division of value by 255.0

Feedback, Comments & Corrections

GMColorMBS.White as GMColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method GraphicsMagick MBS GraphicsMagick Plugin 18.3 Yes Yes Yes Yes No
Function: Queries a white color.
Example:
dim White as GMColorMBS = GMColorMBS.White

MsgBox str(White.colorValue)

Feedback, Comments & Corrections

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





Links
MBS Xojo PDF Plugins