The Q3Picture 类是描绘设备,它记录并重演 Q3Painter 命令。 更多...
| 头: | #include <Q3Picture> |
| 继承: | QPicture |
| Q3Picture () | |
| Q3Picture (const QPicture & other ) | |
| bool | load (QIODevice * device , const char * format = 0) |
| bool | load (const QString & fileName , const char * format = 0) |
| bool | save (QIODevice * device , const char * format = 0) |
| bool | save (const QString & fileName , const char * format = 0) |
The Q3Picture 类是描绘设备,它记录并重演 Q3Painter 命令。
Q3Picture can also read and write SVG (Scalable Vector Graphics) files, a W3C XML format. Note that when using the load () 和 save () functions to read and write SVG files, the format must be specified.
另请参阅 QPicture .
构造 Q3Picture .
构造副本为 other .
Loads the picture in the specified format 从给定 device . Returns true if the file is loaded successfully; otherwise returns false.
Note that when using the load() function to read SVG files, the format must be specified. For example:
Q3Picture picture; picture.load("drawing.svg", SVG);
另请参阅 save ().
这是重载函数。
Loads the picture in the specified format from a file with the given fileName . Returns true if the file is loaded successfully; otherwise returns false.
Saves the picture in the specified format 到给定 device . Returns true if the save is successful. Returns false if, for example, the picture is still being painted, i.e., QPainter::end () has not yet been called.
Note that when using the save() function to save SVG files, the format must be specified. For example:
Q3Picture picture; QPainter painter; painter.begin(&picture); // paint in picture ... painter.end(); // painting done picture.save("drawing.svg", SVG); // save picture
另请参阅 load ().
这是重载函数。
Saves the picture in the specified format to the file with the given fileName .
另请参阅 load ().