Platforms to show: All Mac Windows Linux Cross-Platform

Previous items Next items

GMImageMBS.penColor as GMColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: The pen color.
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.quality as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: JPEG/MIFF/PNG compression level (default 75).
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.quantizeColors as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Maximum number of colors to quantize to.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.quantizeColors = 10
image.quantize

image.type = image.TrueColorType
Backdrop=image.CopyPicture
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.quantizeColorSpace as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Colorspace to quantize in (default RGB).
Example:
// load a picture
dim f as FolderItem = SpecialFolder.Desktop.Child("test.png")
dim pic as Picture = Picture.Open(f)

const GrayColorSpace = 2

Dim Converter As New GMImageMBS(Pic)

// quantize with dither
Converter.type = GMImageMBS.BilevelType
Converter.quantizeColorSpace = GrayColorSpace
Converter.quantizeColors = 2
Converter.quantizeDither = True
Converter.quantize

// convert back to Xojo
Converter.type = GMImageMBS.TrueColorType
Backdrop = Converter.CopyPicture
Notes:
Empirical evidence suggests that distances in color spaces such as YUV or YIQ correspond to perceptual color differences more closely than do distances in RGB space. These color spaces may give better results when color reducing an image.
(Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.quantizeDither as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Apply Floyd/Steinberg error diffusion to the image.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.quantizeColors = 10
image.quantizeDither = true
image.quantize

image.type = image.TrueColorType
Backdrop=image.CopyPicture
Notes:
The basic strategy of dithering is to trade intensity resolution for spatial resolution by averaging the intensities of several neighboring pixels. Images which suffer from severe contouring when reducing colors can be improved with this option. The quantizeColors or monochrome option must be set for this option to take effect.
(Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.quantizeTreeDepth as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Depth of the quantization color classification tree.
Notes:
Values of 0 or 1 allow selection of the optimal tree depth for the color reduction algorithm. Values between 2 and 8 may be used to manually adjust the tree depth.
(Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.Quiet as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 19.0 Yes Yes Yes Yes No
Function: Suppress all warning messages.
Notes:
Error messages are still reported.
(Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.renderingIntent as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: The type of rendering intent (used when applying an ICC color profile).
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.resolutionUnits as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Units of image resolution.
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.rows as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: The number of pixel rows in the image.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

Title = str(image.columns)+" x "+str(image.rows)
Backdrop=image.CopyPicture
Notes: (Read only property)

Feedback, Comments & Corrections

GMImageMBS.scene as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Image scene number.
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.size as GMGeometryMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Width and height of a raw image (an image which does not support width and height information).
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

MsgBox image.size.StringValue

image.size = new GMGeometryMBS(200,200)

Backdrop=image.CopyPicture
Notes:
Size may also be used to affect the image size read from a multi-resolution format (e.g. Photo CD, JBIG, or JPEG.
(Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.strokeAntiAlias as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Enable/disable stroke anti-aliasing.
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.strokeColor as GMColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Color to use when drawing object outlines.
Example:
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

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

dim draw as GMGraphicsMBS = image.Graphics

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

Backdrop=image.CopyPicture
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.strokeDashOffset as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: While drawing using a dash pattern, specify distance into the dash pattern to start the dash (default 0).
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.strokeLineCap as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Specify the shape to be used at the end of open subpaths when they are stroked. #
Notes:
Values of LineCap are UndefinedCap, ButtCap, RoundCap, and SquareCap.
(Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.strokeLineJoin as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Specify the shape to be used at the corners of paths (or other vector shapes) when they are stroked. Values of LineJoin are UndefinedJoin, MiterJoin, RoundJoin, and BevelJoin.
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.strokeMiterLimit as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Specify miter limit.
Notes:
When two line segments meet at a sharp angle and miter joins have been specified for 'lineJoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path. The miterLimit' imposes a limit on the ratio of the miter length to the 'lineWidth'. The default value of this parameter is 4.
(Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.strokePattern as GMImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Pattern image to use while stroking object outlines.
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.strokeWidth as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Stroke width for drawing vector objects (default one).
Example:
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

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

dim draw as GMGraphicsMBS = image.Graphics

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

Backdrop=image.CopyPicture
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.subImage as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Subimage of an image sequence.
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.subRange as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Number of images relative to the base image.
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.textEncoding as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Annotation text encoding (e.g. "UTF-16").
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.tileName as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Tile name.
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.totalColors as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Number of colors in the image.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

Title = str(image.totalColors) // shows 5284
Backdrop=image.CombinePictureWithMask
Notes: (Read only property)

Feedback, Comments & Corrections

GMImageMBS.type as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: The type of this image.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.type = image.GrayscaleType

Backdrop=image.CopyPicture
Notes:
You can set this value to convert the image to the type.

Convert the image representation to the specified type or retrieve the current image type. If the image is reduced to an inferior type, then image information may be lost (e.g. color changed to grayscale).

Available enumerations for the type parameter:

BilevelType1black/white
GrayscaleType2grayscale
GrayscaleMatteType3grayscale with alpha (opacity) channel
PaletteType4colormapped
PaletteMatteType5colormapped with transparency
TrueColorType6true (full) color
TrueColorMatteType7true (full) color with alpha (opacity) channel
ColorSeparationType8Cyan, magenta, yellow, and black
ColorSeparationMatteType9Cyan, magenta, yellow, and black with alpha (opacity) channel
OptimizeType10Optimize the image type to best represent the existing pixels
(Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.verbose as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Print detailed information about the image.
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.view as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: FlashPix viewing parameters.
Notes: (Read and Write property)

Feedback, Comments & Corrections

GMImageMBS.width as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 10.1 Yes Yes Yes Yes No
Function: The width of the image.
Example:
dim c as new GMColorRGBMBS(1.0,0.0,0.0)
dim size as new GMGeometryMBS(100,100)
dim g as new GMImageMBS(size, c)

MsgBox str(g.width)+" "+str(g.height)
Notes:
This is a convenience function for you which calls size.width.
(Read only property)

Feedback, Comments & Corrections

GMImageMBS.x11Display as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: X11 display to display to, obtain fonts from, or to capture image from.
Notes: (Read and Write property)

Feedback, Comments & Corrections

Previous items Next items

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

The biggest plugin in space...




Links
MBS Xojo Plugins