Platforms to show: All Mac Windows Linux Cross-Platform
GM16ColorMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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.
- 9 properties
- property alpha as Double
- property alphaQuantum as Integer
- property blueQuantum as Integer
- property colorValue as color
- property greenQuantum as Integer
- property handle as Integer
- property intensity as Double
- property isValid as boolean
- property redQuantum as Integer
- 7 methods
- method Constructor
- method Constructor(ColorName as string)
- method Constructor(ColorValue as color)
- method Constructor(ColorValue as color, alpha as Integer)
- method Constructor(other as GM16ColorMBS)
- method Constructor(red as Integer, green as Integer, blue as Integer)
- method Constructor(red as Integer, green as Integer, blue as Integer, alpha as Integer)
- 9 shared methods
- shared method Black as GM16ColorMBS
- shared method Color(ColorValue as Color) as GM16ColorMBS
- shared method Color(ColorValue as Color, alpha as Integer) as GM16ColorMBS
- shared method Color(red as integer, green as integer, blue as integer) as GM16ColorMBS
- shared method Color(red as integer, green as integer, blue as integer, alpha as Integer) as GM16ColorMBS
- shared method QuantumByteSize as Integer
- shared method scaleDoubleToQuantum(value as Double) as Integer
- shared method scaleQuantumToDouble(value as Integer) as Double
- shared method White as GM16ColorMBS
Sub classes:
- class GM16ColorGrayMBS
- class GM16ColorHSLMBS
- class GM16ColorMonoMBS
- class GM16ColorRGBMBS
- class GM16ColorYUVMBS
Some methods using this class:
- GM16ColorGrayMBS.Constructor(other as GM16ColorMBS)
- GM16GraphicsMBS.FillColor(c as GM16ColorMBS)
- GM16ImageMBS.colorize(opacityRed as UInt32, opacityGreen as UInt32, opacityBlue as UInt32, penColor as GM16ColorMBS)
- GM16ImageMBS.colorMap as GM16ColorMBS()
- GM16ImageMBS.Constructor(size as GM16GeometryMBS, ColorValue as GM16ColorMBS)
- GM16ImageMBS.extent(geo as GM16GeometryMBS, backgroundColor as GM16ColorMBS, gravity as Integer)
- GM16ImageMBS.floodFillColor(point as GM16GeometryMBS, fillColor as GM16ColorMBS)
- GM16ImageMBS.floodFillTexture(point as GM16GeometryMBS, fillColor as GM16ColorMBS, borderColor as GM16ColorMBS)
- GM16ImageMBS.floodFillTexture(x as UInt32, y as UInt32, fillColor as GM16ColorMBS)
- GM16ImageMBS.transparent(color as GM16ColorMBS)
Some properties using for this class:
- GM16ImageMBS.borderColor as GM16ColorMBS
- GM16ImageMBS.matteColor as GM16ColorMBS
- GM16ImageMBS.penColor as GM16ColorMBS
- GM16ImageMBS.strokeColor as GM16ColorMBS
- GM16ImageMBS.colorMap(index as UInt32) as GM16ColorMBS
- GM16ImageMBS.pixelColor(x as UInt32, y as UInt32) as GM16ColorMBS
- GM16MontageFramedMBS.borderColor as GM16ColorMBS
- GM16MontageFramedMBS.matteColor as GM16ColorMBS
- GM16MontageMBS.backgroundColor as GM16ColorMBS
- GM16MontageMBS.transparentColor as GM16ColorMBS
Some examples using this class:
Blog Entries
The items on this page are in the following plugins: MBS GraphicsMagick Plugin.
GM16ColorHSLMBS - GM16ColorMonoMBS