Platforms to show: All Mac Windows Linux Cross-Platform
GMImageMBS.composite(compositeImage as GMImageMBS, offset as GMGeometryMBS, CompositeOperator as Integer=2)
Function:
Compose an image onto another at specified x and y offset and using a specified algorithm.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
GMImageMBS.composite(compositeImage as GMImageMBS, xOffset as Integer, yOffset as Integer, CompositeOperator as Integer=2)
Function:
Compose an image onto another at specified x and y offset and using a specified algorithm.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
GMImageMBS.Constructor
Function:
Default constructor.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
// get some image data (e.g. from blob in database)
dim logo as Picture = LogoMBS(500)
dim jpegData as string = PictureToJPEGStringMBS(logo, 80)
// new image
Dim mp as new GMImageMBS
dim blob as new GMBlobMBS(jpegData)
// read data from blob into this image object
mp.Read blob
// sometimes you need to explicit convert to RGB/RGBA
'mp.type = mp.TrueColorMatteType
Backdrop=mp.CombinePictureWithMask
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)
Function:
Construct Image from in-memory Blob.
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(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)
Function:
Construct Image of specified size from in-memory Blob.
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(blob as GMBlobMBS, geometry as GMGeometryMBS, 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)
GMImageMBS.Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, depth as UInt32)
Function:
Construct Image of specified size and depth from in-memory Blob.
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(pic as picture)
- 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)
Function:
Construct Image of specified size, depth, and format from in-memory Blob.
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, 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, Magick as string)
Function:
Construct Image of specified size, depth, and format from in-memory Blob.
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(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(file as folderitem)
Function:
Construct from image file.
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(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)
GMImageMBS.Constructor(other as GMImageMBS)
Function:
Creates an image by making a copy of the existing one.
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(blob as GMBlobMBS, geometry as GMGeometryMBS, Magick as string)
- 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(Path as string)
Function:
Construct from image file or image specification.
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(blob as GMBlobMBS, geometry as GMGeometryMBS, Magick as string)
- Constructor(file as folderitem)
- 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(pic as picture)
Function:
Creates a new GMImage with the given picture.
Example:
Notes:
Pixels from both the picture and picture's mask.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)
Backdrop=image.CopyPicture
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(size as GMGeometryMBS, ColorValue as GMColorMBS)
Function:
Construct a blank image canvas of specified size and color.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim g as new GMGeometryMBS(600,600)
dim c as new GMColorRGBMBS(1.0,0.0,0.0) // red
dim image as new GMImageMBS(g, c)
const TrueColorType=6
// Ensure that there are no other references to this image.
image.modifyImage
// Set the image type to TrueColor DirectClass representation.
image.type=TrueColorType
Backdrop=image.CopyPicture(0,0,600,600)
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(width as UInt32, height as UInt32, map as string, StorageType as Integer, data as ptr)
GMImageMBS.Constructor(width as UInt32, height as UInt32, map as string, StorageType as Integer, data as ptr)
Function:
Initializes single image frame from an array of raw pixels, with specified storage type (ConstituteImage).
Example:
Notes:
Returns an Image corresponding to an image stored in a raw memory array format. The pixel data must be in scanline order top-to-bottom. The data can be unsigned char, unsigned short int, unsigned int, unsigned long, float, or double. Float and double require the pixels to be normalized to the range [0..1], otherwise the range is [0..MaxVal] where MaxVal is the maximum possible value for that type.
Note that for most 32-bit architectures the size of an unsigned long is the same as unsigned int, but for 64-bit architectures observing the LP64 standard, an unsigned long is 64 bits, while an unsigned int remains 32 bits. This should be considered when deciding if the data should be described as "Integer" or "Long".
For example, to create a 640x480 image from unsigned red-green-blue character data, use
image = new GMImageMBS(640, 480, "RGB", GMImageMBS.StorageTypeCharPixel, pixels);
width: width in pixels of the image.
height: height in pixels of the image.
map: This string reflects the expected ordering of the pixel array. It can be any combination or order of R = red, G = green, B = blue, A = alpha (same as Transparency), O = Opacity, T = Transparency, C = cyan, Y = yellow, M = magenta, K = black, or I = intensity (for grayscale). Specify "P" = pad, to skip over a quantum which is intentionally ignored. Creation of an alpha channel for CMYK images is currently not supported.
type: Define the data type of the pixels. Float and double types are expected to be normalized [0..1] otherwise [0..MaxRGB]. Choose from these types: StorageTypeCharPixel, StorageTypeShortPixel, StorageTypeIntegerPixel, StorageTypeLongPixel, StorageTypeFloatPixel, or StorageTypeDoublePixel.
pixels: This array of values contain the pixel components as defined by map and type. You must preallocate this array where the expected length varies depending on the values of width, height, map, and type.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim data as new memoryblock(2048*2048) // your data
dim image as new GMImageMBS(2048, 2048, "I", GMImageMBS.StorageTypeCharPixel, data)
Returns an Image corresponding to an image stored in a raw memory array format. The pixel data must be in scanline order top-to-bottom. The data can be unsigned char, unsigned short int, unsigned int, unsigned long, float, or double. Float and double require the pixels to be normalized to the range [0..1], otherwise the range is [0..MaxVal] where MaxVal is the maximum possible value for that type.
Note that for most 32-bit architectures the size of an unsigned long is the same as unsigned int, but for 64-bit architectures observing the LP64 standard, an unsigned long is 64 bits, while an unsigned int remains 32 bits. This should be considered when deciding if the data should be described as "Integer" or "Long".
For example, to create a 640x480 image from unsigned red-green-blue character data, use
image = new GMImageMBS(640, 480, "RGB", GMImageMBS.StorageTypeCharPixel, pixels);
width: width in pixels of the image.
height: height in pixels of the image.
map: This string reflects the expected ordering of the pixel array. It can be any combination or order of R = red, G = green, B = blue, A = alpha (same as Transparency), O = Opacity, T = Transparency, C = cyan, Y = yellow, M = magenta, K = black, or I = intensity (for grayscale). Specify "P" = pad, to skip over a quantum which is intentionally ignored. Creation of an alpha channel for CMYK images is currently not supported.
type: Define the data type of the pixels. Float and double types are expected to be normalized [0..1] otherwise [0..MaxRGB]. Choose from these types: StorageTypeCharPixel, StorageTypeShortPixel, StorageTypeIntegerPixel, StorageTypeLongPixel, StorageTypeFloatPixel, or StorageTypeDoublePixel.
pixels: This array of values contain the pixel components as defined by map and type. You must preallocate this array where the expected length varies depending on the values of width, height, map, and type.
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(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.contrast(sharpen as UInt32)
Function:
Contrast image (enhance intensity differences in image).
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)
image.contrast(10)
Backdrop=image.CopyPicture
GMImageMBS.convolve(order as Integer, ColorMatrix() as Double)
Function:
Convolve image.
Example:
Notes:
Applies a user-specified convolution to the image.
order represents the number of columns and rows in the filter kernel.
kernel is an array of doubles representing the convolution kernel.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 16.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.jpg")
dim g as new GMImageMBS(f)
dim m(8) as Double
m(0) = 0.25
m(1) = 0
m(2) = 0.25
m(3) = 0
m(4) = 0
m(5) = 0
m(6) = 0.25
m(7) = 0
m(8) = 0.25
g.convolve 3, m
Backdrop = g.CopyPicture
Applies a user-specified convolution to the image.
order represents the number of columns and rows in the filter kernel.
kernel is an array of doubles representing the convolution kernel.
GMImageMBS.CopyPicture as picture
Function:
Creates a copy of the image and returns it as a new picture.
Example:
Notes:
You may need to set image type to RGB to get it working.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)
image.strokeColor = new GMColorRGBMBS("red") // Outline color
image.fillColor = new GMColorRGBMBS("green") // Fill color
image.strokeWidth = 5
dim draw as GMGraphicsMBS = image.Graphics
// Draw a circle
draw.Rectangle(250, 250, 100, 100)
Backdrop=image.CopyPicture
See also:
GMImageMBS.CopyPicture(x as Integer, y as Integer, width as Integer, height as Integer) as picture
Function:
Creates a copy of the image and returns it as a new picture.
Example:
Notes:
You may need to set image type to RGB to get it working.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)
image.threshold 127
// convert to RGB so CopyPicture works
image.type = image.TrueColorType
Backdrop=image.CopyPicture(0,0,250,250)
See also:
GMImageMBS.CopyPictureMask as picture
Function:
Creates a copy of the image's mask and returns it as a new picture.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
Dim f As FolderItem = SpecialFolder.Desktop.Child("test.png")
Dim g As New GMImageMBS(f)
// get image with mask
Dim p As picture = g.CopyPicture
p.mask = g.CopyPictureMask
window1.Backdrop = p
See also:
GMImageMBS.CopyPictureMask(x as Integer, y as Integer, width as Integer, height as Integer) as picture
Function:
Creates a copy of the image's mask and returns it as a new picture.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
GMImageMBS.CopyPixelsMemory as Memoryblock
Function:
Copy the pixels as they are into a memoryblock.
Notes:
Optional specify rectangle.
Returns nil on low memory or bad parameter. Image must be of type class direct (not palette picture).
Order of pixel data is normally Red, Green, Blue, Opacity. Or Cyan, Magenta, Yellow, Black for CMYK images.
For GMImageMBS, the data is 8bit per channel. For GMImage16MBS, the data is 16bit per channel.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 15.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Optional specify rectangle.
Returns nil on low memory or bad parameter. Image must be of type class direct (not palette picture).
Order of pixel data is normally Red, Green, Blue, Opacity. Or Cyan, Magenta, Yellow, Black for CMYK images.
For GMImageMBS, the data is 8bit per channel. For GMImage16MBS, the data is 16bit per channel.
See also:
GMImageMBS.CopyPixelsMemory(x as Integer, y as Integer, width as Integer, height as Integer) as Memoryblock
Function:
Copy the pixels as they are into a memoryblock.
Notes:
Optional specify rectangle.
Returns nil on low memory or bad parameter. Image must be of type class direct (not palette picture).
Order of pixel data is normally Red, Green, Blue, Opacity. Or Cyan, Magenta, Yellow, Black for CMYK images.
For GMImageMBS, the data is 8bit per channel. For GMImage16MBS, the data is 16bit per channel.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 15.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Optional specify rectangle.
Returns nil on low memory or bad parameter. Image must be of type class direct (not palette picture).
Order of pixel data is normally Red, Green, Blue, Opacity. Or Cyan, Magenta, Yellow, Black for CMYK images.
For GMImageMBS, the data is 8bit per channel. For GMImage16MBS, the data is 16bit per channel.
See also:
GMImageMBS.CreateHBITMAP as Ptr
Function:
Creates a HBITMAP for the image for use with Windows Declares.
Example:
Notes:
The HBITMAP returned needs to be freed when you are done with it or you risk having a memory leak.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 15.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
Example:
// get test image
dim logo as Picture = LogoMBS(500)
// create GraphicsMagick image
dim g as new GMImageMBS(logo)
// make a HBitmap
dim hBitmap as ptr = g.CreateHBITMAP
// convert back to Xojo picture
dim pic as Picture = WindowsBitmapMBS.HBitmapToPicture(hBitmap, true)
// show in window
Backdrop = pic
// and cleanup memory
WindowsBitmapMBS.DeleteBitmap(hBitmap)
GMImageMBS.crop(geometry as GMGeometryMBS)
Function:
Crop image (return subregion of original image).
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)
image.crop GMGeometryMBS.Make(100,200)
Backdrop=image.CopyPicture
GMImageMBS.cycleColormap(amount as Integer)
Function:
Cycle (rotate) image colormap.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)
image.cycleColormap(5)
image.type = image.TrueColorType
Backdrop=image.CopyPicture
GMImageMBS.defineSet(magick as string, key as string) as boolean
Function:
Set or obtain a definition flag to applied when encoding or decoding the specified format.
Notes:
Similar to the defineValue() method except that passing the flag value 'true' creates a value-less define with that format and key. Passing the flag value 'false' removes any existing matching definition. The method returns 'true' if a matching key exists, and 'false' if no matching key exists.
(Read and Write computed property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Similar to the defineValue() method except that passing the flag value 'true' creates a value-less define with that format and key. Passing the flag value 'false' removes any existing matching definition. The method returns 'true' if a matching key exists, and 'false' if no matching key exists.
(Read and Write computed property)
GMImageMBS.defineValue(magick as string, key as string) as string
Function:
Set or obtain a definition string to applied when encoding or decoding the specified format.
Notes:
The meanings of the definitions are format specific. The format is designated by the magick argument, the format-specific key is designated by key, and the associated value is specified by value. See the defineSet() method if the key must be removed entirely.
(Read and Write computed property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
The meanings of the definitions are format specific. The format is designated by the magick argument, the format-specific key is designated by key, and the associated value is specified by value. See the defineSet() method if the key must be removed entirely.
(Read and Write computed property)
GMImageMBS.despeckle
Function:
Despeckle image (reduce speckle noise).
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)
image.despeckle
Backdrop=image.CopyPicture
GMImageMBS.display
Function:
Display image on screen.
Notes:
Caution: if an image format is is not compatible with the display visual (e.g. JPEG on a colormapped display) then the original image will be altered. Use a copy of the original if this is a problem.
The plugin is not compiled with X11 so this call may not be useful.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Caution: if an image format is is not compatible with the display visual (e.g. JPEG on a colormapped display) then the original image will be altered. Use a copy of the original if this is a problem.
The plugin is not compiled with X11 so this call may not be useful.
GMImageMBS.edge(radius as Double=0.0)
Function:
Edge image (hilight edges in image).
Example:
Notes:
The radius is the radius of the pixel neighborhood. Specify a radius of zero for automatic radius selection.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)
image.edge
Backdrop=image.CopyPicture
The items on this page are in the following plugins: MBS GraphicsMagick Plugin.

Links
MBS FileMaker Plugins