Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items Next items

GMImageMBS.shear(xShearAngle as Double, yShearAngle as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Shear image (create parallelogram by sliding image by X or Y axis).
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.shear(10,20)

Backdrop=image.CopyPicture
Notes: 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.

Feedback, Comments & Corrections

GMImageMBS.signature(force as boolean=false) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Image textual signature.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

MsgBox image.signature

Backdrop=image.CopyPicture
Notes: Set force to true in order to re-calculate the signature regardless of whether the image data has been modified.

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 computed property)

Feedback, Comments & Corrections

GMImageMBS.solarize(factor as Double=50.0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Solarize image (similar to effect seen when exposing a photographic film to light during the development process)
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.solarize

Backdrop=image.CopyPicture

Feedback, Comments & Corrections

GMImageMBS.spread(amount as UInt32=3)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Spread pixels randomly within image by specified ammount
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.spread 5

Backdrop=image.CopyPicture

Feedback, Comments & Corrections

GMImageMBS.statistics as GMImageStatisticsMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 16.4 Yes Yes Yes Yes No
Function: Obtain image statistics.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.jpg")
dim g as new GMImageMBS(f)
dim stat as GMImageStatisticsMBS = g.statistics
dim gs as GMImageChannelStatisticsMBS = stat.blue

MsgBox "blue channel: "+str(gs.minimum)+"-"+str(Gs.maximum)+", mean "+str(gs.mean)
Notes: Statistics are normalized to the range of 0.0 to 1.0 and are output to the specified ImageStatistics structure.

Feedback, Comments & Corrections

GMImageMBS.stegano(watermark as GMImageMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Add a digital watermark to the image (based on second image).
Example:
dim p as Picture = LogoMBS(500)
dim p1 as Picture = NewPicture(550,500,32)
dim p2 as Picture = NewPicture(550,500,32)

p1.Graphics.DrawPicture p, 0,0
p2.Graphics.DrawPicture p,50,0

dim image1 as new GMImageMBS(p1)
dim image2 as new GMImageMBS(p2)

image2.zoom(new GMGeometryMBS(100,100)) // scale down

// add watermark
image1.stegano(image2)

// now make a threshold so you see the difference
image1.threshold 254

image1.type = image1.TrueColorType
Backdrop=image1.CopyPicture

Feedback, Comments & Corrections

GMImageMBS.stereo(rightImage as GMImageMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Create an image which appears in stereo when viewed with red-blue glasses (Red image on left, blue on right)
Example:
dim p as Picture = LogoMBS(500)
dim p1 as Picture = NewPicture(550,500,32)
dim p2 as Picture = NewPicture(550,500,32)

p1.Graphics.DrawPicture p, 0,0
p2.Graphics.DrawPicture p,50,0

dim image1 as new GMImageMBS(p1)
dim image2 as new GMImageMBS(p2)

image1.stereo(IMAGE2)

Backdrop=image1.CopyPicture

Feedback, Comments & Corrections

GMImageMBS.strip
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 13.5 Yes Yes Yes Yes No
Function: Remove all profiles and text attributes from the image.

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 computed 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 computed property)

Feedback, Comments & Corrections

GMImageMBS.strokeDashArray as Double()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 16.4 Yes Yes Yes Yes No
Function: Queries stroke dash pattern.
Notes: 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.

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 computed 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 computed 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 computed 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 computed 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 computed 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 computed 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 computed 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 computed property)

Feedback, Comments & Corrections

GMImageMBS.swirl(degree as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Swirl image (image pixels are rotated by degrees).
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.swirl 200

Backdrop=image.CopyPicture

Feedback, Comments & Corrections

GMImageMBS.syncPixels
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Transfers the image cache pixels to the image.

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 computed property)

Feedback, Comments & Corrections

GMImageMBS.texture(texture as GMImageMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Channel a texture on pixels matching image background color.

Feedback, Comments & Corrections

GMImageMBS.threshold(degree as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Threshold image channels (below threshold becomes black, above threshold becomes white).
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.threshold 127

// convert to RGB so CopyPicture works
image.type = image.TrueColorType
Backdrop=image.CopyPicture
Notes: The range of the threshold parameter is 0 to MaxRGB.

Feedback, Comments & Corrections

GMImageMBS.thumbnail(geometry as GMGeometryMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 16.4 Yes Yes Yes Yes No
Function: Resize image using several algorithms to make smaller images very quickly.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.jpg")
dim g as new GMImageMBS(f)

// make thumbnail
dim geo as new GMGeometryMBS(100, 100)
g.thumbnail(geo)

// show
me.Backdrop = g.CopyPicture

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 computed property)

Feedback, Comments & Corrections

GMImageMBS.totalColors as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method 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

Feedback, Comments & Corrections

GMImageMBS.transform(imageGeometry as GMGeometryMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Transform image based on image and crop geometries.
Notes: Crop geometry is optional.

See also:

Feedback, Comments & Corrections

GMImageMBS.transform(imageGeometry as GMGeometryMBS, cropGeometry as GMGeometryMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Transform image based on image and crop geometries.
Notes: Crop geometry is optional.

See also:

Feedback, Comments & Corrections

Previous items Next items

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





Links
MBS Xojo Plugins