Platforms to show: All Mac Windows Linux Cross-Platform

Back to GM16ImageMBS class.

GM16ImageMBS.Flatten

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 24.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Flatten the alpha channel.

Please set background color to define what color goes into the transparent areas.

GM16ImageMBS.flip

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Flip image (reflect each scanline in the vertical direction).
Example
Var p as Picture = LogoMBS(500)
Var image as new GM16ImageMBS(p)

image.flip

Backdrop=image.CopyPicture

GM16ImageMBS.floodFillColor(point as GM16GeometryMBS, fillColor as GM16ColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Flood-fill color across pixels that match the color of the target pixel and are neighbors of the target pixel.

Uses current fuzz setting when determining color match.

See also:

GM16ImageMBS.floodFillColor(point as GM16GeometryMBS, fillColor as GM16ColorMBS, borderColor as GM16ColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Flood-fill color across pixels starting at target-pixel and stopping at pixels matching specified border color.

Uses current fuzz setting when determining color match:

See also:

GM16ImageMBS.floodFillColor(x as UInt32, y as UInt32, fillColor as GM16ColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Flood-fill color across pixels that match the color of the target pixel and are neighbors of the target pixel.

Uses current fuzz setting when determining color match.

See also:

GM16ImageMBS.floodFillColor(x as UInt32, y as UInt32, fillColor as GM16ColorMBS, borderColor as GM16ColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Flood-fill color across pixels starting at target-pixel and stopping at pixels matching specified border color.

Uses current fuzz setting when determining color match:

See also:

GM16ImageMBS.floodFillOpacity(x as UInt32, y as UInt32, opacity as UInt32, PaintMethod as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Flood-fill pixels matching color (within fuzz factor) of target pixel(x,y) with replacement opacity value using method.
Example
Var image as new GM16ImageMBS(pic)
// fills opacity channel with 100
image.floodFillOpacity(250,250, 100, 2)

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.

GM16ImageMBS.floodFillTexture(point as GM16GeometryMBS, fillColor as GM16ColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Flood-fill texture across pixels that match the color of the target pixel and are neighbors of the target pixel.

Uses current fuzz setting when determining color match.

See also:

GM16ImageMBS.floodFillTexture(point as GM16GeometryMBS, fillColor as GM16ColorMBS, borderColor as GM16ColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Flood-fill texture across pixels starting at target-pixel and stopping at pixels matching specified border color.

Uses current fuzz setting when determining color match.

See also:

GM16ImageMBS.floodFillTexture(x as UInt32, y as UInt32, fillColor as GM16ColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Flood-fill texture across pixels that match the color of the target pixel and are neighbors of the target pixel.

Uses current fuzz setting when determining color match.

See also:

GM16ImageMBS.floodFillTexture(x as UInt32, y as UInt32, fillColor as GM16ColorMBS, borderColor as GM16ColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Flood-fill texture across pixels starting at target-pixel and stopping at pixels matching specified border color.

Uses current fuzz setting when determining color match.

See also:

GM16ImageMBS.flop

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Flop image (reflect each scanline in the horizontal direction).
Example
Var p as Picture = LogoMBS(500)
Var image as new GM16ImageMBS(p)

image.flop

Backdrop=image.CopyPicture

GM16ImageMBS.fontTypeMetrics(name as string) as GM16TypeMetricMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Obtain font metrics for text string given current font, pointsize, and density settings.

GM16ImageMBS.formatExpression(expression as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 19.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Format the specified expression similar to command line '-format'.
Example
Var f as folderitem = SpecialFolder.Desktop.Child("test.jpg")
Var image as new GM16ImageMBS(f)

window1.Title = image.formatExpression("%wx%h")
window1.Backdrop = image.CopyPicture

For example "%wx%h" is converted to a string containing image WIDTHxHEIGHT like "640x480".

GM16ImageMBS.frame

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draw a decorative frame around the image.
Example
Var p as Picture = LogoMBS(500)
Var image as new GM16ImageMBS(p)

image.frame

Backdrop=image.CopyPicture

See also:

GM16ImageMBS.frame(geometry as GM16GeometryMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draw a decorative frame around the image.
Example
Var p as Picture = LogoMBS(500)
Var image as new GM16ImageMBS(p)

image.frame(GM16GeometryMBS.Make("10x10"))

Backdrop=image.CopyPicture

See also:

GM16ImageMBS.frame(width as UInt32, height as UInt32, innerBevel as Integer=6, outerBevel as Integer=6)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draw a decorative frame around the image.
Example
Var p as Picture = LogoMBS(500)
Var image as new GM16ImageMBS(p)

image.frame(15,15)

Backdrop=image.CopyPicture

See also:

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


The biggest plugin in space...