This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofGraphicsCairo.cpp File Reference
Functions | |
void | ofBeginSaveScreenAsPDF (std::string filename, bool bMultipage, bool b3D, ofRectangle outputsize) |
Begin rendering to a PDF file. | |
void | ofEndSaveScreenAsPDF () |
Terminates draw to PDF through ofCairoRenderer and outputs the file. | |
void | ofBeginSaveScreenAsSVG (std::string filename, bool bMultipage, bool b3D, ofRectangle outputsize) |
Begin rendering to a SVG file. | |
void | ofEndSaveScreenAsSVG () |
Terminates draw to SVG and outputs the file. | |
Function Documentation
◆ ofBeginSaveScreenAsPDF()
void ofBeginSaveScreenAsPDF | ( | std::string | filename, |
bool | bMultipage = false , |
||
bool | b3D = false , |
||
ofRectangle | outputsize = ofRectangle(0, 0, 0, 0) |
||
) |
Begin rendering to a PDF file.
openFrameworks allows rendering of 2D graphics to pdf via the ofCairoRenderer. ofBeginSaveScreenAsPDF() is called before drawing. When done drawing call ofEndSaveScreenAsPDF() to output the file.
void ofApp::setup(){
ofSetColor(54,54,54);
ofDrawEllipse(100,100,200,200);
}
void ofDrawEllipse(const glm::vec3 &p, float width, float height)
Definition ofGraphics.cpp:706
void ofEndSaveScreenAsPDF()
Terminates draw to PDF through ofCairoRenderer and outputs the file.
Definition ofGraphicsCairo.cpp:52
void ofBeginSaveScreenAsPDF(std::string filename, bool bMultipage, bool b3D, ofRectangle outputsize)
Begin rendering to a PDF file.
Definition ofGraphicsCairo.cpp:47
- See also
- End drawing with ofEndSaveScreenAsPDF()
◆ ofBeginSaveScreenAsSVG()
void ofBeginSaveScreenAsSVG | ( | std::string | filename, |
bool | bMultipage = false , |
||
bool | b3D = false , |
||
ofRectangle | outputsize = ofRectangle(0, 0, 0, 0) |
||
) |
Begin rendering to a SVG file.
◆ ofEndSaveScreenAsPDF()
void ofEndSaveScreenAsPDF | ( | ) |
Terminates draw to PDF through ofCairoRenderer and outputs the file.
- See also
- ofBeginSaveScreenAsPDF()
◆ ofEndSaveScreenAsSVG()
void ofEndSaveScreenAsSVG | ( | ) |
Terminates draw to SVG and outputs the file.
- See also
- ofBeginSaveScreenAsSVG()