René Nyffenegger's collection of things on the web | |
René Nyffenegger on Oracle - Most wanted - Feedback
- Follow @renenyffenegger
|
Simple shape [Ming wrapper example] | ||
This example just draws two shapes.
This flash movie was created with the following program. ShapeExample.cpp
#include "SWFMovie.h" int main() { Movie movie ("ShapeExample.swf", 200, 200); Shape shape; shape.FillStyle(255, 0, 0); shape.LineStyle( 1, 0, 0, 0); shape.Line( 40, 0); shape.Line( 0, 10); shape.Line( -40, 0); shape.Line( 0,-10); shape.FillStyle(0, 0, 255); shape.LineStyle( 1, 127, 127, 0); shape.MoveTo( 50, 50); shape.Line ( 20, 0); shape.Line ( 0, 50); shape.Line (-20, 0); shape.Line ( 0,-50); DisplayItem iShape = movie.Add(shape); iShape.MoveTo(50, 50); movie.NextFrame(); return 0; } This is one of a series of examples that demonstrates the C++ ming wrapper classes. Other examples can be found here.
|