Platforms to show: All Mac Windows Linux Cross-Platform

Back to GMImageMBS class.

GMImageMBS.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.

GMImageMBS.flip

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ 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 GMImageMBS(p)

image.flip

Backdrop=image.CopyPicture

GMImageMBS.floodFillColor(point as GMGeometryMBS, fillColor as GMColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ 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:

GMImageMBS.floodFillColor(point as GMGeometryMBS, fillColor as GMColorMBS, borderColor as GMColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ 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:

GMImageMBS.floodFillColor(x as UInt32, y as UInt32, fillColor as GMColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ 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:

GMImageMBS.floodFillColor(x as UInt32, y as UInt32, fillColor as GMColorMBS, borderColor as GMColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ 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:

GMImageMBS.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 9.3 ✅ 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 GMImageMBS(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.

GMImageMBS.floodFillTexture(point as GMGeometryMBS, fillColor as GMColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ 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:

GMImageMBS.floodFillTexture(point as GMGeometryMBS, fillColor as GMColorMBS, borderColor as GMColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ 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:

GMImageMBS.floodFillTexture(x as UInt32, y as UInt32, fillColor as GMColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ 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:

GMImageMBS.floodFillTexture(x as UInt32, y as UInt32, fillColor as GMColorMBS, borderColor as GMColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ 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:

GMImageMBS.flop

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ 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 GMImageMBS(p)

image.flop

Backdrop=image.CopyPicture

GMImageMBS.fontTypeMetrics(name as string) as GMTypeMetricMBS

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.

GMImageMBS.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 GMImageMBS(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".

GMImageMBS.frame

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

image.frame

Backdrop=image.CopyPicture

See also:

GMImageMBS.frame(geometry as GMGeometryMBS)

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

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

Backdrop=image.CopyPicture

See also:

GMImageMBS.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 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draw a decorative frame around the image.
Example
Var p as Picture = LogoMBS(500)
Var image as new GMImageMBS(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...