Platforms to show: All Mac Windows Linux Cross-Platform

Back to GMColorMBS class.

GMColorMBS.alpha as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The alpha value of this color.
Example
dim c as new GMColorMBS(1,2,3,1.0)
MsgBox str(c.alpha)

Range is 0.0 to 1.0. If you pass values higher, they are divided by 255.
(Read and Write property)

GMColorMBS.alphaQuantum as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The alpha color value.

For 8-bit range is 0 to 255.
For 16-bit range is 0 to 65535.
(Read and Write property)

GMColorMBS.blueQuantum as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The blue color value.
Example
dim c as new GMColorMBS(1,2,3)
MsgBox str(c.redQuantum) // 3

For 8-bit range is 0 to 255.
For 16-bit range is 0 to 65535.
(Read and Write property)

GMColorMBS.colorValue as color

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The Xojo color for the GraphicsMagick color.
Example
dim c as new GMColorMBS(&cFF0102)
MsgBox str(c.ColorValue)

(Read and Write property)

GMColorMBS.greenQuantum as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The green color value.
Example
dim r as new GMColorMBS(1,2,3)
MsgBox str(r.greenQuantum) // shows 2

For 8-bit range is 0 to 255.
For 16-bit range is 0 to 65535.
(Read and Write property)

GMColorMBS.handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The internal color reference.
Example
dim r as new GMColorMBS(1,2,3)
MsgBox str(r.handle)

(Read and Write property)

GMColorMBS.intensity as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The intensity of this color.
Example
dim c as new GMColorMBS(1,2,3)
MsgBox str(c.intensity)

(Read only property)

GMColorMBS.isValid as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Does object contain valid color?
Example
dim c as new GMColorMBS(1,2,3)
MsgBox str(c.isValid)

(Read and Write property)

GMColorMBS.redQuantum as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The red color value.
Example
dim c as new GMColorMBS(1,2,3)
MsgBox str(c.redQuantum) // 1

For 8-bit range is 0 to 255.
For 16-bit range is 0 to 65535.
(Read and Write property)

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


The biggest plugin in space...