Platforms to show: All Mac Windows Linux Cross-Platform

Back to GM16GraphicsMBS class.

GM16GraphicsMBS.Circle(originX as Double, originY as Double, perimX as Double, perimY as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draw a circle using the stroke color and thickness using specified origin and perimeter coordinates.
Example
Var g as new GM16GeometryMBS(500,500)
Var c as new GM16ColorRGBMBS("white") // white
Var image as new GM16ImageMBS(g, c)

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

Var draw as GM16GraphicsMBS = image.Graphics

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

Backdrop=image.CopyPicture

If a fill color is specified, then the object is filled.

GM16GraphicsMBS.ClipPath(id as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Select a drawing clip path matching id.

GM16GraphicsMBS.ColorPixel(x as Double, y as Double, paintMethod as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Color image according to paintMethod.

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.

Paint methods:

PointMethod0Replace pixel color at point.
ReplaceMethod1Replace color for all image pixels matching color at point.
FloodfillMethod2Replace color for pixels surrounding point until encountering pixel that fails to match color at point.
FillToBorderMethod3Replace color for pixels surrounding point until encountering pixels matching border color.
ResetMethod4Replace colors for all pixels in image with pen color.

GM16GraphicsMBS.CompositeImage(x as Double, y as Double, w as Double, h as Double, file as folderitem)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Composite current image with contents of specified image, rendered with specified width and height, at specified coordinates.

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:

GM16GraphicsMBS.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 iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Composite current image with contents of specified image, rendered with specified width and height, using specified composition algorithm, at specified coordinates.

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:

GM16GraphicsMBS.CompositeImage(x as Double, y as Double, w as Double, h as Double, image as GM16ImageMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Composite current image with contents of specified image, rendered with specified width and height, at specified coordinates.

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:

GM16GraphicsMBS.CompositeImage(x as Double, y as Double, w as Double, h as Double, image as GM16ImageMBS, CompositeOperator as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Composite current image with contents of specified image, rendered with specified width and height, using specified composition algorithm, at specified coordinates.

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:

GM16GraphicsMBS.CompositeImage(x as Double, y as Double, w as Double, h as Double, path as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Composite current image with contents of specified image, rendered with specified width and height, at specified coordinates.

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:

GM16GraphicsMBS.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 iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Composite current image with contents of specified image, rendered with specified width and height, using specified composition algorithm, at specified coordinates.

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:

GM16GraphicsMBS.Constructor(image as GM16ImageMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a new object referencing the given image.

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


The biggest plugin in space...