Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items Next items

IMImageQ32MBS.FlattenImages as IMImageQ32MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 6.1 Yes Yes Yes Yes No
Function: Flatten composites all images from the current image pointer to the end of the image list and returns a single flattened image.
Notes:
Returns nil on any error.
Sets the last exception property.

Feedback, Comments & Corrections

IMImageQ32MBS.Flip as IMImageQ32MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 6.1 Yes Yes Yes Yes No
Function: Flip creates a vertical mirror image by reflecting the pixels around the central x-axis.
Notes:
Returns nil on any error.
Sets the last exception property.

Feedback, Comments & Corrections

IMImageQ32MBS.Flop as IMImageQ32MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 6.1 Yes Yes Yes Yes No
Function: Flop creates a horizontal mirror image by reflecting the pixels around the central y-axis.
Notes:
Returns nil on any error.
Sets the last exception property.

Feedback, Comments & Corrections

IMImageQ32MBS.FrameImage(x as Integer, y as Integer, width as Integer, height as Integer, innerBevel as Integer, OuterBevel as Integer) as IMImageQ32MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 11.3 Yes Yes Yes Yes No
Function: Adds a simulated three-dimensional border around the image.
Notes: The color of the border is defined by the MatteColor of image. Width and height specify the border width of the vertical and horizontal sides of the frame. innerBevel and OuterBevel indicate the width of the inner and outer shadows of the frame.

Feedback, Comments & Corrections

IMImageQ32MBS.FxImage(expression as string) as IMImageQ32MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 8.2 Yes Yes Yes Yes No
Function: FxImage() applies a mathematical expression to the specified image.
Notes: Can raise an exception.

Feedback, Comments & Corrections

IMImageQ32MBS.GaussianBlurChannel(channel as Integer, radius as Double, sigma as Double) as IMImageQ32MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 5.1 Yes Yes Yes Yes No
Function: Blurs an image.
Notes:
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.

Feedback, Comments & Corrections

IMImageQ32MBS.GetImageAttribute(key as string) as IMImageAttributeQ32MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 6.1 Yes Yes Yes Yes No
Function: GetImageAttribute searches the list of image attributes and returns a reference to the attribute if it exists otherwise nil.

Feedback, Comments & Corrections

IMImageQ32MBS.GetImageClippingPathAttribute as IMImageAttributeQ32MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 6.1 Yes Yes Yes Yes No
Function: GetImageClippingPathAttribute searches the list of image attributes and returns a reference to a clipping path if it exists otherwise nil.

Feedback, Comments & Corrections

IMImageQ32MBS.GetImageProfile(name as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 5.2 Yes Yes Yes Yes No
Function: Gets a profile associated with an image by name.
Notes: Returns "" on any error.

Feedback, Comments & Corrections

IMImageQ32MBS.GetNextImageAttribute as IMImageAttributeQ32MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 6.1 Yes Yes Yes Yes No
Function: GetNextImageAttribute() gets the next image attribute.
Notes: Returns nil on any error.

Feedback, Comments & Corrections

IMImageQ32MBS.GetNextImageProfile as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 5.2 Yes Yes Yes Yes No
Function: Gets the next profile name for an image.
Notes: Returns "" on any error.

Feedback, Comments & Corrections

IMImageQ32MBS.HandleMemory as memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 5.2 Yes Yes Yes Yes No
Function: The content of the whole Image structure copied into a memoryblock.
Notes: Returns nil on any error.

Feedback, Comments & Corrections

IMImageQ32MBS.ImagesToBlob(info as IMImageInfoQ32MBS) as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 5.2 Yes Yes Yes Yes No
Function: ImagesToBlob implements direct to memory image formats.
Notes:
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.

Feedback, Comments & Corrections

IMImageQ32MBS.ImageToBlob(info as IMImageInfoQ32MBS) as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 5.1 Yes Yes Yes Yes No
Function: ImagesToBlob implements direct to memory image formats.
Example:
dim im as ImageMagickQ32MBS // global

Function IMPictureToString(p as picture, magick as string, quality as Integer) As string
dim image as new IMImageQ32MBS
dim imageinfo as IMImageInfoQ32MBS
dim s,data as string
dim impp as new IMMagickPixelPacketQ32MBS

// 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
Notes:
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.

Feedback, Comments & Corrections

IMImageQ32MBS.Implode(factor as Double) as IMImageQ32MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 5.4 Yes Yes Yes Yes No
Function: Method ImplodeImage creates a new image that is a copy of an existing one with the image pixels "implode" by the specified percentage.
Notes:
factor: A double value that defines the extent of the implosion.

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

Feedback, Comments & Corrections

IMImageQ32MBS.IsBlobExempt as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 5.1 Yes Yes Yes Yes No
Function: Returns true if the blob is exempt.
Notes: For more details please check the ImageMagick documentation.

Feedback, Comments & Corrections

IMImageQ32MBS.IsBlobSeekable as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 5.1 Yes Yes Yes Yes No
Function: Returns true if the blob is seekable.
Notes: For more details please check the ImageMagick documentation.

Feedback, Comments & Corrections

IMImageQ32MBS.IsBlobTemporary as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 5.1 Yes Yes Yes Yes No
Function: Returns true if the blob is temporary.
Notes: For more details please check the ImageMagick documentation.

Feedback, Comments & Corrections

IMImageQ32MBS.MedianFilter(radius as Double) as IMImageQ32MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 5.1 Yes Yes Yes Yes No
Function: Applies a digital filter that improves the quality of a noisy image.
Notes:
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.

Feedback, Comments & Corrections

IMImageQ32MBS.MergeImageLayers(ImageLayerMethod as Integer) as IMImageQ32MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 8.3 Yes Yes Yes Yes No
Function: MergeImageLayers() composes all the image layers from the current given image onward to produce a single image of the merged layers.
Notes:
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.

Feedback, Comments & Corrections

IMImageQ32MBS.MosaicImages as IMImageQ32MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 6.1 Yes Yes Yes Yes No
Function: MosaicImages inlays an image sequence to form a single coherent picture.
Notes:
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.

Feedback, Comments & Corrections

IMImageQ32MBS.MotionBlur(radius as Double, sigma as Double, angle as Double) as IMImageQ32MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 5.1 Yes Yes Yes Yes No
Function: Simulates motion blur.
Notes:
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.

Feedback, Comments & Corrections

IMImageQ32MBS.NegateImage(gray as boolean = false) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 15.2 Yes Yes Yes Yes No
Function: Negates the colors in the reference image.
Notes:
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.

Feedback, Comments & Corrections

IMImageQ32MBS.NegateImageChannel(ChannelType as Integer, gray as boolean = false) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 15.2 Yes Yes Yes Yes No
Function: Negates the colors in the reference image.
Notes:
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

Feedback, Comments & Corrections

IMImageQ32MBS.NewImage(info as IMImageInfoQ32MBS, width as Integer, height as Integer, background as IMMagickPixelPacketQ32MBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 5.2 Yes Yes Yes Yes No
Function: Creates a new image.
Example:
dim im as ImageMagickQ32MBS // global
dim p as picture
dim imageinfo as IMImageInfoQ32MBS
dim image as IMImageQ32MBS
dim b as new IMMagickPixelPacketQ32MBS
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 IMImageQ32MBS
if image.NewImage(imageinfo,500,500,b) then
p=NewPicture(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
Notes: Returns false on failure and true on success.

Feedback, Comments & Corrections

IMImageQ32MBS.NormalizeImage as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 15.2 Yes Yes Yes Yes No
Function: 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.
Notes: Returns true on success or false on failure.

Feedback, Comments & Corrections

IMImageQ32MBS.NormalizeImageChannel(ChannelType as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 15.2 Yes Yes Yes Yes No
Function: 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.
Notes:
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

Feedback, Comments & Corrections

IMImageQ32MBS.OilPaint(radius as Double) as IMImageQ32MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 5.4 Yes Yes Yes Yes No
Function: 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.
Notes:
radius parameter: radius of the circular neighborhood.
Returns nil on any error.
Sets the last exception property.

Feedback, Comments & Corrections

IMImageQ32MBS.OptimizeImageLayers as IMImageQ32MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 8.3 Yes Yes Yes Yes No
Function: OptimizeImageLayers() compares each image the GIF disposed forms of the previous image in the sequence.
Notes:
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.

Feedback, Comments & Corrections

IMImageQ32MBS.OptimizeImageTransparency
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Image Magick MBS GraphicsMagick Plugin 8.3 Yes Yes Yes Yes No
Function: 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.
Notes:
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.

Feedback, Comments & Corrections

Previous items Next items

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





Links
MBS FileMaker blog