These are Public functions for end users (developers of programs using Ming).
C functions
Global functions
Ming_init() - Initialises Ming. Call this before any other Ming functions
Ming_getScale() - Get the global scaling factor
Ming_setScale() - Set the global scaling factor
Ming_setSWFCompression() - Sets the value of the compression level to be used when generating output
Ming_useSWFVersion() - Set the version of swf to be produced
SWFAction functions
newSWFAction() - Creates a new Action Script object
SWFBitmap functions
destroySWFBitmap() - Destroys a SWFBitmap, freeing the memory associated with it
newSWFBitmap_fromInput() - Creates a SWFBitmap from a SWFInput
newSWFBitmap_fromRawImg() - Creates a SWFBitmap from an uncompressed ARGB image already present in memory
SWFBitmap_getHeight() - Returns the height of a SWFBitmap
SWFBitmap_getWidth() - Returns the width of a SWFBitmap
SWFButton functions
destroySWFButton() - Destroys a button, freeing the memory associated with it
newSWFButton() - Creates a new, empty button object
SWFButton_addAction() - Adds an Action Script object to a button
SWFButton_addCharacter() - Adds a character object (shape, etc) to a button
SWFDisplayItem functions
SWFDisplayItem_getMatrix() - Returns the SWFMatrix structure associated with a display item
SWFDisplayItem_move() - Moves a display item by a given amount
SWFDisplayItem_moveTo() - Moves a display item to new, absolute, coordinates
SWFDisplayItem_setDepth() - Sets the display depth of a display item
SWFDisplayItem_setMatrix() - Sets the SWFMatrix structure associated with a display item
SWFDisplayItem_setName() - Sets the name for a given display item
SWFFillStyle
destroySWFFillStyle() - Destroys a fill style object, freeing the memory associated with it
newSWFSolidFillStyle() - Creates a single color (RGBA) fill style (with transparency)
SWFFont functions
destroySWFFont() - Destroys a font object, freeing the memory associated with it
newSWFFont_fromFile() - Create a font object from an FDB (.fdb) or TrueType (.ttf) file on the local filesystem
SWFInput functions
destroySWFInput() - Destroys a SWFInput object, freeing the memory associated with it
newSWFInput_buffer() - Creates a SWFInput object from an image already in memory
newSWFInput_file() - Creates a SWFInput object from a file pointer
newSWFInput_filename() - Creates a SWFInput object from a specified file
SWFJpegBitmap functions
newSWFJpegBitmap() - Creates a new SWF!JpegBitmap from a file pointer
newSWFJpegBitmap_fromInput() - Creates a new SWF!JpegBitmap from a SWFInput object
SWFMovie functions
Function |
PHP |
Perl |
Python |
Description |
not needed |
not needed |
yes |
Destroys a SWF movie and frees the memory associated with it |
|
? |
? |
? |
Initialise a SWF movie structure in memory, using the default swf version (version 5 if not set elsewhere) |
|
? |
? |
? |
Initialise a SWF movie structure in memory, using a specific swf version |
|
? |
? |
? |
Add a SWF character to a movie |
|
? |
? |
? |
Move the SWF Movie to the next frame |
|
? |
? |
? |
Password protect a movie from editing |
|
? |
? |
? |
Write a given SWF movie (in memory) out to a new file |
|
? |
? |
? |
Set the RGB background color for a given SWF movie |
|
? |
? |
? |
Set the x and y dimensions for a given SWF movie |
|
? |
? |
? |
Set the total frame count for a given SWF movie |
|
? |
? |
? |
Set the frame rate for a given SWF movie |
|
SWFMovie_labelFrame |
? |
? |
? |
? |
SWFMovie_namedAnchor |
? |
? |
? |
? |
SWFMovie_addMetadata |
? |
? |
? |
? |
SWFMovie_assignSymbol |
? |
? |
? |
? |
SWFMovie_defineScene |
? |
? |
? |
? |
SWFMovie_setNetworkAccess |
? |
? |
? |
? |
SWFMovie_setScriptLimits |
? |
? |
? |
? |
SWFMovie_setTabIndex |
? |
? |
? |
? |
SWFMovieClip functions
destroySWFMovieClip() - Destroys a movie clip object, freeing the memory associated with it
newSWFMovieClip() - Creates a new, empty movie clip object
SWFMovieClip_add() - Add a SWF character to a movie clip
SWFMovieClip_nextFrame() - Move the movie clip to the next frame. Also needed after adding objects to a movie clip!
SWFMovieClip_setNumberOfFrames() - Set the total frame count for a given movie clip
SWFShape functions
newSWFShape() - Creates a new, empty SWFShape
newSWFShapeFromBitmap() - Creates a new shape object from an existing bitmap object
SWFShape_drawLine() - Draws a line from the present cursor position to a new, offset position
SWFShape_movePenTo() - Moves the pen to the given x, y position (without drawing), relative to the shape origin
SWFShape_setLine() - Sets the line color used for a given SWF Shape. Use this for swf versions up to 7. Use SWFShape_setLine2() for swf version 8.
SWFShape_setRightFillStyle() - Sets the right hand Fill Style (Fill Style 1) for a given SWF Shape
SWFText functions
destroySWFText() - Destroys a text object, freeing the memory associated with it
newSWFText() - Creates a new, empty text object
SWFText_addString() - Adds a string to a text object
SWFText_getStringWidth() - Returns the display width of a given string, calculated using the settings of a given text object
SWFText_moveTo() - Moves the pen position in a text object (without drawing), so further strings appear at the new offsets
SWFText_setColor() - Sets the color and transparency for a text object
SWFText_setFont() - Sets the font used by a text object
SWFText_setHeight() - Sets the font height for a text object
Functions in non-wiki that still need transferring here (please assist)
The old non-wiki documentation is here.
General
- Ming_setCubicThreshold
- Ming_setWarnFunction
- Ming_setErrorFunction
Movie
- SWFMovieClip_removeScalingGrid
- SWFMovieClip_setScalingGrid
DisplayItem
- SWFDisplayItem_addFilter
- SWFDisplayItem_cacheAsBitmap
- SWFDisplayItem_get_x
- SWFDisplayItem_setBlendMode
Button
- SWFButton_addShape
- SWFButtonRecord_addFilter
- SWFButtonRecord_setBlendMode
- SWFButton_removeScalingGrid
- SWFButton_setScalingGrid
Shape
- newSWFShapeFromBitmap
- SWFShape_drawArc
- SWFShape_drawCubic
- SWFShape_drawScaledLineTo
- SWFShape_moveScaledPenTo
- SWFShape_getVersion
- SWFShape_setLine2Filled
- SWFShape_setLine2
- SWFShape_setLineStyle2filled_internal
- SWFShape_setLineStyle2_internal
- SWFShape_setLineStyle_internal
- SWFShape_setRenderHintingFlags
VideoStream
- newSWFVideoStream_fromFile
- newSWFVideoStream_fromInput
- newSWFVideoStream
- SWFVideoStream_getNumFrames
- SWFVideoStream_getVideoFrame
- SWFVideoStream_hasAudio
- SWFVideoStream_setDimension