Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

GMImageMBS.transform(imageGeometry as GMGeometryMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Transform image based on image and crop geometries.
Notes: Crop geometry is optional.

See also:

Feedback, Comments & Corrections

GMImageMBS.transform(imageGeometry as GMGeometryMBS, cropGeometry as GMGeometryMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Transform image based on image and crop geometries.
Notes: Crop geometry is optional.

See also:

Feedback, Comments & Corrections

GMImageMBS.transformOrigin(tx as Double, ty as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Origin of coordinate system to use when annotating with text or drawing.

Feedback, Comments & Corrections

GMImageMBS.transformReset
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Reset transformation parameters to default.

Feedback, Comments & Corrections

GMImageMBS.transformRotation(angle as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Rotation to use when annotating with text or drawing.

Feedback, Comments & Corrections

GMImageMBS.transformScale(tx as Double, ty as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Scale to use when annotating with text or drawing.

Feedback, Comments & Corrections

GMImageMBS.transformSkewX(x as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Skew to use in X axis when annotating with text or drawing.

Feedback, Comments & Corrections

GMImageMBS.transformSkewY(y as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Skew to use in Y axis when annotating with text or drawing.

Feedback, Comments & Corrections

GMImageMBS.transparent(color as GMColorMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Add matte channel to image, setting pixels matching color to transparent.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

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

Backdrop=image.CombinePictureWithMask

Feedback, Comments & Corrections

GMImageMBS.trim
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Trim edges that are the background color from the image.
Example:
dim p as Picture = LogoMBS(500)
// make the logo picture bigger
dim q as Picture = NewPicture(700,700,32)

q.Graphics.DrawPicture p,100,100

dim image as new GMImageMBS(q)

// now trim the white border away
image.trim

Backdrop=image.CopyPicture

Feedback, Comments & Corrections

GMImageMBS.type as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: The type of this image.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.type = image.GrayscaleType

Backdrop=image.CopyPicture
Notes:
You can set this value to convert the image to the type.

Convert the image representation to the specified type or retrieve the current image type. If the image is reduced to an inferior type, then image information may be lost (e.g. color changed to grayscale).

Available enumerations for the type parameter:

BilevelType1black/white
GrayscaleType2grayscale
GrayscaleMatteType3grayscale with alpha (opacity) channel
PaletteType4colormapped
PaletteMatteType5colormapped with transparency
TrueColorType6true (full) color
TrueColorMatteType7true (full) color with alpha (opacity) channel
ColorSeparationType8Cyan, magenta, yellow, and black
ColorSeparationMatteType9Cyan, magenta, yellow, and black with alpha (opacity) channel
OptimizeType10Optimize the image type to best represent the existing pixels
(Read and Write computed property)

Feedback, Comments & Corrections

GMImageMBS.unregisterId
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Not documented.

Feedback, Comments & Corrections

GMImageMBS.unsharpmask(radius as Double, sigma as Double, amount as Double, threshold as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Replace image with a sharpened version of the original image using the unsharp mask algorithm.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.unsharpmask(10,1,0.5,50)

Backdrop=image.CopyPicture
Notes:
radius: the radius of the Gaussian, in pixels, not counting the center pixel.
sigma: the standard deviation of the Gaussian, in pixels.
amount: the percentage of the difference between the original and the blur image that is added back into the original.
threshold: the threshold in pixels needed to apply the diffence amount.

Feedback, Comments & Corrections

GMImageMBS.unsharpmaskChannel(channel as Integer, radius as Double, sigma as Double, amount as Double, threshold as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Replace image channel with a sharpened version of the original image using the unsharp mask algorithm.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.unsharpmaskChannel(Image.RedChannel, 10,1,0.5,50)

Backdrop=image.CopyPicture
Notes:
channel:image channel to modify.
radius:the radius of the Gaussian, in pixels, not counting the center pixel.
sigma:the standard deviation of the Gaussian, in pixels.
amount:the percentage of the difference between the original and the blur image that is added back into the original.
threshold:the threshold in pixels needed to apply the diffence amount.

Feedback, Comments & Corrections

GMImageMBS.verbose as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Print detailed information about the image.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

GMImageMBS.view as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: FlashPix viewing parameters.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

GMImageMBS.wave(amplitude as Double=25.0, wavelength as Double=150.0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Map image pixels to a sine wave.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.wave

Backdrop=image.CopyPicture

Feedback, Comments & Corrections

GMImageMBS.write(blob as GMBlobMBS, magick as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Write single image frame to in-memory Blob, with optional format and adjoin parameters.

See also:

Feedback, Comments & Corrections

GMImageMBS.write(blob as GMBlobMBS, magick as string, depth as UInt32)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Write single image frame to in-memory Blob, with optional format and adjoin parameters.

See also:

Feedback, Comments & Corrections

GMImageMBS.write(file as folderitem)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Write single image frame to a file.
Example:
// this converts 32 bit PNG with alpha channel to BMP

dim f as FolderItem = SpecialFolder.Desktop.Child("test.png")
dim p as Picture = Picture.Open(f)

dim g as new GMImageMBS( new GMGeometryMBS(p.Width, p.Height), new GMColorGrayMBS(1.0))

g.type = g.TrueColorMatteType
g.matte = True
g.magick = "BMP"

g.SetPicture(p, 0, 0)
g.SetPictureMask(p.mask.invertMBS, 0, 0)

f = SpecialFolder.Desktop.Child("test.bmp")
g.write(f)

See also:

Feedback, Comments & Corrections

GMImageMBS.write(x as Integer, y as Integer, columns as Integer, rows as Integer, map as string, type as Integer, Pixels as Ptr)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 16.4 Yes Yes Yes Yes No
Function: Write single image frame to an array of pixels with storage type specified by user (DispatchImage).
Notes: e.g. image.write( 0, 0, 640, 1, "RGB", 0, pixels )

See also:

Feedback, Comments & Corrections

GMImageMBS.x11Display as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: X11 display to display to, obtain fonts from, or to capture image from.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

GMImageMBS.xResolution as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: x resolution of the image.
Notes: See also density functions.

Feedback, Comments & Corrections

GMImageMBS.yResolution as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: y resolution of the image.

Feedback, Comments & Corrections

GMImageMBS.zoom(geometry as GMGeometryMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Zoom (resize) image to specified size.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.zoom(new GMGeometryMBS(200,200))

Backdrop=image.CopyPicture

Feedback, Comments & Corrections

Previous items

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




Links
MBS FileMaker tutorial videos