Platforms to show: All Mac Windows Linux Cross-Platform
Back to GMGraphicsMBS class.
GMGraphicsMBS.Arc(startX as Double, startY as Double, endX as Double, endY as Double, startDegrees as Double, endDegrees as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.Bezier(values() as GMCoordinateMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.DashArray(values() as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The strokeDashArray represents a zero-terminated array of numbers that specify the lengths of alternating dashes and gaps in pixels. If an odd number of values is provided, then the list of values is repeated to yield an even number of values. A typical strokeDashArray array might contain the members 5 3 2 0, where the zero value indicates the end of the pattern array.
GMGraphicsMBS.DashOffset(offset as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See documentation on SVG's stroke-dashoffset property for usage details.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.Ellipse(originX as Double, originY as Double, perimX as Double, perimY as Double, arcStart as Double, arcEnd as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If a fill color is specified, then the object is filled.
GMGraphicsMBS.FillColor(c as GMColorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.FillOpacity(opacity as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.FillRule(fillRule as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See documentation on SVG's fill-rule property for usage details.
GMGraphicsMBS.Font(fontname as string)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
GMGraphicsMBS.Font(fontname as string, StyleType as Integer, weight as Integer, StretchType as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Specify font family, style, weight (one of the set { 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 } with 400 being the normal size), and stretch to be used to select the font used when drawing text. Wildcard matches may be applied to style via the AnyStyle enumeration, applied to weight if weight is zero, and applied to stretch via the AnyStretch enumeration.
See also:
GMGraphicsMBS.Gravity(GravityType as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.Line(startX as Double, startY as Double, endX as Double, endY as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.Matte(x as Double, y as Double, paintMethod as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The point method changes the matte value of the target pixel. The replace method changes the matte value of any pixel that matches the color of the target pixel. Floodfill changes the matte value of any pixel that matches the color of the target pixel and is a neighbor, whereas filltoborder changes the matte value of any neighbor pixel that is not the border color, Finally reset changes the matte value of all pixels.
Paint methods:
| PointMethod | 0 | Replace pixel color at point. |
| ReplaceMethod | 1 | Replace color for all image pixels matching color at point. |
| FloodfillMethod | 2 | Replace color for pixels surrounding point until encountering pixel that fails to match color at point. |
| FillToBorderMethod | 3 | Replace color for pixels surrounding point until encountering pixels matching border color. |
| ResetMethod | 4 | Replace colors for all pixels in image with pen color. |
GMGraphicsMBS.MiterLimit(miterlimit as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
When two line segments meet at a sharp angle and miter joins have been specified for 'lineJoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path. The miterLimit' imposes a limit on the ratio of the miter length to the 'lineWidth'. The default value of this parameter is 4.
GMGraphicsMBS.Rectangle(upperLeftX as Double, upperLeftY as Double, lowerRightX as Double, lowerRightY as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If a fill color is specified, then the object is filled.
GMGraphicsMBS.Rotation(angle as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.RoundRectangle(centerX as Double, centerY as Double, width as Double, height as Double, cornerWidth as Double, cornerHeight as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If a fill color is specified, then the object is filled.
GMGraphicsMBS.Scaling(x as Double, y as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.SkewX(angle as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.SkewY(angle as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.StrokeAntialias(flag as boolean)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.StrokeColor(c as GMColorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.StrokeLineCap(LineCap as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Values of LineCap are UndefinedCap, ButtCap, RoundCap, and SquareCap.
GMGraphicsMBS.StrokeLineJoin(LineJoin as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Values of LineJoin are UndefinedJoin, MiterJoin, RoundJoin, and BevelJoin.
GMGraphicsMBS.StrokeOpacity(opacity as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.StrokeWidth(opacity as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.Text(x as Double, y as Double, text as string)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If text contains special format characters the image filename, type, width, height, or other image attributes may be incorporated in the text (see label).
See also:
GMGraphicsMBS.Text(x as Double, y as Double, text as string, encoding as string)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If text contains special format characters the image filename, type, width, height, or other image attributes may be incorporated in the text (see label()).
The text encoding specifies the code set to use for text annotations. The only character encoding which may be specified at this time is "UTF-8" for representing Unicode as a sequence of bytes. Specify an empty string to set text encoding to the system's default. Successful text annotation using Unicode may require fonts designed to support Unicode.
Seems like you need ghostscript or the DPS library for text handling, so it may no be available for you.
See also:
GMGraphicsMBS.TextAntialias(flag as boolean)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The main reason to disable text antialiasing is to avoid adding new colors to the image.
GMGraphicsMBS.TextDecoration(DecorationType as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.TextUnderColor(c as GMColorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.Translation(x as Double, y as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMGraphicsMBS.Viewbox(x1 as Integer, y1 as Integer, x2 as Integer, y2 as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If the image is to be written to a vector format (e.g. MVG or SVG), then a PushGraphicContext() object should be pushed to the head of the list, followed by a Viewbox() statement to establish the output canvas size. A matching PopGraphicContext() object should be pushed to the tail of the list.
The items on this page are in the following plugins: MBS GraphicsMagick Plugin.