Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items Next items

GMImageMBS.normalize
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Normalize image (increase contrast by normalizing the pixel values to span the full range of color values).
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.normalize

Backdrop=image.CopyPicture

Feedback, Comments & Corrections

GMImageMBS.normalizedMaxError 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: The normalized max error per pixel computed when an image is color reduced.
Notes: This parameter is only valid if verbose is set to true and the image has just been quantized.

Feedback, Comments & Corrections

GMImageMBS.normalizedMeanError 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: The normalized mean error per pixel computed when an image is color reduced.
Notes: This parameter is only valid if verbose is set to true and the image has just been quantized.

Feedback, Comments & Corrections

GMImageMBS.oilPaint(radius as Double=3.0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Oilpaint image (image looks like an oil painting).
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.oilPaint

Backdrop=image.CopyPicture

Feedback, Comments & Corrections

GMImageMBS.opacity(opacity 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: Set or attenuate the opacity channel in the image.
Notes: If the image pixels are opaque then they are set to the specified opacity value, otherwise they are blended with the supplied opacity value. The value of opacity ranges from 0 (completely opaque) to MaxRGB. The defines OpaqueOpacity and TransparentOpacity are available to specify completely opaque or completely transparent, respectively.

Feedback, Comments & Corrections

GMImageMBS.opaque(opaqueColor as GMColorMBS, penColor as GMColorMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Change color of specified opaque pixel to specified pen color.

Feedback, Comments & Corrections

GMImageMBS.orientation 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: Image orientation. Supported by some file formats such as DPX and TIFF. Useful for turning the right way up.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

GMImageMBS.page 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: Preferred size and location of an image canvas.
Notes:
Use this option to specify the dimensions and position of the Postscript page in dots per inch or a TEXT page in pixels. This option is typically used in concert with density .

Page may also be used to position a GIF image (such as for a scene in an animation).
(Read and Write computed property)

Feedback, Comments & Corrections

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

Feedback, Comments & Corrections

GMImageMBS.ping(data as GMBlobMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Reads information for an image from the blob.
Notes: Ping is similar to read except only enough of the image is read to determine the image columns, rows, and filesize. Access the columns, rows, and fileSize attributes after invoking ping. The image pixels are not valid after calling ping.

See also:

Feedback, Comments & Corrections

GMImageMBS.ping(file as folderitem)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Reads information for an image from the file.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.jpg")

// try with Constructor (same as read)
dim t1 as Double = Microseconds
dim g1 as new GMImageMBS(f)

// now just ping
dim t2 as Double = Microseconds
dim g2 as new GMImageMBS
g2.ping(f)

// or read
dim t3 as Double = Microseconds
dim g3 as new GMImageMBS
g3.read(f)

dim t4 as Double = Microseconds

// show speeds
MsgBox str(T4-t3)+" µs for read"+EndOfLine+_
str(T3-t2)+" µs for ping"+EndOfLine+_
str(T2-t1)+" µs for Constructor"
Notes: Ping is similar to read except only enough of the image is read to determine the image columns, rows, and filesize. Access the columns, rows, and fileSize attributes after invoking ping. The image pixels are not valid after calling ping.

See also:

Feedback, Comments & Corrections

GMImageMBS.ping(Path 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: Reads information for an image from the image specification.
Notes: Ping is similar to read except only enough of the image is read to determine the image columns, rows, and filesize. Access the columns, rows, and fileSize attributes after invoking ping. The image pixels are not valid after calling ping.

See also:

Feedback, Comments & Corrections

GMImageMBS.pixelColor(x as UInt32, y as UInt32) 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: Get/set pixel color at location x & y.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)
dim c as new GMColorMBS("red")

for x as Integer = 240 to 260
image.pixelColor(x,250)=c
next

for y as Integer = 240 to 260
image.pixelColor(250,y)=c
next

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

Feedback, Comments & Corrections

GMImageMBS.profile(name as string) as GMBlobMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Get or set a named profile.
Notes:
Add or remove a named profile to/from the image. Remove the profile by passing an empty Blob (e.g. Blob()). Valid names are "*", "8BIM", "ICM", "IPTC", or a user/format-defined profile name.

Retrieve a named profile from the image. Valid names are: "8BIM", "8BIMTEXT", "APP1", "APP1JPEG", "ICC", "ICM", & "IPTC" or an existing user/format-defined profile name
(Read and Write computed 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 computed property)

Feedback, Comments & Corrections

GMImageMBS.quantize(measureError as boolean=false)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Quantize image (reduce number of colors).
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.quantize

image.type = image.TrueColorType
Backdrop=image.CopyPicture
Notes: Set measureError to true in order to calculate error attributes.

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

Feedback, Comments & Corrections

GMImageMBS.quantumOperator(channel as Integer, Operator as Integer, rvalue 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: Apply an arithmetic or bitwise operator to the image pixel quantums.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.jpg")
dim g as new GMImageMBS(f)

const AddQuantumOp = 1
const ThresholdQuantumOp = 10

g.quantumOperator( g.AllChannels, AddQuantumOp, 100)

// show
me.Backdrop = g.CopyPicture

See also:

Feedback, Comments & Corrections

GMImageMBS.quantumOperator(x as Integer, y as Integer, columns as Integer, rows as Integer, channel as Integer, Operator as Integer, rvalue 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: Apply an arithmetic or bitwise operator to the image pixel quantums.

See also:

Feedback, Comments & Corrections

GMImageMBS.raiseImage
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Raise image (lighten or darken the edges of an image to give a 3-D raised or lowered effect).
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.raiseImage

Backdrop=image.CopyPicture

See also:

Feedback, Comments & Corrections

GMImageMBS.raiseImage(geometry as GMGeometryMBS, raisedFlag as boolean=false)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Raise image (lighten or darken the edges of an image to give a 3-D raised or lowered effect).
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.raiseImage(GMGeometryMBS.Make(5,8))

Backdrop=image.CopyPicture

See also:

Feedback, Comments & Corrections

GMImageMBS.randomThreshold(thresholds 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: Random threshold image.
Example:
dim p as Picture = LogoMBS(500)
dim image as new GMImageMBS(p)

image.randomThreshold(GMGeometryMBS.make("50x200"))

image.type = image.TrueColorType
Backdrop=image.CopyPicture
Notes: Changes the value of individual pixels based on the intensity of each pixel compared to a random threshold. The result is a low-contrast, two color image. The thresholds argument is a geometry containing LOWxHIGH thresholds. If the string contains 2x2, 3x3, or 4x4, then an ordered dither of order 2, 3, or 4 will be performed instead. If a channel argument is specified then only the specified channel is altered. This is a very fast alternative to 'quantize' based dithering.

Feedback, Comments & Corrections

GMImageMBS.randomThresholdChannel(thresholds as GMGeometryMBS, channel as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Random threshold image channel.
Notes: Changes the value of individual pixels based on the intensity of each pixel compared to a random threshold. The result is a low-contrast, two color image. The thresholds argument is a geometry containing LOWxHIGH thresholds. If the string contains 2x2, 3x3, or 4x4, then an ordered dither of order 2, 3, or 4 will be performed instead. If a channel argument is specified then only the specified channel is altered. This is a very fast alternative to 'quantize' based dithering.

Feedback, Comments & Corrections

GMImageMBS.read(blob as GMBlobMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method GraphicsMagick MBS GraphicsMagick Plugin 9.3 Yes Yes Yes Yes No
Function: Read single image frame from in-memory Blob.
Example:
// get some image data (e.g. from blob in database)
dim logo as Picture = LogoMBS(500)
dim jpegData as string = PictureToJPEGStringMBS(logo, 80)

// new image
Dim mp as new GMImageMBS
dim blob as new GMBlobMBS(jpegData)

// read data from blob into this image object
mp.Read blob

// sometimes you need to explicit convert to RGB/RGBA
'mp.type = mp.TrueColorMatteType
Backdrop=mp.CombinePictureWithMask

See also:

Feedback, Comments & Corrections

Previous items Next items

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




Links
MBS FileMaker Plugins