Export a fraction of the screen to pdf and designate file location.
in
Core Library Questions
•
1 year ago
Hello,
I am creating a sketch that has a graph area and a control area to change the data represented in the graph. I would like to have a button that will export the current graph. However, I cannot figure out how to use beginRecord() and endRecord() to do this. Currently, an image the whole size of the sketch is exported when I just want a fraction of the area with the graph to be exported. Does anyone have a solution?
Also, how do I specify the location where a pdf file is exported to?
Thanks,
Kyle
I am creating a sketch that has a graph area and a control area to change the data represented in the graph. I would like to have a button that will export the current graph. However, I cannot figure out how to use beginRecord() and endRecord() to do this. Currently, an image the whole size of the sketch is exported when I just want a fraction of the area with the graph to be exported. Does anyone have a solution?
Also, how do I specify the location where a pdf file is exported to?
Thanks,
Kyle
1