All functions Mac OS X Windows Crossplatform Components New in version: 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 2.0
Component: GraphicsMagick
Mac OS X: Works
Windows: Works
MBS( "GMImage.Annotate"; ImageRef; Text; boundingArea; gravity; degrees )
Parameter | Description | Example value |
---|---|---|
ImageRef | The image reference (a number returned from the GMImage.New functions) | 1 |
text | Some text | "Hello World" |
boundingArea | The rectangle where to draw. Geometry is specified as a width and height "100x200". With an optional offset "100x200+10+20". For percent values, add a percent on the end, for % values add a %: "100x200%!" | "100x200+10+20" |
gravity | Optional, the position of the text. NorthWestGravity = 1: text bottom-left corner placed at top-left, NorthGravity = 2: text bottom-center placed at top-center, NorthEastGravity = 3: text bottom-right corner placed at top-right, WestGravity = 4: text left-center placed at left-center, CenterGravity = 5: text center placed at center, EastGravity = 6: text right-center placed at right-center, SouthWestGravity = 7: text top-left placed at bottom-left, SouthGravity = 8: text top-center placed at bottom-center, SouthEastGravity = 9: text top-right placed at bottom-right, StaticGravity = 10. | 1 |
degrees | Optional, the rotation. | 0 |
Returns "OK" on success.
Annotate image (draw text on image).
Feedback: Report problem or ask question.