Covert to Image
I have one object. I want to convert into image(png or jpg) this object data.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sanwar RanwaRank #23 · 44.7K reputationPosted May 28, 2019, 11:30 PM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted May 28, 2019, 11:53 PM EDT
Maen BadwanRank #2,520 · 556 reputationPosted May 30, 2019, 3:35 AM EDT
This depends on the content of the object that you want to convert to image.
What is the nature of this object?
Is it a shape? A file?
Does it contain actual image (pixel) data?
Does it contain a different type of data?
In general, if the object contains actual image (pixel) data, and you want to save it as (PNG or JPG) file, you can use LEADTOOLS .NET classes to:
- Create a RasterImage object of your pixel data.
- Save the RasterImage object to any supported image format including PNG and JPG.
https://www.leadtools.com/help/leadtools/v20/dh/co/rastercodecs-save(rasterimage,string,rasterimageformat,int).html
Mageshwaran RRank #411 · 6.1K reputationPosted Nov 23, 2019, 8:00 AM EST