Platforms to show: All Mac Windows Linux Cross-Platform
Back to IMImageQ32MBS class.
IMImageQ32MBS.MergeImageLayers(ImageLayerMethod as Integer) as IMImageQ32MBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 8.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The inital canvas's size depends on the given ImageLayerMethod, and is initialized using the first images images background color. The images are then compositied onto that image in sequence using the given composition that has been assigned to each individual image.
ImageLayerMethod:
the method of selecting the size of the initial canvas.
MergeLayer: Merge all layers onto a canvas just large enough to hold all the actual images. The virtual canvas of the first image is preserved but otherwise ignored.
FlattenLayer: Use the virtual canvas size of first image. Images which fall outside this canvas is clipped. This can be used to 'fill out' a given virtual canvas.
MosaicLayer: Start with the virtual canvas of the first image, enlarging left and right edges to contain all images. Images with negative offsets will be clipped.
Can raise an exception.
IMImageQ32MBS.MosaicImages as IMImageQ32MBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 6.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
It returns a single image with each image in the sequence composited at the location defined by the page member of the image structure.
Returns nil on any error.
Sets the last exception property.
IMImageQ32MBS.MotionBlur(radius as Double, sigma as Double, angle as Double) as IMImageQ32MBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and MotionBlur selects a suitable radius for you. Angle gives the angle of the blurring motion.
Sets the last exception property.
For more details please check the ImageMagick documentation.
IMImageQ32MBS.NegateImage(gray as boolean = false) 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.
The grayscale option means that only grayscale values within the image are negated.
gray: If true, only negate grayscale pixels within the image.
IMImageQ32MBS.NegateImageChannel(ChannelType as Integer, gray as boolean = false) 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.
The grayscale option means that only grayscale values within the image are negated.
ChannelType: The channels to use.
gray: If true, only negate grayscale pixels within the image.
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 |
IMImageQ32MBS.NewImage(info as IMImageInfoQ32MBS, width as Integer, height as Integer, background as IMMagickPixelPacketQ32MBS) 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 failure and true on success.
IMImageQ32MBS.NormalizeImage 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.
IMImageQ32MBS.NormalizeImageChannel(ChannelType as Integer) 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.
ChannelType: The channels to auto-level. If the special 'SyncChannels' flag is set the min/max/mean value of all given channels is used for all given channels, to all channels in the same way.
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 |
IMImageQ32MBS.OilPaint(radius as Double) as IMImageQ32MBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 5.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
radius parameter: radius of the circular neighborhood.
Returns nil on any error.
Sets the last exception property.
IMImageQ32MBS.OptimizeImageLayers as IMImageQ32MBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 8.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
From this it attempts to select the smallest cropped image to replace each frame, while preserving the results of the GIF animation.
Can raise an exception.
IMImageQ32MBS.OptimizeImageTransparency
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 8.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Any pixel that does not change the disposal image (and thus does not effect the outcome of an overlay) is made transparent.
WARNING: This modifies the current images directly, rather than generate a new image sequence.
Can raise an exception.
IMImageQ32MBS.OptimizePlusImageLayers as IMImageQ32MBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 8.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Can raise an exception.
IMImageQ32MBS.ProfileImage(name as string, ProfileData as string) 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 the ProfileData is "", it is removed from the image otherwise added. Use a name of '*' and a ProfileData of "" to remove all profiles from the image.
Returns false on any error and true on success.
IMImageQ32MBS.RadialBlur(angle as Double) as IMImageQ32MBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
angle: The angle of the radial blur.
Sets the last exception property.
For more details please check the ImageMagick documentation.
IMImageQ32MBS.RaiseImage(x as Integer, y as Integer, width as Integer, height as Integer, raise as boolean) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 11.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Width and height define the width of the vertical and horizontal edge of the effect.
raise: A value other than zero creates a 3-D raise effect, otherwise it has a lowered effect.
IMImageQ32MBS.RandomThresholdChannel(channel as Integer, thresholds as string) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The result is a low-contrast, two color image.
channel: The channel or channels to be thresholded.
thresholds: a geometry string containing low,high thresholds. If the string contains 2x2, 3x3, or 4x4, an ordered dither of order 2, 3, or 4 is performed instead. (ASCII string)
Sets the last exception property.
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 |
For more details please check the ImageMagick documentation.
IMImageQ32MBS.ReduceNoise(radius as Double) as IMImageQ32MBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The algorithm works by replacing each pixel with its neighbor closest in value. A neighbor is defined by radius. Use a radius of 0 and ReduceNoise selects a suitable radius for you.
For more details please check the ImageMagick documentation.
IMImageQ32MBS.RemoveDuplicateLayers
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 11.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Image size and virtual canvas offset must also match, though not the virtual canvas size itself.
No check is made with regards to image disposal setting, though it is the dispose setting of later image that is kept. Also any time delays are also added together. As such coalesced image animations should still produce the same result, though with duplicte frames merged into a single frame.
IMImageQ32MBS.RemoveFirstImageFromList as IMImageQ32MBS
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.
For more details please check the ImageMagick documentation.
IMImageQ32MBS.RemoveImageProfile(name as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 11.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
IMImageQ32MBS.RemoveZeroDelayLayers
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 11.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Such images generally represent intermediate or partial updates in GIF animations used for file optimization. They are not ment to be displayed to users of the animation. Viewable images in an animation should have a time delay of 3 or more centi-seconds (hundredths of a second).
However if all the frames have a zero time delay, then either the animation is as yet incomplete, or it is not a GIF animation. This is a non-sensible situation, so no image will be removed and a 'Zero Time Animation' warning (exception) given.
No warning will be given if no image was removed because all images had an appropriate non-zero time delay set.
Due to the special requirements of GIF disposal handling, GIF animations should be coalesced first, before calling this function, though that is not a requirement.
IMImageQ32MBS.ResetImageAttributeIterator
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 6.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Use it in conjunction with GetNextImageAttribute() to iterate over all the values associated with an image.
IMImageQ32MBS.ResetImageProfileIterator
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 5.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Use it in conjunction with GetNextImageProfile() to iterate over all the profiles associated with an image.
IMImageQ32MBS.RGBTransformImage(Colorspace 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 |
The transformation matrices are not the standard ones: the weights are rescaled to normalized the range of the transformed values to be [0..MaxRGB].
colorspace: An integer value that indicates which colorspace to transform the image.
Returns false on any error and true on success.
constants:
UndefinedColorspace | 0 |
RGBColorspace | 1 |
GRAYColorspace | 2 |
TransparentColorspace | 3 |
OHTAColorspace | 4 |
LABColorspace | 5 |
XYZColorspace | 6 |
YCbCrColorspace | 7 |
YCCColorspace | 8 |
YIQColorspace | 9 |
YPbPrColorspace | 10 |
YUVColorspace | 11 |
CMYKColorspace | 12 |
sRGBColorspace | 13 |
HSBColorspace | 14 |
HSLColorspace | 15 |
HWBColorspace | 16 |
IMImageQ32MBS.Roll(x as Integer, y as Integer) as IMImageQ32MBS
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.
IMImageQ32MBS.Rotate(degrees as Double) as IMImageQ32MBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Method RotateImage creates a new image that is a rotated copy of an existing one. Positive angles rotate counter-clockwise (right-hand rule), while negative angles rotate clockwise. Rotated images are usually larger than the originals and have 'empty' triangular corners. X axis. Empty triangles left over from shearing the image are filled with the color specified by the image background_color. RotateImage allocates the memory necessary for the new Image structure and returns a pointer to the new image.
Method RotateImage is based on the paper ''A Fast Algorithm for General Raster Rotatation'' by Alan W. Paeth. RotateImage is adapted from a similar method based on the Paeth paper written by Michael Halle of the Spatial Imaging Group, MIT Media Lab.
degrees: Specifies the number of degrees to rotate the image.
Sets the lastexception property.
Returns nil on low memory.
For more details please check the ImageMagick documentation.
IMImageQ32MBS.SetImageAttribute(key as string, value as string) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 6.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If it is not found in the list, the attribute name and value is added to the list. If the attribute exists in the list, the value is concatenated to the attribute. SetImageAttribute returns True if the attribute is successfully concatenated or added to the list, otherwise False. If the value is "", the matching key is deleted from the list.
IMImageQ32MBS.SetImageColorspace(Colorspace 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 |
Returns false on any error and true on success.
IMImageQ32MBS.SetImageProfile(name as string, ProfileData as string) 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 a profile with the same name already exists, it is replaced. This method differs from the ProfileImage() method in that it does not apply CMS color profiles.
name: The profile name.
profiledata: The binary data of the profile.
Returns false on any error and true on success.
IMImageQ32MBS.SetPicture(pic as picture, 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 |
Sets the last exception property.
The method will do nothing on bad bounds.
This method works only for bitmap images.
x and y are zero based.
IMImageQ32MBS.SetPictureMask(maskpic as picture, 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 |
Sets the last exception property.
The method will do nothing on bad bounds.
This method works only for bitmap images.
x and y are zero based.
You may need to set matte=True after this.
IMImageQ32MBS.SetPixel(x as Integer, y as Integer, newPixel as IMColorQ32MBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 5.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The method will fail silently if the values are out of bounds or the image is not a bitmap image.
This method works only for bitmap images.
x and y are zero based.
IMImageQ32MBS.Shade(gray as boolean, azimuth as Double, elevation as Double) as IMImageQ32MBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
You control the positioning of the light with azimuth and elevation; azimuth is measured in degrees off the x axis and elevation is measured in pixels above the Z axis.
Sets the last exception property.
For more details please check the ImageMagick documentation.
IMImageQ32MBS.SharpenChannel(channel as Integer, radius as Double, sigma as Double) as IMImageQ32MBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma) . For reasonable results, radius should be larger than sigma. Use a radius of 0 and Sharpen selects a suitable radius for you.
channel: The channel type.
radius: The radius of the Gaussian, in pixels, not counting the center pixel.
sigma: The standard deviation of the Laplacian, in pixels.
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 |
Sets the last exception property.
For more details please check the ImageMagick documentation.
IMImageQ32MBS.Shave(x as Integer, y as Integer, width as Integer, height as Integer) as IMImageQ32MBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 6.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
Returns nil on any error.
Sets the last exception property.
IMImageQ32MBS.Shear(Xshear as Double, Yshear as Double) as IMImageQ32MBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Shearing slides one edge of an image along the X or Y axis, creating a parallelogram. An X direction shear slides an edge along the X axis, while a Y direction shear slides an edge along the Y axis. The amount of the shear is controlled by a shear angle. For X direction shears, x_shear is measured relative to the Y axis, and similarly, for Y direction shears y_shear is measured relative to the X axis. Empty triangles left over from shearing the image are filled with the color defined by the pixel at location (0,0). ShearImage allocates the memory necessary for the new Image structure and returns a pointer to the new image.
Xshear and YYshear specify the number of degrees to shear the image.
Sets the last exception property.
For more details please check the ImageMagick documentation.
IMImageQ32MBS.Solarize(factor as Double) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Image Magick | MBS GraphicsMagick Plugin | 5.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
factor: An double value that defines the extent of the solarization.
Returns nil on any error.
Sets the last exception property.
The items on this page are in the following plugins: MBS GraphicsMagick Plugin.