Platforms to show: All Mac Windows Linux Cross-Platform

Back to GM16ImageMBS class.

Next items

GM16ImageMBS.adjoin as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Join images into a single multi-image file.

(Read and Write property)

GM16ImageMBS.animationDelay as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Time in 1/100ths of a second (0 to 65535) which must expire before displaying the next image in an animated sequence.

This option is useful for regulating the animation of a sequence of GIF images within Netscape.
(Read and Write property)

GM16ImageMBS.animationIterations as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Number of iterations to loop an animation (e.g. Netscape loop extension) for.

(Read and Write property)

GM16ImageMBS.antiAlias as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Control antialiasing of rendered Postscript and Postscript or TrueType fonts.

Enabled by default.
(Read and Write property)

GM16ImageMBS.backgroundColor as GM16ColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image background color.
Example
// make a red and turn it to 100% transparent
Var red As New GM16ColorRGBMBS("red")
red.alpha = 1

// now make image and make it RGBA with the transparnet background
Var RastoredVectorImage as New GM16ImageMBS
RastoredVectorImage.type = GM16ImageMBS.TrueColorMatteType
RastoredVectorImage.backgroundColor = red

// now read SVG, so we get a transparent background
Var SVG_File as FolderItem = SpecialFolders.desktop.Child("test.svg")
RastoredVectorImage.read(SVG_File)

(Read and Write property)

GM16ImageMBS.backgroundTexture as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image file name to use as the background texture.

Does not modify image pixels.
(Read and Write property)

GM16ImageMBS.baseColumns as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Base image width (before transformations)

(Read only property)

GM16ImageMBS.baseFilename as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Base image filename (before transformations)

(Read only property)

GM16ImageMBS.baseRows as Uint32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Base image height (before transformations).
Example
Var p as Picture = LogoMBS(500)
Var image as new GM16ImageMBS(p)

Title = str(image.baseRows)+" x "+str(image.baseColumns)

(Read only property)

GM16ImageMBS.borderColor as GM16ColorMBS

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

(Read and Write property)

GM16ImageMBS.boundingBox as GM16GeometryMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return smallest bounding box enclosing non-border pixels.
Example
Var g as new GM16GeometryMBS(500,500)
Var c as new GM16ColorRGBMBS("white") // white
Var image as new GM16ImageMBS(g, c)

image.fillColor = new GM16ColorRGBMBS("red") // set color
image.strokeColor = new GM16ColorRGBMBS("green") // set color

image.strokeWidth = 5

Var draw as GM16GraphicsMBS = image.Graphics

// Draw a circle

draw.Circle(250, 250, 120, 150)
draw.Draw

draw = nil
image.type = image.TrueColorType

Backdrop = image.CopyPicture

MsgBox image.boundingBox.StringValue

The current fuzz value is used when discriminating between pixels. This is the crop bounding box used by crop(Geometry(0,0)).
(Read only property)

GM16ImageMBS.boxColor as GM16ColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Base color that annotation text is rendered on (default none).

(Read and Write property)

GM16ImageMBS.classType as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image class (DirectClass or PseudoClass).

NOTE: setting a DirectClass image to PseudoClass will result in the loss of color information if the number of colors in the image is greater than the maximum palette size (either 256 or 65536 entries depending on the value of QuantumDepth when ImageMagick was built):
(Read and Write property)

GM16ImageMBS.clipMask as GM16ImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Associate a clip mask image with the current image.

The clip mask image must have the same dimensions as the current image or an exception is thrown. Clipping occurs wherever pixels are transparent in the clip mask image. Clipping Pass an invalid image to unset an existing clip mask.
(Read and Write property)

GM16ImageMBS.colorFuzz as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ 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 option to match colors that are close to the target color in RGB space.

e.g. set to 50 for 8 bit class and 50 * 257 for the 16 bit class to allow 20% divagation in pixel values.
(Read and Write property)

GM16ImageMBS.colorMapSize as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Number of entries in the colormap.

Setting the colormap size may extend or truncate the colormap. The maximum number of supported entries is specified by the MaxColormapSize constant, and is dependent on the value of QuantumDepth when GraphicsMagick is compiled. An exception is thrown if more entries are requested than may be supported. Care should be taken when truncating the colormap to ensure that the image colormap indexes reference valid colormap entries.
(Read and Write property)

GM16ImageMBS.colorSpace as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The colorspace (e.g. CMYK) used to represent the image pixel colors.

UndefinedColorspace = 0
RGBColorspace = 1 (Plain old RGB colorspace)
GRAYColorspace = 2 (Plain old full-range grayscale)
TransparentColorspace = 3 (RGB but preserve matte channel during quantize)
OHTAColorspace = 4
XYZColorspace = 5 (CIE XYZ)
YCCColorspace = 6 (Kodak PhotoCD PhotoYCC)
YIQColorspace = 7
YPbPrColorspace = 8
YUVColorspace = 9
CMYKColorspace = 10 (Cyan, magenta, yellow, black, alpha)
sRGBColorspace = 11 (Kodak PhotoCD sRGB)
HSLColorspace = 12 (Hue, saturation, luminosity)
HWBColorspace = 13 (Hue, whiteness, blackness)
LABColorspace = 14 (LAB colorspace not supported yet other than via lcms)
CineonLogRGBColorspace = 15 (RGB data with Cineon Log scaling, 2.048 density range)
Rec601LumaColorspace = 16 (Luma (Y) according to ITU-R 601)
Rec601YCbCrColorspace = 17 (YCbCr according to ITU-R 601)
Rec709LumaColorspace = 18 (Luma (Y) according to ITU-R 709)
Rec709YCbCrColorspace = 19 (YCbCr according to ITU-R 709)
(Read and Write property)

GM16ImageMBS.columns as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image width.
Example
Var p as Picture = LogoMBS(500)
Var image as new GM16ImageMBS(p)

Title = str(image.columns)+" x "+str(image.rows)
Backdrop=image.CopyPicture

(Read only property)

GM16ImageMBS.comment as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image comment.

When you set this property, you add comment string to image.
By default, each image is commented with its file name. Use this method to assign a specific comment to the image. Optionally you can include the image filename, type, width, height, or other image attributes by embedding special format characters:
(Read and Write property)

GM16ImageMBS.compose as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Composition operator to be used when composition is implicitly used (such as for image flattening).

(Read and Write property)

GM16ImageMBS.compressType as Integer

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

The default is the compression type of the input image file.
(Read and Write property)

GM16ImageMBS.debug as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Enable printing of debug messages from GraphicsMagick as it executes.

(Read and Write property)

GM16ImageMBS.density as GM16GeometryMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Vertical and horizontal resolution in pixels of the image.
Example
Var p as new GM16ImageMBS

Var item as FolderItem = SpecialFolder.Desktop.Child("input.png")
p.read(item)
p.scale new GM16GeometryMBS(3750,3750)
p.quality = 95
p.resolutionUnits = p.PixelsPerInchResolution
p.density = new GM16GeometryMBS(300, 300)
Var out as FolderItem = SpecialFolder.Desktop.Child("output.png")
p.write out

This option specifies an image density when decoding a Postscript or Portable Document page. Often used with psPageSize.
(Read and Write property)

GM16ImageMBS.depth as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image depth (bits allocated to red/green/blue components).

Used to specify the bit depth when reading or writing raw images or when the output format supports multiple depths. Defaults to the quantum depth that GraphicsMagick is compiled with.
(Read and Write property)

GM16ImageMBS.directory as string

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

(Read only property)

GM16ImageMBS.endian as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The endian mode.

Endianness (LSBEndian like Intel, MSBEndian like SPARC, or NativeEndian for what this computer uses) for image formats which support endian-specific options.
(Read and Write property)

GM16ImageMBS.ExifThumbnail as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Extracts an embedded thumbnail in EXIF data.
Example
Var g As New GM16ImageMBS

// not load, but just read header & metadata
g.ping("/Users/cs/Desktop/test.JPG")

// get thumbnail
Var Thumbnail As String = g.ExifThumbnail

// show it
window1.Backdrop = picture.FromData(Thumbnail)

Returns string containing JPEG compressed image data.

For new development, please use ExifTagsMBS class instead.
(Read only property)

GM16ImageMBS.gamma as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Gamma correct the image or individual image channels.
Example
Var p as Picture = LogoMBS(500)
Var image as new GM16ImageMBS(p)

image.gamma = 3.0

Backdrop=image.CopyPicture

If you get the value, it is the gamma level of the image. Gamma is a pow() function which converts between the linear light representation and the representation for the computer display. Most computer images are gamma corrected to 2.2 (1/0.4545) so that each step results in a visually linear step on a computer or video display:
(Read and Write property)

See also:

GM16ImageMBS.geometry as GM16GeometryMBS

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

(Read only property)

GM16ImageMBS.getConstIndexes as Ptr

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Obtain immutable image pixel indexes (valid for PseudoClass images)

(Read only property)

GM16ImageMBS.getIndexes as Ptr

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Obtain mutable image pixel indexes (valid for PseudoClass images)

(Read only property)

GM16ImageMBS.gifDisposeMethod as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
GIF disposal method.

This option (specific to the GIF file format) is used to control how successive frames are rendered (how the preceding frame is disposed of) when creating a GIF animation.

ConstantDisposalDescription
UndefinedDispose0No disposal specified.
NoneDispose1Do not dispose between frames.
BackgroundDispose2Overwrite frame with background color from header.
PreviousDispose3Overwrite with previous frame.
(Read and Write property)

GM16ImageMBS.handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The internal object reference.
Example
Var c as new GM16ColorMBS("white")
Var g as new GM16GeometryMBS(100,100)
Var image as new GM16ImageMBS(g, c)
MsgBox hex(Image.handle) // valid if not zero

(Read and Write property)

GM16ImageMBS.height as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The height of the image.
Example
Var c as new GM16ColorRGBMBS(1.0,0.0,0.0)
Var size as new GM16GeometryMBS(100,100)
Var g as new GM16ImageMBS(size, c)

MsgBox str(g.width)+" "+str(g.height)

This is a convenience function for you which calls size.height.
(Read only property)

GM16ImageMBS.iccColorProfile as GM16BlobMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
ICC color profile.
Example
Var f as FolderItem = SpecialFolder.Desktop.Child("IMG_0793.tif")
Var Image as new GM16ImageMBS(f)
Var ProfileBlob as GM16BlobMBS = Image.iccColorProfile
Var ProfileData as string = ProfileBlob.CopyString
Var cm as LCMS2ProfileMBS = LCMS2ProfileMBS.OpenProfileFromString(ProfileData)
Var name as string = cm.Name

Break // check data in debugger

Supplied via a Blob since Magick++/ and GraphicsMagick do not currently support formating this data structure directly. Specifications are available from the International Color Consortium for the format of ICC color profiles.
(Read and Write property)

GM16ImageMBS.interlaceType as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ 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.
(Read and Write property)

GM16ImageMBS.iptcProfile as GM16BlobMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
IPTC profile.

Supplied via a Blob since Magick++ and GraphicsMagick do not currently support formating this data structure directly. Specifications are available from the International Press Telecommunications Council for IPTC profiles.
(Read and Write property)

GM16ImageMBS.isValid as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Does object contain valid image?

Set to false in order to invalidate the image. Images constructed via the default constructor are invalid images and isValid() will return false.
(Read and Write property)

GM16ImageMBS.label as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image label.

(Read only property)

See also:

GM16ImageMBS.lineWidth as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Stroke width for drawing vector objects (default one)

This method is now deprecated. Please use strokeWidth instead.
(Read and Write property)

GM16ImageMBS.magick as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The name of the codec to use for compression.
Example
// this converts 32 bit PNG with alpha channel to BMP

Var f as FolderItem = SpecialFolder.Desktop.Child("test.png")
Var p as Picture = Picture.Open(f)

Var g as new GM16ImageMBS( new GM16GeometryMBS(p.Width, p.Height), new GM16ColorGrayMBS(1.0))

g.type = g.TrueColorMatteType
g.matte = True
g.magick = "BMP"

g.SetPicture(p, 0, 0)
g.SetPictureMask(p.mask.invertMBS, 0, 0)

f = SpecialFolder.Desktop.Child("test.bmp")
g.write(f)

(Read and Write property)

GM16ImageMBS.matte as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image supports transparency (matte channel)

(Read and Write property)

GM16ImageMBS.matteColor as GM16ColorMBS

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

(Read and Write property)

GM16ImageMBS.meanErrorPerPixel as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The mean error per pixel computed when an image is color reduced.

This parameter is only valid if verbose is set to true and the image has just been quantized.
(Read only property)

GM16ImageMBS.modulusDepth as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Image modulus depth (minimum number of bits required to support red/green/blue components without loss of accuracy).

The pixel modulus depth may be decreased by supplying a value which is less than the current value, updating the pixels (reducing accuracy) to the new depth. The pixel modulus depth can not be increased over the current value using this method.
(Read and Write property)

GM16ImageMBS.monochrome as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Transform image to black and white while color reducing (quantizing).

(Read and Write property)

GM16ImageMBS.normalizedMaxError as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The normalized max error per pixel computed when an image is color reduced.

This parameter is only valid if verbose is set to true and the image has just been quantized.
(Read only property)

Next items

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


The biggest plugin in space...