Platforms to show: All Mac Windows Linux Cross-Platform

Back to ImageMagick7MBS module.

ImageMagick7MBS.ClampToQuantum(value as Double) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageMagick7 MBS GraphicsMagick Plugin 20.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Clamps given value to the range for quantum.

Limits range between 0 and QuantumRange and for non-HDRI rounds value.

ImageMagick7MBS.InitializeMagick(path as string = "")

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageMagick7 MBS GraphicsMagick Plugin 20.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Initializes the MagickCore environment.

path: the execution path of the current ImageMagick client.

See MagickCoreGenesis function in ImageMagick documentation.

ImageMagick7MBS.LoadLibrary(path 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
Loads the MagickCore library file.
Example

#If TargetMacOS Then

// installed via homebrew
Dim f As New FolderItem("/opt/homebrew/Cellar/imagemagick/7.1.1-6/lib/libMagickCore-7.Q16HDRI.10.dylib", FolderItem.PathModes.Native)

If ImageMagick7MBS.LoadLibraryFile(f) Then

'MsgBox "loaded"

Else

MsgBox "failed to load: "+ImageMagick7MBS.LoadErrorString

End If

#Else
If ImageMagick7MBS.LoadLibrary("CORE_RL_MagickCore_.dll") Then

'MsgBox "loaded"

Else

MsgBox "failed to load: "+ImageMagick7MBS.LoadErrorString

End If
#EndIf

Returns true on success and false on failure.
LoadErrorString is set with error string if available.

ImageMagick7MBS.LoadLibraryFile(path as folderitem) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageMagick7 MBS GraphicsMagick Plugin 20.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Loads the MagickCore library file.
Example
Dim f As FolderItem = SpecialFolder.Desktop.Child("libMagickCore-7.Q16HDRI.7.dylib")

If ImageMagick7MBS.LoadLibraryFile(f) Then

MsgBox "loaded"

Else

MsgBox "failed to load: "+ImageMagick7MBS.LoadErrorString

End If

Returns true on success and false on failure.
LoadErrorString is set with error string if available.

ImageMagick7MBS.MagickInfoList as IMMagickInfoList7MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageMagick7 MBS GraphicsMagick Plugin 20.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries list of MagickInfo objects.

See GetMagickInfoList function in ImageMagick documentation.

ImageMagick7MBS.MagickToMime(name as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageMagick7 MBS GraphicsMagick Plugin 20.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the officially registered (or de facto) MIME media-type corresponding to a magick string.

If there is no registered media-type, then the string "image/x-magick" (all lower case) is returned.

See MagickToMime function in ImageMagick documentation.

ImageMagick7MBS.NewImageInfo as IMImageInfo7MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageMagick7 MBS GraphicsMagick Plugin 20.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates new image info object.

See CloneImageInfo function in ImageMagick documentation.

ImageMagick7MBS.NewImageList as IMImage7MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageMagick7 MBS GraphicsMagick Plugin 20.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates an empty image list.

See NewImageList function in ImageMagick documentation.

ImageMagick7MBS.PrintMagickVersion

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageMagick7 MBS GraphicsMagick Plugin 20.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Identifies the ImageMagick version by printing its attributes to the file. Attributes include the copyright, features, and delegates.

See ListMagickVersion function in ImageMagick documentation.

ImageMagick7MBS.ScaleQuantumToChar(value as Double) as UInt8

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageMagick7 MBS GraphicsMagick Plugin 20.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Scales a quantum value to 8 bit unsigned integer.

Depending on which library is loaded a quantum is an UInt8, UInt16, UInt32, Single or Double value.
This function normalizes and rounds values to nearest 8 bit integer value.

ImageMagick7MBS.SetCurrentDirectory(path as folderitem) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageMagick7 MBS GraphicsMagick Plugin 20.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the current working directory.

This is needed for most installations to point to the folder with the libraries in order for LoadLibrary to find the dependencies.

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


The biggest plugin in space...