Platforms to show: All Mac Windows Linux Cross-Platform

Back to GMImageMBS class.

GMImageMBS.texture(texture as GMImageMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Channel a texture on pixels matching image background color.

GMImageMBS.threshold(degree as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Threshold image channels (below threshold becomes black, above threshold becomes white).
Example
Var p as Picture = LogoMBS(500)
Var image as new GMImageMBS(p)

image.threshold 127

// convert to RGB so CopyPicture works
image.type = image.TrueColorType
Backdrop=image.CopyPicture

The range of the threshold parameter is 0 to MaxRGB.

GMImageMBS.thumbnail(geometry as GMGeometryMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Resize image using several algorithms to make smaller images very quickly.
Example
Var f as FolderItem = SpecialFolder.Desktop.Child("test.jpg")
Var g as new GMImageMBS(f)

// make thumbnail
Var geo as new GMGeometryMBS(100, 100)
g.thumbnail(geo)

// show
me.Backdrop = g.CopyPicture

GMImageMBS.transform(imageGeometry as GMGeometryMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Transform image based on image and crop geometries.

Crop geometry is optional.

See also:

GMImageMBS.transform(imageGeometry as GMGeometryMBS, cropGeometry as GMGeometryMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Transform image based on image and crop geometries.

Crop geometry is optional.

See also:

GMImageMBS.transformOrigin(tx as Double, ty as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Origin of coordinate system to use when annotating with text or drawing.

GMImageMBS.transformReset

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Reset transformation parameters to default.

GMImageMBS.transformRotation(angle as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Rotation to use when annotating with text or drawing.

GMImageMBS.transformScale(tx as Double, ty as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Scale to use when annotating with text or drawing.

GMImageMBS.transformSkewX(x as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Skew to use in X axis when annotating with text or drawing.

GMImageMBS.transformSkewY(y as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Skew to use in Y axis when annotating with text or drawing.

GMImageMBS.transparent(color as GMColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Add matte channel to image, setting pixels matching color to transparent.
Example
Var p as Picture = LogoMBS(500)
Var image as new GMImageMBS(p)

Var c as new GMColorMBS("white")
image.transparent(c)

Backdrop=image.CombinePictureWithMask

GMImageMBS.trim

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Trim edges that are the background color from the image.
Example
Var p as Picture = LogoMBS(500)
// make the logo picture bigger
Var q as Picture = New Picture(700,700,32)

q.Graphics.DrawPicture p,100,100

Var image as new GMImageMBS(q)

// now trim the white border away
image.trim

Backdrop=image.CopyPicture

See ColorFuzz property for how far the pixel value can differentiate.

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


The biggest plugin in space...