Platforms to show: All Mac Windows Linux Cross-Platform
Back to IMImageQ16MBS class.
IMImageQ16MBS.Charcoal(radius as Double, sigma as Double) as IMImageQ16MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 5.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
radius: the radius of the pixel neighborhood.
sigma: The standard deviation of the Gaussian, in pixels.
Returns nil on any error.
Sets the last exception property.
IMImageQ16MBS.Chop(x as Integer, y as Integer, width as Integer, height as Integer) as IMImageQ16MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 6.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns nil on any error.
Sets the last exception property.
IMImageQ16MBS.ClipPath(path as string, inside as boolean) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 5.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
| pathname: | name of clipping path resource. If name is preceded by #, use clipping path numbered by name. |
| inside: | if true, later operations take effect inside clipping path. Otherwise later operations take effect outside clipping path. |
Returns true on success and false on any error.
IMImageQ16MBS.Clone as IMImageQ16MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
For more details please check the ImageMagick documentation.
IMImageQ16MBS.CloneImageAttributes(image as IMImageAttributeQ16MBS) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 6.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns false on any error.
IMImageQ16MBS.CloneImageProfiles(SourceImage as IMImageQ16MBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 5.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns false on any error and true on success.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
There is no need to call this method except you want to free all resources used by this object now without waiting for Xojo to do it for you.
IMImageQ16MBS.ClutImage(clutImage as IMImageQ16MBS) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The values are extracted along a diagonal of the CLUT image so either a horizontal or vertial gradient image can be used.
Typically this is used to either re-color a gray-scale image according to a color gradient in the CLUT image, or to perform a freeform histogram (level) adjustment according to the (typically gray-scale) gradient in the CLUT image.
When the 'channel' mask includes the matte/alpha transparency channel but one image has no such channel it is assumed that that image is a simple gray-scale image that will effect the alpha channel values, either for gray-scale coloring (with transparent or semi-transparent colors), or a histogram adjustment of existing alpha channel values. If both images have matte channels, direct and normal indexing is applied, which is rarely used.
ClutImage: the color lookup table image for replacement color values.
Returns true on success or false on failure.
IMImageQ16MBS.ClutImageChannel(ChannelType as Integer, clutImage as IMImageQ16MBS) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The values are extracted along a diagonal of the CLUT image so either a horizontal or vertial gradient image can be used.
Typically this is used to either re-color a gray-scale image according to a color gradient in the CLUT image, or to perform a freeform histogram (level) adjustment according to the (typically gray-scale) gradient in the CLUT image.
When the 'channel' mask includes the matte/alpha transparency channel but one image has no such channel it is assumed that that image is a simple gray-scale image that will effect the alpha channel values, either for gray-scale coloring (with transparent or semi-transparent colors), or a histogram adjustment of existing alpha channel values. If both images have matte channels, direct and normal indexing is applied, which is rarely used.
ClutImage: the color lookup table image for replacement color values.
ChannelType: The channels to use.
Returns true on success or false on failure.
Constants for channel:
| const UndefinedChannel | = 0 |
| const RedChannel | = &h0001 |
| const GrayChannel | = &h0001 |
| const CyanChannel | = &h0001 |
| const GreenChannel | = &h0002 |
| const MagentaChannel | = &h0002 |
| const BlueChannel | = &h0004 |
| const YellowChannel | = &h0004 |
| const AlphaChannel | = &h0008 |
| const OpacityChannel | = &h0008 |
| const BlackChannel | = &h0020 |
| const IndexChannel | = &h0020 |
| const AllChannels | = &h7fffffff |
IMImageQ16MBS.CoalesceImages as IMImageQ16MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 6.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GIF, MIFF, and MNG animation sequences typically start with an image background and each subsequent image varies in size and offset. CoalesceImages() returns a new sequence where each image in the sequence is the same size as the first and composited with the next image in the sequence.
Returns nil on any error.
Sets the last exception property.
IMImageQ16MBS.Colorize(opacity as string, PenColorRed as Integer, PenColorGreen as Integer, PenColorBlue as Integer, PenColorOpacity as Integer) as IMImageQ16MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 5.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The colorization is controlled with the pen color and the opacity levels.
opacity: A character string indicating the level of opacity as a percentage (0-100).
PenColorRed, PenColorGreen, PenColorBlue and PenColorOpacity define the pen color used.
Returns nil on any error.
Sets the last exception property.
IMImageQ16MBS.Combine(channel as Integer) as IMImageQ16MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 5.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The grayscale value of the pixels of each image in the sequence is assigned in order to the specified channels of the combined image. The typical ordering would be image 1 => Red, 2 => Green, 3 => Blue, etc.
The lastexception property is set.
IMImageQ16MBS.CompareImageLayers(ImageLayerMethod as Integer) as IMImageQ16MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 8.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Images do NOT have to be the same size, though it is best that all the images are 'coalesced' (images are all the same size, on a flattened canvas, so as to represent exactly how an specific frame should look).
No GIF dispose methods are applied, so GIF animations must be coalesced before applying this image operator to find differences to them.
ImageLayerMethod:
the layers type to compare images with. Must be one of... CompareAnyLayer, CompareClearLayer, CompareOverlayLayer.
Can raise an exception.
IMImageQ16MBS.Composite(ComposeOperator as Integer, Image as IMImageQ16MBS, x as Integer, y as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 5.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
compose: Specifies an image composite operator.
Image: The second image.
x: An integer that specifies the column offset of the composited image.
y: An integer that specifies the row offset of the composited image.
No error code and exception!
IMImageQ16MBS.ConsolidateCMYKImages as IMImageQ16MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 6.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns nil on any error.
Sets the last exception property.
IMImageQ16MBS.ContrastImage(sharpen as boolean) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true on success or false on failure.
Set sharpen to true to increase the image contrast otherwise the contrast is reduced.
IMImageQ16MBS.CopyPicture as picture
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 11.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Sets the last exception property.
Returns nil on any error.
This method works only for bitmap images.
See also:
IMImageQ16MBS.CopyPicture(x as Integer, y as Integer, width as Integer, height as Integer) as picture
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 5.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Sets the last exception property.
Returns nil on any error.
This method works only for bitmap images.
x and y are zero based.
See also:
IMImageQ16MBS.CopyPictureMask as picture
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 11.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Sets the last exception property.
Returns nil on any error.
This method works only for bitmap images.
See also:
IMImageQ16MBS.CopyPictureMask(x as Integer, y as Integer, width as Integer, height as Integer) as picture
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 5.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Sets the last exception property.
Returns nil on any error.
This method works only for bitmap images.
x and y are zero based.
See also:
IMImageQ16MBS.CopyPixel(x as Integer, y as Integer) as IMColorQ16MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 5.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns nil on any error.
This method works only for bitmap images.
x and y are zero based.
IMImageQ16MBS.CreateHBITMAP as Ptr
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 15.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
The HBITMAP returned needs to be freed when you are done with it or you risk having a memory leak.
IMImageQ16MBS.Crop(x as Integer, y as Integer, width as Integer, height as Integer) as IMImageQ16MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 6.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns nil on any error.
Sets the last exception property.
IMImageQ16MBS.CropImageToTiles(CropGeometry as string) as IMImageQ16MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 11.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This may include a single sub-region of the image. This basically applies all the normal geometry flags for Crop.
IMImageQ16MBS.CycleColormap(displace as Integer) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Image Magick | MBS GraphicsMagick Plugin | 5.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If you cycle the colormap a number of times you can produce a psychodelic effect.
Returns true on success.
displace: displace the colormap this amount.
The items on this page are in the following plugins: MBS GraphicsMagick Plugin.