Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

Next items

GM16ImageMBS.adaptiveThreshold(width as UInt32, height as UInt32, offset as UInt32=0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Apply adaptive thresholding to the image.
Notes:
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.

Feedback, Comments & Corrections

GM16ImageMBS.addNoise(noise as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Add noise to image with the specified noise type.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GM16ImageMBS(p)

image.addNoise(image.GaussianNoise)

Backdrop=image.CopyPicture
Notes: Use one of this constants: GaussianNoise, ImpulseNoise, LaplacianNoise, MultiplicativeGaussianNoise, PoissonNoise, UniformNoise.

Feedback, Comments & Corrections

GM16ImageMBS.addNoiseChannel(channel as Integer, noise as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Add noise to an image channel with the specified noise type. The channel parameter specifies the channel to add noise to.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GM16ImageMBS(p)

image.addNoiseChannel(image.BlueChannel, image.ImpulseNoise)

Backdrop=image.CopyPicture
Notes:
The noiseType parameter specifies the type of noise.
Use one of this constants: GaussianNoise, ImpulseNoise, LaplacianNoise, MultiplicativeGaussianNoise, PoissonNoise, UniformNoise.

Feedback, Comments & Corrections

GM16ImageMBS.adjoin as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Join images into a single multi-image file.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

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 Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Applies an affine transformation to the drawing matrix.
Notes: 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.

Feedback, Comments & Corrections

GM16ImageMBS.animationDelay as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Time in 1/100ths of a second (0 to 65535) which must expire before displaying the next image in an animated sequence.
Notes:
This option is useful for regulating the animation of a sequence of GIF images within Netscape.
(Read and Write computed property)

Feedback, Comments & Corrections

GM16ImageMBS.animationIterations as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Number of iterations to loop an animation (e.g. Netscape loop extension) for.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

GM16ImageMBS.annotate(text as string, boundingArea as GM16GeometryMBS, gravity as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Annotate using specified text, bounding area, and placement gravity.
Notes:
Annotate image (draw text on image)

Gravity effects text placement in bounding area according to these rules:

NorthWestGravitytext bottom-left corner placed at top-left
NorthGravitytext bottom-center placed at top-center
NorthEastGravitytext bottom-right corner placed at top-right
WestGravitytext left-center placed at left-center
CenterGravitytext center placed at center
EastGravitytext right-center placed at right-center
SouthWestGravitytext top-left placed at bottom-left
SouthGravitytext top-center placed at bottom-center
SouthEastGravitytext 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:

Feedback, Comments & Corrections

GM16ImageMBS.annotate(text as string, boundingArea as GM16GeometryMBS, gravity as Integer, degrees as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Annotate with text using specified text, bounding area, placement gravity, and rotation.
Notes:
Annotate image (draw text on image)

Gravity effects text placement in bounding area according to these rules:

NorthWestGravitytext bottom-left corner placed at top-left
NorthGravitytext bottom-center placed at top-center
NorthEastGravitytext bottom-right corner placed at top-right
WestGravitytext left-center placed at left-center
CenterGravitytext center placed at center
EastGravitytext right-center placed at right-center
SouthWestGravitytext top-left placed at bottom-left
SouthGravitytext top-center placed at bottom-center
SouthEastGravitytext 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:

Feedback, Comments & Corrections

GM16ImageMBS.annotate(text as string, gravity as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Annotate with text (bounding area is entire image) and placement gravity.
Example:
dim White as new GM16ColorGrayMBS(1)
dim Black as new GM16ColorGrayMBS(0)
dim geo as new GM16GeometryMBS("300x200")

dim g as new GM16ImageMBS(geo, White)

g.antiAlias = False
g.fillColor = Black
g.lineWidth = 1
g.strokeColor = Black
g.font = "@/Library/Fonts/Tahoma.ttf"
g.fontPointsize = 15

g.annotate("Hello World", g.SouthGravity)

Backdrop = g.CopyPicture
Notes:
Annotate image (draw text on image)

Gravity effects text placement in bounding area according to these rules:

NorthWestGravitytext bottom-left corner placed at top-left
NorthGravitytext bottom-center placed at top-center
NorthEastGravitytext bottom-right corner placed at top-right
WestGravitytext left-center placed at left-center
CenterGravitytext center placed at center
EastGravitytext right-center placed at right-center
SouthWestGravitytext top-left placed at bottom-left
SouthGravitytext top-center placed at bottom-center
SouthEastGravitytext 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:

Feedback, Comments & Corrections

GM16ImageMBS.annotate(text as string, location as GM16GeometryMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Annotate using specified text, and placement location.
Notes:
Annotate image (draw text on image)

Gravity effects text placement in bounding area according to these rules:

NorthWestGravitytext bottom-left corner placed at top-left
NorthGravitytext bottom-center placed at top-center
NorthEastGravitytext bottom-right corner placed at top-right
WestGravitytext left-center placed at left-center
CenterGravitytext center placed at center
EastGravitytext right-center placed at right-center
SouthWestGravitytext top-left placed at bottom-left
SouthGravitytext top-center placed at bottom-center
SouthEastGravitytext 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:

Feedback, Comments & Corrections

GM16ImageMBS.antiAlias as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Control antialiasing of rendered Postscript and Postscript or TrueType fonts.
Notes:
Enabled by default.
(Read and Write computed property)

Feedback, Comments & Corrections

GM16ImageMBS.attributeValue(name as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Access an arbitrary named image attribute.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("IMG_4048.jpg")
dim g as new GM16ImageMBS(f)
dim a as string = g.attributeValue("EXIF:DateTime")
MsgBox a
Notes:
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)

Feedback, Comments & Corrections

GM16ImageMBS.attributeValues as dictionary
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 17.1 Yes Yes Yes Yes No
Function: A dictionary with all attributes.
Notes: As attributes are created on demand, this will only return all so far generated attributes.

Feedback, Comments & Corrections

GM16ImageMBS.backgroundColor as GM16ColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Image background color.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

GM16ImageMBS.backgroundTexture as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Image file name to use as the background texture.
Notes:
Does not modify image pixels.
(Read and Write computed property)

Feedback, Comments & Corrections

GM16ImageMBS.blur(radius as Double=0.0, sigma as Double=1.0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Blur an image with the specified blur factor.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GM16ImageMBS(p)

image.blur(30,10)

Backdrop=image.CopyPicture
Notes: 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.

Feedback, Comments & Corrections

GM16ImageMBS.blurChannel(channel as Integer, radius as Double=0.0, sigma as Double=1.0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Blur an image channel with the specified blur factor.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GM16ImageMBS(p)

image.blurChannel(image.BlueChannel, 30,10)

Backdrop=image.CopyPicture
Notes: 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.

Feedback, Comments & Corrections

GM16ImageMBS.border
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Border image (add border to image).
Example:
dim p as Picture = LogoMBS(500)
dim image as new GM16ImageMBS(p)

image.border

Backdrop=image.CopyPicture
Notes: The color of the border is specified by the borderColor attribute.

See also:

Feedback, Comments & Corrections

GM16ImageMBS.border(geometry as GM16GeometryMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Border image (add border to image).
Example:
dim p as Picture = LogoMBS(500)
dim image as new GM16ImageMBS(p)

image.border GM16GeometryMBS.Make(10,10)

Backdrop=image.CopyPicture
Notes: The color of the border is specified by the borderColor attribute.

See also:

Feedback, Comments & Corrections

GM16ImageMBS.borderColor as GM16ColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Image border color.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

GM16ImageMBS.boundingBox as GM16GeometryMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Return smallest bounding box enclosing non-border pixels.
Example:
dim g as new GM16GeometryMBS(500,500)
dim c as new GM16ColorRGBMBS("white") // white
dim image as new GM16ImageMBS(g, c)

image.fillColor = new GM16ColorRGBMBS("red") // set color
image.strokeColor = new GM16ColorRGBMBS("green") // set color

image.strokeWidth = 5

dim draw as GM16GraphicsMBS = image.Graphics

// Draw a circle

draw.Circle(250, 250, 120, 150)
draw.Draw

draw = nil
image.type = image.TrueColorType

Backdrop = image.CopyPicture

MsgBox image.boundingBox.StringValue
Notes: The current fuzz value is used when discriminating between pixels. This is the crop bounding box used by crop(Geometry(0,0)).

Feedback, Comments & Corrections

GM16ImageMBS.boxColor as GM16ColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Base color that annotation text is rendered on (default none).
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

GM16ImageMBS.cdl(cdl as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 16.4 Yes Yes Yes Yes No
Function: Bake in the ASC-CDL.
Notes: 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.

Feedback, Comments & Corrections

GM16ImageMBS.channel(channel as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Extract channel from image.
Notes: Use this option to extract a particular channel from the image. MatteChannel for example, is useful for extracting the opacity values from an image.

Feedback, Comments & Corrections

GM16ImageMBS.channelDepth(channel as Integer) as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Set or obtain modulus channel depth.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

GM16ImageMBS.charcoal(radius as Double=0.0, sigma as Double=1.0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Charcoal effect image (looks like charcoal sketch).
Example:
dim p as Picture = LogoMBS(500)
dim image as new GM16ImageMBS(p)

image.charcoal

Backdrop=image.CopyPicture
Notes: 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.

Feedback, Comments & Corrections

GM16ImageMBS.chop(geometry as GM16GeometryMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Chop image (remove vertical or horizontal subregion of image).

Feedback, Comments & Corrections

GM16ImageMBS.classType as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Image class (DirectClass or PseudoClass).
Notes:
NOTE: setting a DirectClass image to PseudoClass will result in the loss of color information if the number of colors in the image is greater than the maximum palette size (either 256 or 65536 entries depending on the value of QuantumDepth when ImageMagick was built):
(Read and Write computed property)

Feedback, Comments & Corrections

Next items

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




Links
MBS Xojo Plugins