Platforms to show: All Mac Windows Linux Cross-Platform
Back to GM16ImageMBS class.
GM16ImageMBS.adaptiveThreshold(width as UInt32, height as UInt32, offset as double = 0)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
see:
http://www.dai.ed.ac.uk/HIPR2/adpthrsh.htm
Adaptive thresholding is useful if the ideal threshold level is not known in advance, or if the illumination gradient is not constant across the image. Adaptive thresholding works by evaulating the mean (average) of a pixel region (size specified by width and height) and using the mean as the thresholding value. In order to remove residual noise from the background, the threshold may be adjusted by subtracting a constant offset (default zero) from the mean to compute the threshold.
GM16ImageMBS.addNoise(noise as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Use one of this constants: GaussianNoise, ImpulseNoise, LaplacianNoise, MultiplicativeGaussianNoise, PoissonNoise, UniformNoise.
GM16ImageMBS.addNoiseChannel(channel as Integer, noise as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The noiseType parameter specifies the type of noise.
Use one of this constants: GaussianNoise, ImpulseNoise, LaplacianNoise, MultiplicativeGaussianNoise, PoissonNoise, UniformNoise.
GM16ImageMBS.affineTransform(sx as Double, sy as Double, rx as Double, ry as Double, 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 |
Specify a transformation matrix to adjust scaling, rotation, and translation (coordinate transformation) for subsequently drawn objects in the same or decendent drawing context. The sx & sy parameters represent the x & y scale factors, the rx & ry parameters represent the x & y rotation, and the tx & ty parameters represent the x & y translation.
GM16ImageMBS.annotate(text as string, boundingArea as GM16GeometryMBS, gravity as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Annotate image (draw text on image)
Gravity effects text placement in bounding area according to these rules:
| NorthWestGravity | text bottom-left corner placed at top-left |
| NorthGravity | text bottom-center placed at top-center |
| NorthEastGravity | text bottom-right corner placed at top-right |
| WestGravity | text left-center placed at left-center |
| CenterGravity | text center placed at center |
| EastGravity | text right-center placed at right-center |
| SouthWestGravity | text top-left placed at bottom-left |
| SouthGravity | text top-center placed at bottom-center |
| SouthEastGravity | text top-right placed at bottom-right |
Annotate annotates an image with text. Optionally you can include any of the following bits of information about the image by embedding the appropriate special characters:
%b file size in bytes. %c comment. %d directory in which the image resides. %e extension of the image file. %f original filename of the image. %h height of image. %i filename of the image. %k number of unique colors. %l image label. %m image file format. %n number of images in a image sequence. %o output image filename. %p page number of the image. %q image depth (8 or 16). %p page number of the image. %q image depth (8 or 16). %s image scene number. %t image filename without any extension. %u a unique temporary filename. %w image width. %x x resolution of the image. %y y resolution of the image.
Set a font with full path and @ in front. e.g. "@/Library/Fonts/Arial.ttf". This way the plugin loads it directly.
See also:
GM16ImageMBS.annotate(text as string, boundingArea as GM16GeometryMBS, gravity as Integer, degrees as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Annotate image (draw text on image)
Gravity effects text placement in bounding area according to these rules:
| NorthWestGravity | text bottom-left corner placed at top-left |
| NorthGravity | text bottom-center placed at top-center |
| NorthEastGravity | text bottom-right corner placed at top-right |
| WestGravity | text left-center placed at left-center |
| CenterGravity | text center placed at center |
| EastGravity | text right-center placed at right-center |
| SouthWestGravity | text top-left placed at bottom-left |
| SouthGravity | text top-center placed at bottom-center |
| SouthEastGravity | text top-right placed at bottom-right |
Annotate annotates an image with text. Optionally you can include any of the following bits of information about the image by embedding the appropriate special characters:
%b file size in bytes. %c comment. %d directory in which the image resides. %e extension of the image file. %f original filename of the image. %h height of image. %i filename of the image. %k number of unique colors. %l image label. %m image file format. %n number of images in a image sequence. %o output image filename. %p page number of the image. %q image depth (8 or 16). %p page number of the image. %q image depth (8 or 16). %s image scene number. %t image filename without any extension. %u a unique temporary filename. %w image width. %x x resolution of the image. %y y resolution of the image.
Set a font with full path and @ in front. e.g. "@/Library/Fonts/Arial.ttf". This way the plugin loads it directly.
See also:
GM16ImageMBS.annotate(text as string, gravity as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Annotate image (draw text on image)
Gravity effects text placement in bounding area according to these rules:
| NorthWestGravity | text bottom-left corner placed at top-left |
| NorthGravity | text bottom-center placed at top-center |
| NorthEastGravity | text bottom-right corner placed at top-right |
| WestGravity | text left-center placed at left-center |
| CenterGravity | text center placed at center |
| EastGravity | text right-center placed at right-center |
| SouthWestGravity | text top-left placed at bottom-left |
| SouthGravity | text top-center placed at bottom-center |
| SouthEastGravity | text top-right placed at bottom-right |
Annotate annotates an image with text. Optionally you can include any of the following bits of information about the image by embedding the appropriate special characters:
%b file size in bytes. %c comment. %d directory in which the image resides. %e extension of the image file. %f original filename of the image. %h height of image. %i filename of the image. %k number of unique colors. %l image label. %m image file format. %n number of images in a image sequence. %o output image filename. %p page number of the image. %q image depth (8 or 16). %p page number of the image. %q image depth (8 or 16). %s image scene number. %t image filename without any extension. %u a unique temporary filename. %w image width. %x x resolution of the image. %y y resolution of the image.
Set a font with full path and @ in front. e.g. "@/Library/Fonts/Arial.ttf". This way the plugin loads it directly.
See also:
GM16ImageMBS.annotate(text as string, location as GM16GeometryMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Annotate image (draw text on image)
Gravity effects text placement in bounding area according to these rules:
| NorthWestGravity | text bottom-left corner placed at top-left |
| NorthGravity | text bottom-center placed at top-center |
| NorthEastGravity | text bottom-right corner placed at top-right |
| WestGravity | text left-center placed at left-center |
| CenterGravity | text center placed at center |
| EastGravity | text right-center placed at right-center |
| SouthWestGravity | text top-left placed at bottom-left |
| SouthGravity | text top-center placed at bottom-center |
| SouthEastGravity | text top-right placed at bottom-right |
Annotate annotates an image with text. Optionally you can include any of the following bits of information about the image by embedding the appropriate special characters:
%b file size in bytes. %c comment. %d directory in which the image resides. %e extension of the image file. %f original filename of the image. %h height of image. %i filename of the image. %k number of unique colors. %l image label. %m image file format. %n number of images in a image sequence. %o output image filename. %p page number of the image. %q image depth (8 or 16). %p page number of the image. %q image depth (8 or 16). %s image scene number. %t image filename without any extension. %u a unique temporary filename. %w image width. %x x resolution of the image. %y y resolution of the image.
Set a font with full path and @ in front. e.g. "@/Library/Fonts/Arial.ttf". This way the plugin loads it directly.
See also:
GM16ImageMBS.attributeValue(name as string) as string
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Any number of named attributes may be attached to the image. For example, the image comment is a named image attribute with the name "comment". EXIF tags are attached to the image as named attributes. Use the syntax "EXIF:<tag>" to request an EXIF tag similar to "EXIF:DateTime":
(Read and Write computed property)
GM16ImageMBS.attributeValues as dictionary
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 17.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
As attributes are created on demand, this will only return all so far generated attributes.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 19.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This allows the image to be viewed correctly when the orientation attribute is not available, or is not respected.
The items on this page are in the following plugins: MBS GraphicsMagick Plugin.