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
Dim red As New GM16ColorRGBMBS("red")
red.alpha = 1

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

// now read SVG, so we get a transparent background
dim 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
dim p as Picture = LogoMBS(500)
dim 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
dim g as new GM16GeometryMBS(500,500)
dim c as new GM16ColorRGBMBS("white") // white
dim image as new GM16ImageMBS(g, c)

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

image.strokeWidth = 5

dim 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
dim p as Picture = LogoMBS(500)
dim 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
dim p as new GM16ImageMBS

dim 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)
dim 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
Dim g As New GM16ImageMBS

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

// get thumbnail
Dim 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.fileName 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.

(Read and Write property)

GM16ImageMBS.fileSize as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Number of bytes of the image on disk.

(Read only property)

GM16ImageMBS.fillColor as GM16ColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Color to use when filling drawn objects.
Example
dim g as new GM16GeometryMBS(500,500)
dim c as new GM16ColorRGBMBS("white") // white
dim image as new GM16ImageMBS(g, c)

image.strokeColor = new GM16ColorRGBMBS("red") // Outline color
image.fillColor = new GM16ColorRGBMBS("green") // Fill color
image.strokeWidth = 5

dim draw as GM16GraphicsMBS = image.Graphics

// Draw a circle
draw.Circle(250, 250, 120, 150)

Backdrop=image.CopyPicture

(Read and Write property)

GM16ImageMBS.fillPattern as GM16ImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Pattern to use while filling drawn objects.

(Read and Write property)

GM16ImageMBS.fillRule as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Rule to use when filling drawn objects

(Read and Write property)

GM16ImageMBS.filterType as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The reduction filter employed has a sigificant 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.

Filter to use when resizing image.
(Read and Write property)

GM16ImageMBS.font as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Text rendering font.

If the font is a fully qualified X server font name, the font is obtained from an X server. To use a TrueType font, precede the TrueType filename with an @. Otherwise, specify a Postscript font name (e.g. "helvetica").
(Read and Write property)

GM16ImageMBS.FontFamily as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 20.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The font family to use.

The plugin will look through the list to find best match for combination of family, style, stretch and weight.
You can use either FontFamily or Font property, but not both.
Setting font family clears font.
(Read and Write property)

GM16ImageMBS.fontPointsize as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Text rendering font point size.

(Read and Write property)

GM16ImageMBS.FontStretch as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 20.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The font stretch.

Can be Normal, UltraCondensed, ExtraCondensed, Condensed, SemiCondensed, SemiExpanded, Expanded, ExtraExpanded, UltraExpanded or Any.
See stretch constants.
(Read and Write property)

GM16ImageMBS.FontStyle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 20.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The font style to use.

Can be Normal, Italic, Oblique or Any.
See font style constants.
(Read and Write property)

GM16ImageMBS.FontWeight as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 20.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The font weight.

The font weight in range from 0 to 1000.
400 is normal and 800 bold.
(Read and Write property)

GM16ImageMBS.format as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Long image format description.

(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
dim p as Picture = LogoMBS(500)
dim 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
dim c as new GM16ColorMBS("white")
dim g as new GM16GeometryMBS(100,100)
dim 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
dim c as new GM16ColorRGBMBS(1.0,0.0,0.0)
dim size as new GM16GeometryMBS(100,100)
dim 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)

Next items

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


The biggest plugin in space...