Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Next items

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 Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Draw an arc using the stroke color and based on the circle starting at coordinates startX,startY, and ending with coordinates endX,endY, and bounded by the rotational arc startDegrees,endDegrees.
Example:
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

image.type = image.TrueColorType
image.strokeColor = new GMColorRGBMBS("red") // Outline color
image.fillColor = new GMColorRGBMBS("green") // Fill color
image.strokeWidth = 5

dim draw as GMGraphicsMBS = image.Graphics

draw.arc(250, 250, 100, 100,50,300)
draw.Draw

Backdrop=image.CopyPicture

Feedback, Comments & Corrections

GMGraphicsMBS.Bezier(values() as GMCoordinateMBS)
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 bezier curve using the stroke color and based on the coordinates specified by the coordinates array.

Feedback, Comments & Corrections

GMGraphicsMBS.Circle(originX as Double, originY as Double, perimX as Double, perimY 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: Draw a circle using the stroke color and thickness using specified origin and perimeter coordinates.
Example:
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

image.type = image.TrueColorType
image.strokeColor = new GMColorRGBMBS("red") // Outline color
image.fillColor = new GMColorRGBMBS("green") // Fill color
image.strokeWidth = 5

dim draw as GMGraphicsMBS = image.Graphics

// Draw a circle
draw.Circle(250, 250, 120, 150)
draw.Draw

Backdrop=image.CopyPicture
Notes: If a fill color is specified, then the object is filled.

Feedback, Comments & Corrections

GMGraphicsMBS.ClipPath(id 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: Select a drawing clip path matching id.

Feedback, Comments & Corrections

GMGraphicsMBS.ColorPixel(x as Double, y as Double, paintMethod 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: Color image according to paintMethod.
Notes: The point method recolors the target pixel. The replace method recolors any pixel that matches the color of the target pixel. Floodfill recolors any pixel that matches the color of the target pixel and is a neighbor, whereas filltoborder recolors any neighbor pixel that is not the border color. Finally, reset recolors all pixels.

Feedback, Comments & Corrections

GMGraphicsMBS.CompositeImage(x as Double, y as Double, w as Double, h as Double, file as folderitem)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Composite current image with contents of specified image, rendered with specified width and height, at specified coordinates.
Notes: If the matte attribute is set to true, then the image composition will consider an alpha channel, or transparency, present in the image file so that non-opaque portions allow part (or all) of the composite image to show through. If the specified width or height is zero, then the image is composited at its natural size, without enlargement or reduction.

See also:

Feedback, Comments & Corrections

GMGraphicsMBS.CompositeImage(x as Double, y as Double, w as Double, h as Double, file as folderitem, CompositeOperator 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: Composite current image with contents of specified image, rendered with specified width and height, using specified composition algorithm, at specified coordinates.
Notes: If the matte attribute is set to true, then the image composition will consider an alpha channel, or transparency, present in the image file so that non-opaque portions allow part (or all) of the composite image to show through. If the specified width or height is zero, then the image is composited at its natural size, without enlargement or reduction.

See also:

Feedback, Comments & Corrections

GMGraphicsMBS.CompositeImage(x as Double, y as Double, w as Double, h as Double, image as GMImageMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Composite current image with contents of specified image, rendered with specified width and height, at specified coordinates.
Notes: If the matte attribute is set to true, then the image composition will consider an alpha channel, or transparency, present in the image file so that non-opaque portions allow part (or all) of the composite image to show through. If the specified width or height is zero, then the image is composited at its natural size, without enlargement or reduction.

See also:

Feedback, Comments & Corrections

GMGraphicsMBS.CompositeImage(x as Double, y as Double, w as Double, h as Double, image as GMImageMBS, CompositeOperator 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: Composite current image with contents of specified image, rendered with specified width and height, using specified composition algorithm, at specified coordinates.
Notes: If the matte attribute is set to true, then the image composition will consider an alpha channel, or transparency, present in the image file so that non-opaque portions allow part (or all) of the composite image to show through. If the specified width or height is zero, then the image is composited at its natural size, without enlargement or reduction.

See also:

Feedback, Comments & Corrections

GMGraphicsMBS.CompositeImage(x as Double, y as Double, w as Double, h as Double, path 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: Composite current image with contents of specified image, rendered with specified width and height, at specified coordinates.
Notes: If the matte attribute is set to true, then the image composition will consider an alpha channel, or transparency, present in the image file so that non-opaque portions allow part (or all) of the composite image to show through. If the specified width or height is zero, then the image is composited at its natural size, without enlargement or reduction.

See also:

Feedback, Comments & Corrections

GMGraphicsMBS.CompositeImage(x as Double, y as Double, w as Double, h as Double, path as string, CompositeOperator 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: Composite current image with contents of specified image, rendered with specified width and height, using specified composition algorithm, at specified coordinates.
Notes: If the matte attribute is set to true, then the image composition will consider an alpha channel, or transparency, present in the image file so that non-opaque portions allow part (or all) of the composite image to show through. If the specified width or height is zero, then the image is composited at its natural size, without enlargement or reduction.

See also:

Feedback, Comments & Corrections

GMGraphicsMBS.Constructor(image as GMImageMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Creates a new object referencing the given image.

Feedback, Comments & Corrections

GMGraphicsMBS.DashArray(values() 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: Specify the pattern of dashes and gaps used to stroke paths.
Notes: 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.

Feedback, Comments & Corrections

GMGraphicsMBS.DashOffset(offset 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: Specify the distance into the dash pattern to start the dash.
Notes: See documentation on SVG's stroke-dashoffset property for usage details.

Feedback, Comments & Corrections

GMGraphicsMBS.Draw
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Draws all draw commands collected.
Example:
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

image.type = image.TrueColorType
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.DrawPath
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Draw on image using vector path.
Example:
// new picture, 500x500 and filled with white
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 path

dim cr as new GMColorRGBMBS("red")
dim gr as new GMColorRGBMBS("green")
draw.StrokeColor cr
draw.FillColor gr
draw.PathMovetoAbs(30,10)
draw.PathLinetoAbs(20,55)
draw.PathLinetoAbs(70,50)
draw.PathLinetoAbs(80,5)
draw.DrawPath

draw.Draw

// show picture
image.type = image.TrueColorType // make sure it's a bitmap
Backdrop=image.CopyPicture

Feedback, Comments & Corrections

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 Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 Yes Yes Yes Yes No
Function: Draw an ellipse using the stroke color and thickness, specified origin, x & y radius, as well as specified start and end of arc in degrees.
Notes: If a fill color is specified, then the object is filled.

Feedback, Comments & Corrections

GMGraphicsMBS.FillColor(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: Specify drawing object fill color.

Feedback, Comments & Corrections

GMGraphicsMBS.FillOpacity(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: Specify opacity to use when drawing using fill color.

Feedback, Comments & Corrections

GMGraphicsMBS.FillRule(fillRule 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 algorithm which is to be used to determine what parts of the canvas are included inside the shape.
Notes: See documentation on SVG's fill-rule property for usage details.

Feedback, Comments & Corrections

GMGraphicsMBS.Font(fontname 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: Specify font name to use when drawing text.
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

See also:

Feedback, Comments & Corrections

GMGraphicsMBS.Font(fontname as string, StyleType as Integer, weight as Integer, StretchType 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: Sets the font.
Notes: 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:

Feedback, Comments & Corrections

GMGraphicsMBS.Gravity(GravityType 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 text positioning gravity.

Feedback, Comments & Corrections

GMGraphicsMBS.Line(startX as Double, startY as Double, endX as Double, endY 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: Draw a line using stroke color and thickness using starting and ending coordinates
Example:
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

image.strokeColor = new GMColorRGBMBS("red") // Outline color
image.fillColor = new GMColorRGBMBS("green") // Fill color
image.strokeWidth = 5

dim draw as GMGraphicsMBS = image.Graphics

// Draw a line
draw.Line(100,100,400,400)
draw.Draw

image.type = image.TrueColorType
Backdrop=image.CopyPicture

Feedback, Comments & Corrections

GMGraphicsMBS.Matte(x as Double, y as Double, paintMethod 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: Change the pixel matte value to transparent.
Notes: 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.

Feedback, Comments & Corrections

GMGraphicsMBS.MiterLimit(miterlimit 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 miter limit.
Notes: 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.

Feedback, Comments & Corrections

Next items

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




Links
MBS FileMaker tutorial videos