Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

GMGraphicsMBS.SkewY(angle as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Apply Skew in Y direction.
Example:
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

image.strokeWidth = 5

dim draw as GMGraphicsMBS = image.Graphics

draw.StrokeColor new GMColorRGBMBS("red")
draw.Line(100,100,400,400)
draw.SkewY 5
draw.StrokeColor new GMColorRGBMBS("blue")
draw.Line(100,100,400,400)
draw.Draw

Backdrop=image.CopyPicture

Feedback, Comments & Corrections

GMGraphicsMBS.StrokeAntialias(flag as boolean)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Antialias while drawing lines or object outlines.

Feedback, Comments & Corrections

GMGraphicsMBS.StrokeColor(c as GMColorMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Set color to use when drawing lines or object outlines.
Example:
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

image.strokeWidth = 5

dim draw as GMGraphicsMBS = image.Graphics

draw.StrokeColor new GMColorRGBMBS("red")
draw.Line(100,100,400,400)
draw.Draw

Backdrop=image.CopyPicture

Feedback, Comments & Corrections

GMGraphicsMBS.StrokeLineCap(LineCap as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Specify the shape to be used at the end of open subpaths when they are stroked.
Notes: Values of LineCap are UndefinedCap, ButtCap, RoundCap, and SquareCap.

Feedback, Comments & Corrections

GMGraphicsMBS.StrokeLineJoin(LineJoin as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Specify the shape to be used at the corners of paths (or other vector shapes) when they are stroked.
Notes: Values of LineJoin are UndefinedJoin, MiterJoin, RoundJoin, and BevelJoin.

Feedback, Comments & Corrections

GMGraphicsMBS.StrokeOpacity(opacity as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Opacity to use when drawing lines or object outlines.

Feedback, Comments & Corrections

GMGraphicsMBS.StrokeWidth(opacity as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Set width to use when drawing lines or object outlines.

Feedback, Comments & Corrections

GMGraphicsMBS.Text(x as Double, y as Double, text as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Annotate image with text using stroke color, font, font pointsize, and box color (text background color), at specified coordinates.
Example:
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

dim draw as GMGraphicsMBS = image.Graphics

// draw red text
draw.strokeColor(new GMColorRGBMBS("red")) // Outline color
draw.strokeWidth(1)
draw.Font("/Library/Fonts/Verdana.ttf")
draw.Text(50, 50, "Hello")
draw.Draw

Backdrop=image.CopyPicture
Notes: 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:

Feedback, Comments & Corrections

GMGraphicsMBS.Text(x as Double, y as Double, text as string, encoding as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Annotate image with text represented with text encoding, using current stroke color, font, font pointsize, and box color (text background color), at specified coordinates.
Notes:
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:

Feedback, Comments & Corrections

GMGraphicsMBS.TextAntialias(flag as boolean)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Antialias while drawing text (default true).
Notes: The main reason to disable text antialiasing is to avoid adding new colors to the image.

Feedback, Comments & Corrections

GMGraphicsMBS.TextDecoration(DecorationType as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Specify decoration (e.g. UnderlineDecoration) to apply to text.

Feedback, Comments & Corrections

GMGraphicsMBS.TextUnderColor(c as GMColorMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Draw a box under rendered text using the specified color.

Feedback, Comments & Corrections

GMGraphicsMBS.Translation(x as Double, y as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Apply coordinate translation (set new coordinate origin).
Example:
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

image.strokeWidth = 5

dim draw as GMGraphicsMBS = image.Graphics

draw.StrokeColor new GMColorRGBMBS("red")
draw.Line(100,100,400,400)
draw.Translation 5,5
draw.StrokeColor new GMColorRGBMBS("blue")
draw.Line(100,100,400,400)
draw.Draw

Backdrop=image.CopyPicture

Feedback, Comments & Corrections

GMGraphicsMBS.Viewbox(x1 as Integer, y1 as Integer, x2 as Integer, y2 as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Dimensions of the output viewbox.
Notes: 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.

Feedback, Comments & Corrections

Previous items

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




Links
MBS FileMaker Plugins