Platforms to show: All Mac Windows Linux Cross-Platform

Back to IMImageQ8MBS class.

Previous items Next items

IMImageQ8MBS.GaussianBlurChannel(channel as Integer, radius as Double, sigma as Double) as IMImageQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Blurs an image.

We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma) . For reasonable results, the radius should be larger than sigma. Use a radius of 0 and GaussianBlur selects a suitable radius for you.
Sets the last exception property.

radius: the radius of the Gaussian, in pixels, not counting the center pixel.
channel: The channel type.
sigma: the standard deviation of the Gaussian, 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

For more details please check the ImageMagick documentation.

IMImageQ8MBS.GetImageAttribute(key as string) as IMImageAttributeQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 6.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
GetImageAttribute searches the list of image attributes and returns a reference to the attribute if it exists otherwise nil.

IMImageQ8MBS.GetImageClippingPathAttribute as IMImageAttributeQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 6.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
GetImageClippingPathAttribute searches the list of image attributes and returns a reference to a clipping path if it exists otherwise nil.

IMImageQ8MBS.GetImageProfile(name as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Gets a profile associated with an image by name.

Returns "" on any error.

IMImageQ8MBS.GetNextImageAttribute as IMImageAttributeQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 6.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
GetNextImageAttribute() gets the next image attribute.

Returns nil on any error.

IMImageQ8MBS.GetNextImageProfile as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Gets the next profile name for an image.

Returns "" on any error.

IMImageQ8MBS.HandleMemory as memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The content of the whole Image structure copied into a memoryblock.

Returns nil on any error.

IMImageQ8MBS.ImagesToBlob(info as IMImageInfoQ8MBS) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
ImagesToBlob implements direct to memory image formats.

It returns the image sequence as a string. The magick member of the ImageInfo structure determines the format of the returned blob ( GIF, JPEG, PNG, etc. )

Note, some image formats do not permit multiple images to the same image stream (e.g. JPEG). in this instance, just the first image of the sequence is returned as a blob.

Sets the last exception property and returns "" on any error.
For more details please check the ImageMagick documentation.

IMImageQ8MBS.ImageToBlob(info as IMImageInfoQ8MBS) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
ImagesToBlob implements direct to memory image formats.
Example
Var im as ImageMagickQ8MBS // global

Function IMPictureToString(p as picture, magick as string, quality as Integer) As string
Var image as new IMImageQ8MBS
Var imageinfo as IMImageInfoQ8MBS
Var s,data as string
Var impp as new IMMagickPixelPacketQ8MBS

// empty string for nil picture
if p = nil then
Return ""
end if

// create a new picture info

imageinfo = im.NewImageInfo
imageinfo.ColorSpace=1
// only color space is needed. 1 for RGB.

// background color of image
impp.red = 0
impp.Green = 0
impp.Blue = 0

// creates a new image object
if not image.NewImage(imageinfo,p.Width,p.Height,impp) then
Return ""
end if

// copy RB picture into IM Image at position 0/0
image.ColorSpace = 1
image.SetPicture(p,0,0)

// set compression data
imageinfo.Magick = magick
imageinfo.Quality = quality

// and rendering intent: 2=PerceptualIntent
'image.RenderingIntent = 2

// create image data
data = image.ImageToBlob(imageinfo)

// release memory
image.DestroyImage
imageinfo.DestroyImageInfo

// return result
Return data

Exception
// in case of an exception return nothing
Return ""


End Function

It returns the image sequence as a string. The magick member of the ImageInfo structure determines the format of the returned blob ( GIF, JPEG, PNG, etc. )

Note, some image formats do not permit multiple images to the same image stream (e.g. JPEG). in this instance, just the first image of the sequence is returned as a blob.

Sets the last exception property and returns "" on any error.
For more details please check the ImageMagick documentation.

IMImageQ8MBS.Implode(factor as Double) as IMImageQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Method ImplodeImage creates a new image that is a copy of an existing one with the image pixels "implode" by the specified percentage.

factor: A double value that defines the extent of the implosion.

Returns nil on any error.
Sets the last exception property.

IMImageQ8MBS.IsBlobExempt as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns true if the blob is exempt.

For more details please check the ImageMagick documentation.

IMImageQ8MBS.IsBlobSeekable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns true if the blob is seekable.

For more details please check the ImageMagick documentation.

IMImageQ8MBS.IsBlobTemporary as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns true if the blob is temporary.

For more details please check the ImageMagick documentation.

IMImageQ8MBS.MedianFilter(radius as Double) as IMImageQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Applies a digital filter that improves the quality of a noisy image.

Each pixel is replaced by the median in a set of neighboring pixels as defined by radius.
Sets the last exception property.

For more details please check the ImageMagick documentation.

IMImageQ8MBS.MergeImageLayers(ImageLayerMethod as Integer) as IMImageQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
MergeImageLayers() composes all the image layers from the current given image onward to produce a single image of the merged layers.

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.

IMImageQ8MBS.MosaicImages as IMImageQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 6.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
MosaicImages inlays an image sequence to form a single coherent picture.

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.

IMImageQ8MBS.MotionBlur(radius as Double, sigma as Double, angle as Double) as IMImageQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Simulates motion blur.

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.

IMImageQ8MBS.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
Negates the colors in the reference image.

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.

IMImageQ8MBS.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
Negates the colors in the reference image.

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

IMImageQ8MBS.NewImage(info as IMImageInfoQ8MBS, width as Integer, height as Integer, background as IMMagickPixelPacketQ8MBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a new image.
Example
Var im as ImageMagickQ8MBS // global
Var p as picture
Var imageinfo as IMImageInfoQ8MBS
Var image as IMImageQ8MBS
Var b as new IMMagickPixelPacketQ8MBS
b.Blue=65535
b.ColorSpace=1 // RGB
b.Depth=16

imageinfo = im.NewImageInfo
imageinfo.Depth=16
imageinfo.ColorSpace=1

//this should read any image IM understands
image = new IMImageQ8MBS
if image.NewImage(imageinfo,500,500,b) then
p=New Picture(300,300,32)
p.Graphics.ForeColor=Rgb(255,0,0)
p.Graphics.FillOval 0,0,300,300
image.SetPicture p,0,0
else
MsgBox "failed"
end if

Returns false on failure and true on success.

IMImageQ8MBS.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
Enhances the contrast of a color image by mapping the darkest 2 percent of all pixel to black and the brightest 1 percent to white.

Returns true on success or false on failure.

IMImageQ8MBS.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
Enhances the contrast of a color image by mapping the darkest 2 percent of all pixel to black and the brightest 1 percent to white.

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

IMImageQ8MBS.OilPaint(radius as Double) as IMImageQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Method OilPaintImage creates a new image that is a copy of an existing one with each pixel component replaced with the color of greatest frequency in a circular neighborhood.

radius parameter: radius of the circular neighborhood.
Returns nil on any error.
Sets the last exception property.

IMImageQ8MBS.OptimizeImageLayers as IMImageQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
OptimizeImageLayers() compares each image the GIF disposed forms of the previous image in the sequence.

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.

IMImageQ8MBS.OptimizeImageTransparency

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
OptimizeImageTransparency() takes a frame optimized GIF animation, and compares the overlayed pixels against the disposal image resulting from all the previous frames in the animation.

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.

IMImageQ8MBS.OptimizePlusImageLayers as IMImageQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
OptimizeImagePlusLayers() is exactly as OptimizeImageLayers(), but may also add or even remove extra frames in the animation, if it improves the total number of pixels in the resulting GIF animation.

Can raise an exception.

IMImageQ8MBS.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
Adds or removes a ICC, IPTC, or generic profile from an image.

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.

IMImageQ8MBS.TransformImage(CropGeometry as string, ImageGeometry as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
TransformImage() is a convenience method that behaves like ResizeImage() or CropImage() but accepts scaling and/or cropping information as a region geometry specification. If the operation fails, the original image handle is left as is.

This should only be used for single images.

CropGeometry: A crop geometry string. This geometry defines a subregion of the image to crop.
ImageGeometry: An image geometry string. This geometry defines the final size of the image.

Returns true on success.

IMImageQ8MBS.TransformImages(CropGeometry as string, ImageGeometry as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
TransformImages() calls TransformImage() on each image of a sequence.

TransformImage() is a convenience method that behaves like ResizeImage() or CropImage() but accepts scaling and/or cropping information as a region geometry specification. If the operation fails, the original image handle is left as is.

CropGeometry: A crop geometry string. This geometry defines a subregion of the image to crop.
ImageGeometry: An image geometry string. This geometry defines the final size of the image.

Returns true on success.

IMImageQ8MBS.TransformRGBImage(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
Method TransformRGBImage converts the reference image from an alternate colorspace.

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 the colorspace the image is currently in. On return the image is in the RGB color space.

Returns false on any error and true on success.

constants:
UndefinedColorspace0
RGBColorspace1
GRAYColorspace2
TransparentColorspace3
OHTAColorspace4
LABColorspace5
XYZColorspace6
YCbCrColorspace7
YCCColorspace8
YIQColorspace9
YPbPrColorspace10
YUVColorspace11
CMYKColorspace12
sRGBColorspace13
HSBColorspace14
HSLColorspace15
HWBColorspace16

IMImageQ8MBS.TransposeImage as IMImageQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
TransposeImage() creates a horizontal mirror image by reflecting the pixels around the central y-axis while rotating them by 90 degrees.

IMImageQ8MBS.TransverseImage as IMImageQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
TransverseImage() creates a vertical mirror image by reflecting the pixels around the central x-axis while rotating them by 270 degrees.

IMImageQ8MBS.Trim as IMImageQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 6.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Trim trims pixels from the image edges.

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.

IMImageQ8MBS.UnsharpMaskChannel(channel as Integer, radius as Double, sigma as Double, amount as Double, threshold as Double) as IMImageQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sharpens one or more image channels.

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.

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.

IMImageQ8MBS.Wave(amplitude as Double, wavelength as Double) as IMImageQ8MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Method Wave creates a new image that is a copy of an existing one with the image pixels altered along a sine wave.

Parameters are double values that indicates the amplitude and wavelength of the sine wave.
Returns nil on any error.
Sets the last exception property.

IMImageQ8MBS.WhiteThreshold(threshold 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
WhiteThreshold is like Threshold but forces all pixels above the threshold into white while leaving all pixels below the threshold unchanged.

No exceptions are generated.
threshold: Define the threshold value. (ASCII string)
For more details please check the ImageMagick documentation.

Previous items Next items

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


The biggest plugin in space...