Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

GM16ColorMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Color is the base color class.
Example:
dim c as new GM16ColorMBS(127,255,127) // light green
MsgBox str(c.redQuantum)+" "+str(c.greenQuantum)+" "+str(c.blueQuantum)
Notes: It is a simple container class for the pixel red, green, blue, and alpha values scaled to fit GraphicsMagick's Quantum size. Normally users will instantiate a class derived from Color which supports the color model that fits the needs of the application. The Color class may be constructed directly from an X11-style color string. As a perhaps odd design decision, the value transparent black is considered to represent an unset value (invalid color) in many cases. This choice was made since it avoided using more memory. The default Color constructor constructs an invalid color (i.e. transparent black) and may be used as a parameter in order to remove a color setting.

Feedback, Comments & Corrections

Sub classes:

Some methods using this class:

Some properties using for this class:

Some examples which use this class:


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


GM16ColorHSLMBS   -   GM16ColorMonoMBS




Links
MBS Xojo blog