Java generates JPEG image files. The code is as follows:
My code is mainly provided for the Workflow Designer object that I write myself (Eworkflowcontrol EWF), Eworkflowcontrol inherits the method that JComponent overloads the drawing, and if a brother needs to use this function, You just need to replace Eworkflowcontrol with your own JComponent object.
/** generates a JPEG image file for graphics on the current input workflow object.
* Each node corresponds to a picture.
* Established files are stored under the Jar file folder and a subfolder is created
* With the name of the node as the name of the folder.
* @param EWF A Workflow object that needs to generate a JPEG picture file.
* @return Boolean: Returns a Boolean value that indicates whether the save was successful.
*/
public static Boolean buildthepictrue (Eworkflowcontrol EWF)
{
//modify by MW
//Lists all node nodes in the process.
//Set these nodes as selected, and coexist into pictures (serial numbers with name nodes)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.