Platforms to show: All Mac Windows Linux Cross-Platform

Back to GM16ImageMBS class.

GM16ImageMBS.texture(texture as GM16ImageMBS)

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

GM16ImageMBS.threshold(degree as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ 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 GM16ImageMBS(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.

GM16ImageMBS.thumbnail(geometry as GM16GeometryMBS)

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 GM16ImageMBS(f)

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

// show
me.Backdrop = g.CopyPicture

GM16ImageMBS.transform(imageGeometry as GM16GeometryMBS)

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

Crop geometry is optional.

See also:

GM16ImageMBS.transform(imageGeometry as GM16GeometryMBS, cropGeometry as GM16GeometryMBS)

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

Crop geometry is optional.

See also:

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

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

GM16ImageMBS.transformReset

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

GM16ImageMBS.transformRotation(angle as Double)

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

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

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

GM16ImageMBS.transformSkewX(x as Double)

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

GM16ImageMBS.transformSkewY(y as Double)

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

GM16ImageMBS.transparent(color as GM16ColorMBS)

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

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

Backdrop=image.CombinePictureWithMask

GM16ImageMBS.trim

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ 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 GM16ImageMBS(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...