GMColorMBS class
Online Documentation - Statistics - FAQ - Plugin Parts (All , Dependencies ) - Class hierarchy
New in Version
22.2
22.3
22.4
22.5
23.0
23.1
23.2
23.3
23.4
23.5
24.0
24.1
The list of the topics ,
classes ,
interfaces ,
controls ,
modules ,
global methods by category ,
global methods by name ,
screenshots ,
licenses
and examples .
Platforms to show: All Mac Windows Linux Cross-Platform
GMColorMBS class
Color is the base color class.
Example
dim c as new GMColorMBS(127 ,255 ,127 ) // light green MsgBox str(c.redQuantum)+" " +str(c.greenQuantum)+" " +str(c.blueQuantum)
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
7 methods
9 shared methods
shared method Black as GMColorMBS
shared method Color (ColorValue as Color) as GMColorMBS
shared method Color (ColorValue as Color, alpha as Integer) as GMColorMBS
shared method Color (red as integer, green as integer, blue as integer) as GMColorMBS
shared method Color (red as integer, green as integer, blue as integer, alpha as Integer) as GMColorMBS
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 GMColorMBS
Sub classes:
Some methods using this class:
GMColorGrayMBS.Constructor (other as GMColorMBS)
GMColorMonoMBS.Constructor (other as GMColorMBS)
GMGraphicsMBS.StrokeColor (c as GMColorMBS)
GMGraphicsMBS.TextUnderColor (c as GMColorMBS)
GMImageMBS.colorize (opacity as UInt32, penColor as GMColorMBS)
GMImageMBS.extent (geo as GMGeometryMBS , backgroundColor as GMColorMBS)
GMImageMBS.extent (geo as GMGeometryMBS , backgroundColor as GMColorMBS, gravity as Integer)
GMImageMBS.floodFillColor (point as GMGeometryMBS , fillColor as GMColorMBS, borderColor as GMColorMBS)
GMImageMBS.floodFillTexture (point as GMGeometryMBS , fillColor as GMColorMBS)
GMImageMBS.matteFloodfill (target as GMColorMBS, opacity as UInt32, x as Integer, y as Integer, PaintMethod as Integer)
Some properties using for this class:
Some examples using this class:
Blog Entries
Release notes
Version 18.3
Added convenience shared methods for GMColorMBS class.
The items on this page are in the following plugins: MBS GraphicsMagick Plugin .
GMColorHSLMBS
-
GMColorMonoMBS