Platforms to show: All Mac Windows Linux Cross-Platform

Back to IMImageQ32MBS class.

IMImageQ32MBS.BackgroundColor as IMColorQ32MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image background color.

(Read and Write property)

IMImageQ32MBS.Bias as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
An undocumented property.

(Read and Write property)

IMImageQ32MBS.BlurFactor as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Blur factor to apply to the image when zooming. Default is 1.0 (no blur).

(Read and Write property)

IMImageQ32MBS.BorderColor as IMColorQ32MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image border color.

(Read and Write property)

IMImageQ32MBS.Colors as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The desired number of colors.

Used by Quantize().
(Read and Write property)

IMImageQ32MBS.ColorSpace as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image pixel interpretation.

If the colorspace is RGB the pixels are red, green, blue. If matte is true, then red, green, blue, and index. If it is CMYK, the pixels are cyan, yellow, magenta, black. Otherwise the colorspace is ignored.

constants:
UndefinedColorspace0
RGBColorspace1
GRAYColorspace2
TransparentColorspace3
OHTAColorspace4
LABColorspace5
XYZColorspace6
YCbCrColorspace7
YCCColorspace8
YIQColorspace9
YPbPrColorspace10
YUVColorspace11
CMYKColorspace12
sRGBColorspace13
HSBColorspace14
HSLColorspace15
HWBColorspace16
(Read and Write property)

IMImageQ32MBS.Compression as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image compresion type.

useful constants:
const UndefinedCompression= 0
const NoCompression= 1
const BZipCompression= 2
const FaxCompression= 3
const Group4Compression= 4
const JPEGCompression= 5
const LosslessJPEGCompression= 6
const LZWCompression= 7
const RLECompression= 8
const ZipCompression= 9

The default is the compression type of the specified image file.
For more details please check the ImageMagick documentation.
(Read and Write property)

IMImageQ32MBS.Depth as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image depth (8 or 16).

QuantumLeap must be defined before a depth of 16 is valid.
(Read and Write property)

IMImageQ32MBS.Directory as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Tile names from within an image montage.

Only valid after calling MontageImages() or reading a MIFF file which contains a directory.
(Read and Write property)

IMImageQ32MBS.Endian as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The endian setting to use.

constants:
UndefinedEndian0
LSBEndian1(Windows)
MSBEndian2(Mac)

e.g. tiff files support different endian settings.
(Read and Write property)

IMImageQ32MBS.Filename as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The file path/name.

The string must be in the encoding of the library and is limited to 4000 bytes.
For more details please check the ImageMagick documentation.
(Read and Write property)

IMImageQ32MBS.Filter as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Filter to use when resizing image.

Constants:
const PointFilter=1
const BoxFilter=2
const TriangleFilter=3
const HermiteFilter=4
const HanningFilter=5
const HammingFilter=6
const BlackmanFilter=7
const GaussianFilter=8
const QuadraticFilter=9
const CubicFilter=10
const CatromFilter=11
const MitchellFilter=12
const LanczosFilter=13
const BesselFilter=14
const SincFilter=15

The reduction filter employed has a sipngicant effect on the time required to resize an image and the resulting quality. The default filter is Lanczos which has been shown to produce high quality results when reducing most images.
(Read and Write property)

IMImageQ32MBS.Fuzz as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Colors within this distance are considered equal.

A number of algorithms search for a target color. By default the color must be exact. Use this to match colors that are close to the target color in RGB space.
(Read and Write property)

IMImageQ32MBS.Gamma as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Gamma level of the image.

The same color image displayed on two different workstations may look different due to differences in the display monitor. Use gamma correction to adjust for this color difference.
(Read and Write property)

IMImageQ32MBS.Geometry as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Preferred size of the image when encoding.

(Read and Write property)

IMImageQ32MBS.Gravity as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
An undocumented property.

(Read and Write property)

IMImageQ32MBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The handle used internally by the plugin.

A pointer to an Image structure.
For more details please check the ImageMagick documentation.
(Read and Write property)

IMImageQ32MBS.Height as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The height of the image in pixels.

For more details please check the ImageMagick documentation.
(Read and Write property)

IMImageQ32MBS.Interlace as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The type of interlacing scheme (default NoInterlace).

This option is used to specify the type of interlacing scheme for raw image formats such as RGB or YUV. NoInterlace means do not interlace, LineInterlace uses scanline interlacing, and PlaneInterlace uses plane interlacing. PartitionInterlace is like PlaneInterlace except the different planes are saved to individual files (e.g. image.R, image.G, and image.B). Use LineInterlace or PlaneInterlace to create an interlaced GIF or progressive JPEG image.

constants:
UndefinedInterlace0Unset value.
NoInterlace1Don't interlace image (RGBRGBRGBRGBRGBRGB...)
LineInterlace2Use scanline interlacing (RRR...GGG...BBB...RRR...GGG...BBB...)
PlaneInterlace3Use plane interlacing (RRRRRR...GGGGGG...BBBBBB...)
PartitionInterlace4Similar to plane interlaing except that the different planes are saved to individual files (e.g. image.R, image.G, and image.B)
(Read and Write property)

IMImageQ32MBS.LastError as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The last error code reported.

If an exception is raised and it is not a warning exception, this exception code is saved in this property.
(Read and Write property)

IMImageQ32MBS.LastException as IMExceptionQ32MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The last exception thrown by the Image Magick library.

You should check this value after every call to the library, process the error and set the property to nil.

For more details please check the ImageMagick documentation.
(Read and Write property)

IMImageQ32MBS.Magick as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image encoding format (e.g. "GIF").

(Read and Write property)

IMImageQ32MBS.Matte as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether an alpha channel is used/present.

Set to true to enable masks.
(Read and Write property)

IMImageQ32MBS.MatteColor as IMColorQ32MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image matte (transparent) color.

(Read and Write property)

IMImageQ32MBS.Montage as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Tile size and offset within an image montage. Only valid for montage images.

(Read and Write property)

IMImageQ32MBS.Offset as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Number of initial bytes to skip over when reading raw image.

(Read and Write property)

IMImageQ32MBS.Orientation as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The image orientation.

constants:
const UndefinedOrientation = 0
const TopLeftOrientation = 1
const TopRightOrientation = 2
const BottomRightOrientation = 3
const BottomLeftOrientation = 4
const LeftTopOrientation = 5
const RightTopOrientation = 6
const RightBottomOrientation = 7
const LeftBottomOrientation = 8

For more details please check the ImageMagick documentation.
(Read and Write property)

IMImageQ32MBS.Quality as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
JPEG/MIFF/PNG compression level.
Example
dim im as ImageMagickQ32MBS // global

Function TestJPEG(f as folderitem) As picture
// Reads an image, compresses in memory to JPEG, decompresses using JPEGlib and returns the image
// if quality setting works, you see it in the result.
// no error checking included!

// needs: im as ImageMagickQ32MBS ready initialized

dim image as IMImageQ32MBS
dim imageinfo as IMImageInfoQ32MBS
dim s,blob as string
dim p as Picture
dim i as Integer

if f = nil then
Return nil
end if

imageinfo = im.NewImageInfo

imageinfo.Filename = f.NativePath

//this should read any image IM understands
image = im.ReadImage(imageinfo)
//check for error
if im.lastexception <> nil and im.LastException.Severity >= 400 then
s = "LastError: "+Format(im.LastError,"-0")+" - Severity: "+str(im.LastException.Severity)+EndOfLine+im.LastException.Reason
MsgBox s
Return nil
elseif image = nil then
MsgBox "image=nil"
Return nil
end if

// Now lets convert to jpeg
imageinfo.Filename = "image.jpg"
imageinfo.Quality = 10 // 100 is max
blob = image.ImageToBlob(imageinfo)

// It may fail
if blob.lenb = 0 then
Return nil
end if
p = JPEGStringToPictureMBS(blob,true)

image.DestroyImage
imageinfo.DestroyImageInfo

Return p
Exception
Return nil
End Function

Default value is 75.
(Read and Write property)

IMImageQ32MBS.Release as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
If true, the destructor will release the handle.

(Read and Write property)

IMImageQ32MBS.RenderingIntent as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The rendering intent to use.

constants:
UndefinedIntent0
SaturationIntent1
PerceptualIntent2
AbsoluteIntent3
RelativeIntent4
(Read and Write property)

IMImageQ32MBS.ResolutionUnits as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Units of image resolution.

constants:
UndefinedResolution0Unset value.
PixelsPerInchResolution1Density specifications are specified in units of pixels per inch (english units).
PixelsPerCentimeterResolution2Density specifications are specified in units of pixels per centimeter (metric units).
(Read and Write property)

IMImageQ32MBS.ResolutionX as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The horizontal resolution of the image.

The unit for resolution must be specified.
For more details please check the ImageMagick documentation.
(Read and Write property)

IMImageQ32MBS.ResolutionY as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The vertical resolution of the image.

The unit for resolution must be specified.
For more details please check the ImageMagick documentation.
(Read and Write property)

IMImageQ32MBS.Scene as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
An undocumented property.

(Read and Write property)

IMImageQ32MBS.StorageClass as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image storage class.

If DirectClass then the image packets contain valid RGB or CMYK colors. If PseudoClass then the image has a colormap referenced by pixel's index member.

constants:
UndefinedClass0Unset value.
DirectClass1Image is composed of pixels which represent literal color values.
PseudoClass2Image is composed of pixels which specify an index in a color palette.
(Read and Write property)

IMImageQ32MBS.Taint as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Set to True if the image pixels have been modified.

(Read and Write property)

IMImageQ32MBS.Width as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The width of the image in pixels.

For more details please check the ImageMagick documentation.
(Read and Write property)

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


The biggest plugin in space...