Platforms to show: All Mac Windows Linux Cross-Platform
Back to GM16ImageMBS class.
GM16ImageMBS.sample(geometry as GM16GeometryMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GM16ImageMBS.scale(geometry as GM16GeometryMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GM16ImageMBS.segment(clusterThreshold as Double=1.0, smoothingThreshold as Double=1.5)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
A histogram is built for the image. This histogram is filtered to reduce noise and a second derivative of the histogram plot is built and used to identify potential cluster colors (peaks in the histogram). The cluster colors are then validated by scanning through all of the pixels to see how many pixels fall within each cluster. Some candidate cluster colors may not match any of the image pixels at all and should be discarded. Specify clusterThreshold, as the number of pixels matching a cluster color in order for the cluster to be considered valid. SmoothingThreshold eliminates noise in the second derivative of the histogram. As the value is increased, you can expect a smoother second derivative. The default is 1.5.
GM16ImageMBS.setChromaBluePrimary(x as Double, y as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
e.g. x=0.15, y=0.06
GM16ImageMBS.setchromaGreenPrimary(x as Double, y as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
e.g. x=0.3, y=0.6
GM16ImageMBS.setchromaRedPrimary(x as Double, y as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
e.g. x=0.64, y=0.33
GM16ImageMBS.setchromaWhitePoint(x as Double, y as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
e.g. x=0.3127, y=0.329
GM16ImageMBS.SetEXIFOrientation(orientation as integer) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 18.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Changing orientation may need to set orientation via SetOrientation and SetEXIFOrientation. With a JPEG you have orientation both in JPEG header and in EXIF metadata.
Returns true for success and false for failure.
For new development, please use ExifTagsMBS class instead.
GM16ImageMBS.SetPicture(pic as picture, x as Integer, y as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GM16ImageMBS.SetPictureMask(maskpic as picture, x as Integer, y as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GM16ImageMBS.setPixels(x as Integer, y as Integer, columns as Integer, rows as Integer) as Ptr
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 16.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This area is subsequently transferred from the pixel cache to the image via syncPixels.
GM16ImageMBS.setStrokeDashArray(values() as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 16.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Specify the pattern of dashes and gaps used to stroke paths. The strokeDashArray represents a zero-terminated array of numbers that specify the lengths of alternating dashes and gaps in pixels. If an odd number of values is provided, then the list of values is repeated to yield an even number of values. A typical strokeDashArray array might contain the members 5 3 2 0, where the zero value indicates the end of the pattern array.
GM16ImageMBS.shade(azimuth as Double=30.0, elevation as Double=30.0, colorShading as boolean=false)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Specify azimuth and elevation as the position of the light source. By default, the shading results as a grayscale image.. Set colorShading to true to shade the red, green, and blue components of the image.
GM16ImageMBS.sharpen(radius as Double=0.0, sigma as Double=1.0)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The radius parameter specifies the radius of the Gaussian, in pixels, not counting the center pixel. The sigma parameter specifies the standard deviation of the Laplacian, in pixels.
GM16ImageMBS.sharpenChannel(channel as Integer, radius as Double=0.0, sigma as Double=1.0)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The radius parameter specifies the radius of the Gaussian, in pixels, not counting the center pixel. The sigma parameter specifies the standard deviation of the Laplacian, in pixels.
GM16ImageMBS.shave(geometry as GM16GeometryMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GM16ImageMBS.shear(xShearAngle as Double, yShearAngle as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Shearing slides one edge of an image along the X or Y axis, creating a parallelogram. An X direction shear slides an edge along the X axis, while a Y direction shear slides an edge along the Y axis. The amount of the shear is controlled by a shear angle. For X direction shears, x degrees is measured relative to the Y axis, and similarly, for Y direction shears y degrees is measured relative to the X axis. Empty triangles left over from shearing the image are filled with the color defined as borderColor.
GM16ImageMBS.signature(force as boolean=false) as string
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Set force to true in order to re-calculate the signature regardless of whether the image data has been modified.
GM16ImageMBS.solarize(factor as Double=50.0)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GM16ImageMBS.spread(amount as UInt32=3)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GM16ImageMBS.statistics as GM16ImageStatisticsMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 16.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Statistics are normalized to the range of 0.0 to 1.0 and are output to the specified ImageStatistics structure.
GM16ImageMBS.stegano(watermark as GM16ImageMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GM16ImageMBS.stereo(rightImage as GM16ImageMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
GM16ImageMBS.strokeDashArray as Double()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 16.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Specify the pattern of dashes and gaps used to stroke paths. The strokeDashArray represents a zero-terminated array of numbers that specify the lengths of alternating dashes and gaps in pixels. If an odd number of values is provided, then the list of values is repeated to yield an even number of values. A typical strokeDashArray array might contain the members 5 3 2 0, where the zero value indicates the end of the pattern array.
GM16ImageMBS.swirl(degree as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | GraphicsMagick | MBS GraphicsMagick Plugin | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The items on this page are in the following plugins: MBS GraphicsMagick Plugin.