Platforms to show: All Mac Windows Linux Cross-Platform
Back to GMImageMBS class.
GMImageMBS.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 | 9.3 | ✅ 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.
GMImageMBS.addNoise(noise as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Use one of this constants: GaussianNoise, ImpulseNoise, LaplacianNoise, MultiplicativeGaussianNoise, PoissonNoise, UniformNoise.
GMImageMBS.addNoiseChannel(channel as Integer, noise as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The noiseType parameter specifies the type of noise.
Use one of this constants: GaussianNoise, ImpulseNoise, LaplacianNoise, MultiplicativeGaussianNoise, PoissonNoise, UniformNoise.
GMImageMBS.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 | 10.2 | ✅ 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.
GMImageMBS.annotate(text as string, boundingArea as GMGeometryMBS, gravity as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ 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:
GMImageMBS.annotate(text as string, boundingArea as GMGeometryMBS, gravity as Integer, degrees as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ 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:
GMImageMBS.annotate(text as string, gravity as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ 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:
GMImageMBS.annotate(text as string, location as GMGeometryMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ 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:
GMImageMBS.attributeValue(name as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ 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)
GMImageMBS.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.
GMImageMBS.blur(radius as Double=0.0, sigma as Double=1.0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The radius parameter specifies the radius of the Gaussian, in pixels, not counting the center pixel. The sigma parameter specifies the standard deviation of the Laplacian, in pixels.
GMImageMBS.blurChannel(channel as Integer, radius as Double=0.0, sigma as Double=1.0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The channel parameter specifies the channel to modify. The radius parameter specifies the radius of the Gaussian, in pixels, not counting the center pixel. The sigma parameter specifies the standard deviation of the Laplacian, in pixels.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The color of the border is specified by the borderColor attribute.
See also:
GMImageMBS.border(geometry as GMGeometryMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The color of the border is specified by the borderColor attribute.
See also:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 16.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Bake in the ASC-CDL, which is a convention for the for the exchange of basic primary color grading information between for the exchange of basic primary color grading information between equipment and software from different manufacturers. It is a useful transform for other purposes as well.
GMImageMBS.channel(channel as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Use this option to extract a particular channel from the image. MatteChannel for example, is useful for extracting the opacity values from an image.
GMImageMBS.channelDepth(channel as Integer) as UInt32
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read and Write computed property)
GMImageMBS.charcoal(radius as Double=0.0, sigma as Double=1.0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The radius parameter specifies the radius of the Gaussian, in pixels, not counting the center pixel. The sigma parameter specifies the standard deviation of the Laplacian, in pixels.
GMImageMBS.chop(geometry as GMGeometryMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMImageMBS.colorHistogram as dictionary
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 16.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The dictionary has a GMColorMBS/GMColor16MBS object as key for each color and an unsigned integer as value.
GMImageMBS.colorize(opacity as UInt32, penColor as GMColorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
GMImageMBS.colorize(opacityRed as UInt32, opacityGreen as UInt32, opacityBlue as UInt32, penColor as GMColorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
GMImageMBS.colorMap as GMColorMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 19.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
GMImageMBS.colorMap(index as UInt32) as GMColorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read and Write computed property)
See also:
GMImageMBS.colorMatrix(order as Integer, ColorMatrix() as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 16.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The user supplied matrix may be of order 1 to 5 (1x1 through 5x5).
GMImageMBS.CombinePictureWithMask as picture
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Internally this calls Width and Height, CopyPicture and CopyMask.
GMImageMBS.compare(image as GMImageMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Sets meanErrorPerPixel, normalizedMaxError, and normalizedMeanError in the current image. False is returned if the images are identical. An ErrorOption exception is thrown if the reference image columns, rows, colorspace, or matte differ from the current image:
GMImageMBS.composite(compositeImage as GMImageMBS, gravity as Integer, CompositeOperator as Integer = 2)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMImageMBS.compositeAt(compositeImage as GMImageMBS, offset as GMGeometryMBS, CompositeOperator as Integer = 2)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GMImageMBS.compositeXY(compositeImage as GMImageMBS, xOffset as Integer, yOffset as Integer, CompositeOperator as Integer = 2)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
- Constructor(blob as GMBlobMBS)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, depth as UInt32)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, Magick as string)
- Constructor(file as folderitem)
- Constructor(other as GMImageMBS)
- Constructor(Path as string)
- Constructor(pic as picture)
- Constructor(size as GMGeometryMBS, ColorValue as GMColorMBS)
- Constructor(width as UInt32, height as UInt32, map as string, StorageType as Integer, data as ptr)
GMImageMBS.Constructor(blob as GMBlobMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
- Constructor
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, depth as UInt32)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, depth as UInt32, Magick as string)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, Magick as string)
- Constructor(file as folderitem)
- Constructor(other as GMImageMBS)
- Constructor(Path as string)
- Constructor(pic as picture)
- Constructor(size as GMGeometryMBS, ColorValue as GMColorMBS)
GMImageMBS.Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
- Constructor
- Constructor(blob as GMBlobMBS)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, depth as UInt32)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, depth as UInt32, Magick as string)
- Constructor(file as folderitem)
- Constructor(other as GMImageMBS)
- Constructor(Path as string)
- Constructor(pic as picture)
- Constructor(size as GMGeometryMBS, ColorValue as GMColorMBS)
- Constructor(width as UInt32, height as UInt32, map as string, StorageType as Integer, data as ptr)
GMImageMBS.Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, depth as UInt32)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
- Constructor
- Constructor(blob as GMBlobMBS)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, depth as UInt32, Magick as string)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, Magick as string)
- Constructor(file as folderitem)
- Constructor(other as GMImageMBS)
- Constructor(Path as string)
- Constructor(size as GMGeometryMBS, ColorValue as GMColorMBS)
- Constructor(width as UInt32, height as UInt32, map as string, StorageType as Integer, data as ptr)
GMImageMBS.Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, depth as UInt32, Magick as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
- Constructor
- Constructor(blob as GMBlobMBS)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, depth as UInt32)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, Magick as string)
- Constructor(other as GMImageMBS)
- Constructor(Path as string)
- Constructor(pic as picture)
- Constructor(size as GMGeometryMBS, ColorValue as GMColorMBS)
- Constructor(width as UInt32, height as UInt32, map as string, StorageType as Integer, data as ptr)
GMImageMBS.Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, Magick as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
- Constructor
- Constructor(blob as GMBlobMBS)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, depth as UInt32)
- Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, depth as UInt32, Magick as string)
- Constructor(file as folderitem)
- Constructor(Path as string)
- Constructor(pic as picture)
- Constructor(size as GMGeometryMBS, ColorValue as GMColorMBS)
- Constructor(width as UInt32, height as UInt32, map as string, StorageType as Integer, data as ptr)
The items on this page are in the following plugins: MBS GraphicsMagick Plugin.