Platforms to show: All Mac Windows Linux Cross-Platform
Back to IMImage7MBS class.
IMImage7MBS.OneVirtualPixel(X as Integer, Y as Integer) as MemoryBlock
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The image background color is returned if an error occurs.
If you plan to modify the pixel, use GetOneAuthenticPixel() instead.
See GetOneVirtualPixel function in ImageMagick documentation.
Memoryblock should have size of ChannelCount * QuantumSize.
Format of pixel values depend on what quantum size/type your library copy uses!
Use OneVirtualPixelInfo for a type independent color information.
IMImage7MBS.OneVirtualPixelInfo(virtualPixelMethod as Integer, X as Integer, Y as Integer) as IMPixelInfo7MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The image background color is returned if an error occurs.
If you plan to modify the pixel, use GetOneAuthenticPixel() instead.
See GetOneVirtualPixelInfo function in ImageMagick documentation.
IMImage7MBS.OptimizeImageLayers as IMImage7MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ 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.
See OptimizeImageLayers function in ImageMagick documentation.
IMImage7MBS.OptimizeImageTransparency
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ 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.
See OptimizeImageTransparency function in ImageMagick documentation.
IMImage7MBS.OptimizePlusImageLayers as IMImage7MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See OptimizeImagePlusLayers function in ImageMagick documentation.
IMImage7MBS.OrderedDither(threshold as string) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
threshold: A string containing the name of the threshold dither map to use, followed by zero or more numbers representing the number of color levels tho dither between.
Any level number less than 2 will be equivalent to 2, and means only binary dithering will be applied to each color channel.
No numbers also means a 2 level (bitmap) dither will be applied to all channels, while a single number is the number of levels applied to each channel in sequence. More numbers will be applied in turn to each of the color channels.
For example: "o3x3,6" will generate a 6 level posterization of the image with a ordered 3x3 diffused pixel dither being applied between each level. While checker,8,8,4 will produce a 332 colormaped image with only a single checkerboard hash pattern (50 grey) between each color level, to basically double the number of color levels with a bare minimim of dithering.
See OrderedDitherImage function in ImageMagick documentation.
IMImage7MBS.Perceptible(epsilon as Double) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
epsilon: the epsilon threshold (e.g. 1.0e-9).
See PerceptibleImage function in ImageMagick documentation.
IMImage7MBS.Posterize(levels as Integer, DitherMethod as Integer) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
levels: Number of color levels allowed in each channel. Very low values (2, 3, or 4) have the most visible effect.
DitherMethod: choose from UndefinedDitherMethod, NoDitherMethod, RiemersmaDitherMethod, FloydSteinbergDitherMethod.
Returns true on success.
See PosterizeImage function in ImageMagick documentation.
IMImage7MBS.Preview(PreviewType as Integer) as IMImage7MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This may be helpful pin-pointing an appropriate parameter for a particular image processing operation.
preview: the image processing operation. See preview constants.
See xx function in ImageMagick documentation.
IMImage7MBS.Profile(name as string, ProfileData as string) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If the profile is nil, it is removed from the image otherwise added or applied. Use a name of '*' and a profile of nil to remove all profiles from the image.
ICC and ICM profiles are handled as follows: If the image does not have an associated color profile, the one you provide is associated with the image and the image pixels are not transformed. Otherwise, the colorspace transform defined by the existing and new profile are applied to the image pixels and the new profile is associated with the image.
name: Name of profile to add or remove: ICC, IPTC, or generic profile.
ProfileData: the profile data.
See ProfileImage function in ImageMagick documentation.
IMImage7MBS.Properties as Dictionary
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See ResetImagePropertyIterator, GetNextImageProperty and GetImageProperty functions in ImageMagick documentation.
IMImage7MBS.Quantize(quantizeInfo as IMQuantizeInfo7MBS) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The goal of the algorithm is to minimize the color difference between the input and output image while minimizing the processing time.
quantizeInfo: Specifies a QuantizeInfo object.
Returns true on success.
See QuantizeImage function in ImageMagick documentation.
IMImage7MBS.QuantizeImages(quantizeInfo as IMQuantizeInfo7MBS) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The goal of the algorithm is to minimize the color difference between the input and output images while minimizing the processing time.
quantizeInfo: Specifies an QuantizeInfo structure.
self: Specifies a list of Images.
See QuantizeImages function in ImageMagick documentation.
IMImage7MBS.QueueAuthenticPixels(X as Integer, Y as Integer, Width as Integer, Height as Integer) as Ptr
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If the region is successfully initialized a pointer to a Quantum array representing the region is returned, otherwise nil is returned. The returned pointer may point to a temporary working buffer for the pixels or it may point to the final location of the pixels in memory.
Write-only access means that any existing pixel values corresponding to the region are ignored. This is useful if the initial image is being created from scratch, or if the existing pixel values are to be completely replaced without need to refer to their pre-existing values. The application is free to read and write the pixel buffer returned by QueueAuthenticPixels() any way it pleases. QueueAuthenticPixels() does not initialize the pixel array values. Initializing pixel array values is the application's responsibility.
Performance is maximized if the selected region is part of one row, or one or more full rows, since then there is opportunity to access the pixels in-place (without a copy) if the image is in memory, or in a memory-mapped file. The returned pointer must *never* be deallocated by the user.
Pixels accessed via the returned pointer represent a simple array of type Quantum. If the image type is CMYK or the storage class is PseudoClass, call GetAuthenticMetacontent() after invoking GetAuthenticPixels() to obtain the meta-content (of type void) corresponding to the region. Once the Quantum (and/or Quantum) array has been updated, the changes must be saved back to the underlying image using SyncAuthenticPixels() or they may be lost.
x, y, width and height define the perimeter of a region of pixels.
See QueueAuthenticPixels function in ImageMagick documentation.
Format of pixel values depend on what quantum size/type your library copy uses!
IMImage7MBS.Texture(Image as IMImage7MBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See xx function in ImageMagick documentation.
IMImage7MBS.Thumbnail(columns as integer, rows as integer) as IMImage7MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The goal is to produce small low cost thumbnail images suited for display on the Web.
columns: the number of columns in the scaled image.
rows: the number of rows in the scaled image.
See ThumbnailImage function in ImageMagick documentation.
IMImage7MBS.TransformColorspace(ColorSpace as Integer) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See TransformImageColorspace function in ImageMagick documentation.
IMImage7MBS.Transpose as IMImage7MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See TransposeImage function in ImageMagick documentation.
IMImage7MBS.Transverse as IMImage7MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See TransverseImage function in ImageMagick documentation.
IMImage7MBS.Trim as IMImage7MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
See TrimImage function in ImageMagick documentation.
IMImage7MBS.UniqueColors as IMImage7MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See UniqueImageColors function in ImageMagick documentation.
IMImage7MBS.UnsharpMask(radius as double, sigma as double, amount as double, threshold as double) as IMImage7MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ 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 UnsharpMask selects a suitable radius for you.
radius: the radius of the Gaussian, in pixels, not counting the center pixel.
sigma: the standard deviation of the Gaussian, in pixels.
gain: 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 gain.
See UnsharpMaskImage function in ImageMagick documentation.
IMImage7MBS.VirtualPixels(X as Integer, Y as Integer, Width as Integer, Height as Integer) as Ptr
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If the region is successfully accessed, a pointer to it is returned, otherwise nil is returned. The returned pointer may point to a temporary working copy of the pixels or it may point to the original pixels in memory. Performance is maximized if the selected region is part of one row, or one or more full rows, since there is opportunity to access the pixels in-place (without a copy) if the image is in memory, or in a memory-mapped file. The returned pointer must *never* be deallocated by the user.
Pixels accessed via the returned pointer represent a simple array of type Quantum. If the image type is CMYK or the storage class is PseudoClass, call AuthenticMetacontent after invoking AuthenticPixels to access the meta-content (of type void) corresponding to the the region.
If you plan to modify the pixels, use GetAuthenticPixels() instead.
Note, the VirtualPixels() and AuthenticPixels() methods are not thread-safe. In a threaded environment, use CacheViewVirtualPixels() or CacheViewAuthenticPixels() instead.
See GetVirtualPixels function in ImageMagick documentation.
Format of pixel values depend on what quantum size/type your library copy uses!
IMImage7MBS.Wave(amplitude as double, wavelength as double, pixelInterpolateMethod as integer) as IMImage7MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
amplitude, wavelength: Define the amplitude and wave length of the sine wave.
pixelInterpolateMethod: the pixel interpolation method.
See WaveImage function in ImageMagick documentation.
IMImage7MBS.WhiteThreshold(thresholds as string) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | ImageMagick7 | MBS GraphicsMagick Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
threshold: Define the threshold value.
See WhiteThresholdImage function in ImageMagick documentation.
The items on this page are in the following plugins: MBS GraphicsMagick Plugin.