Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » How to save drawing as an image
How to save drawing as an image [message #60509] Thu, 14 March 2024 07:48 Go to next message
kunal_s is currently offline  kunal_s
Messages: 1
Registered: March 2024
Junior Member
I have generated a barcode in my current layout using the functions DrawRect,DrawDrawing and now i wish to save this as a png or jpeg file for further usage in my other opertaions. Can someone please guide me on this.
Re: How to save drawing as an image [message #60512 is a reply to message #60509] Thu, 14 March 2024 13:27 Go to previous message
koldo is currently offline  koldo
Messages: 3365
Registered: August 2008
Senior Veteran
Hi kunal_s

If you have an Image object you can save it like this:
PNGEncoder encoder;
encoder.SaveFile(fileName, image);

JPGEncoder encoder(jpgQuality);
encoder.SaveFile(fileName, image);


Best regards
IƱaki
Previous Topic: Compiling problem in the Draw package
Next Topic: Drawing / Painter Difference,Usage,Manual
Goto Forum:
  


Current Time: Sat May 25 09:57:45 CEST 2024

Total time taken to generate the page: 0.03019 seconds