Download location : http://www.w73.nl/pb/libPBMX.zip
Last modified : Aug 20, 2011
The zip archive contains a x86 version of the library. Put the library file in
PureBasic/purelibraries/userlibraries/
I can't maintain a ppc version anymore since OSX 10.7 doesn't support ppc.
An older version with less commands that has ppc support can be downloaded at http://www.w73.nl/pb/oldLibPBMX.zip
Supported functions
Code: Select all
GLOBAL FUNCTIONS
----------------
MX_Release (object) - Release an object.
MX_ShowPoofEffect (cx.f, cy.f) - Show 'poof' effect at specified screen coordinates.
IMAGE FUNCTIONS AND FILTERS
---------------------------
Height = MXImage_Height (ImageID)
ImageID = MXImage_LoadFromURL (url.s)
Width = MXImage_Width (ImageID)
NewImageID = MXImageFilter_AffineTransform (imageID, m11.f, m12.f, m21.f, m22.f)
NewImageID = MXImageFilter_Crop (imageID, x.f, y.f, width.f, height.f)
NewImageID = MXImageFilter_ExposureAdjust (imageID, EV.f)
NewImageID = MXImageFilter_ComicEffect (imageID)
NewImageID = MXImageFilter_Grayscale (imageID)
NewImageID = MXImageFilter_NoiseReduction (imageID, noiseLevel.f, sharpness.f)
MXImageFilter_SetKeepExtent (keepExtent) - Force output rectangle to be the same as input rectangle.
NewImageID = MXImageFilter_SharpenLuminance (imageID, sharpness.f)
NewImageID = MXImageFilter_UnsharpMask (imageID, radius.f, intensity.f)
PRINT FUNCTIONS
---------------
MXPrint_AppendText (text.s, [underline])
MXPrint_AppendUniChar (uniChar.l, [underline])
Context = MXPrint_BeginDocument [String], ([fileName.s]) - Begin a document (no fileName = printer output, filename = pdf output).
MXPrint_DrawLine (x1.f, y1.f, x2.f, y2.f)
MXPrint_DrawRect (x.f, y.f, width.f, height.f)
MXPrint_EndDocument ()
MXPrint_FillRect (x.f, y.f, width.f, height.f)
Height.f = MXPrint_GetPageHeight ()
Width.f = MXPrint_GetPageWidth ()
Length = MXPrint_GetTextLength ()
Context = MXPrint_NextPage ()
MXPrint_SetContext (context, contextWidth, contextHeight) - Override the MXPrint context.
MXPrint_SetFillColor ((a)rgbColor)
MXPrint_SetFont (font.s, size.f, (a)rgbColor)
MXPrint_SetFontWithFamily (fontFamily.s, style, size.f, (a)rgbColor) - Style 0 = normal, 1 = italic, 2 = bold, 3 = bold italic
MXPrint_SetLineStyle (width.f, (a)rgbColor, style) - Set the line style (style 0 = normal, 1 = dotted, 2 = dashed).
MXPrint_SetOrientation (orientation) - Set the page orientation (0 = portait, 1 = landscape).
MXPrint_SetPaperSize (width.f, height.f) - Set the paper size in points.
MXPrint_SetParagraphStyle (alignment, lineSpacing.f) - Set the paragraph style (alignment 0 = left, 1 = right, 2 = center, 3 = justify, 4 = natural).
MXPrint_SetShowDialog (show) - Show print dialog (#True or #False).
MXPrint_SetText (text.s, [underline])
MXPrint_ShowImageInRect (imageID, x.f, y.f, width.f, height.f)
NextPos = MXPrint_ShowTextInRect (x.f, y.f, width.f, height.f [, pos.l])
SCRIPT FUNCTIONS
----------------
Result.s = MXScript_AppleScript (script.s) - Execute AppleScript code.
SNAPSHOT FUNCTIONS
------------------
ImageID = MXSnapshot_TakeSnapshot([width])
MXSnapshot_StopSession()
SPEECH FUNCTIONS
----------------
MXSpeech_BlocksOtherRecognizers (blockOther)
MXSpeech_ListenInForegroundOnly (foregroundOnly)
MXSpeech_Recognize (commands.s [, title.s]) - Set a comma separated list of commands.
Command.s = MXSpeech_RecognizedCommand ()
MXSpeech_RecognizedCallback (@RecognizedCallback())
MXSpeech_Say (text.s [, voice.s])
MXSpeech_StartListening ()
MXSpeech_StopListening ()
WEBGADGET FUNCTIONS
-------------------
MXWebGadget_LoadSWFData (WebGadgetID, memoryAddress, size)
Result.s = MXWebGadget_JavaScript (WebGadgetID, script.s)