How to show Apose.Imaging.Image in PictureBox

Hello,

how can i show the Apose.Imaging.Image in PictureBox without saving to disk?

Can you show me code how it works?

The methode ToGdiImage is obsolete.

Thanks

Hi Thomas,

Thank you for your inquiry.

Please, find the sample project attached with this reply (Sample_Image_Load_To_PicBox.zip). Note that we have used Latest version of Aspose.Imaging in the sample code. The sample project has been developed using Visual Studio 2010 with .Net Framework 3.5. We have added proper commenting for your guidance.

The sequence of the sample code is as follows:

  1. Construct path to files directory.
  2. Load valid License file.
  3. Construct Image File Path.
  4. Load Image file using Aspose.Imaging.
  5. Perform some operation on the image using Aspose.Imaging.
  6. Create an empty FileStream.
  7. Save the image into FileStream (on which you have just performed the operation using Aspose.Imging).
  8. Assign the Stream to Image property of the PictureBox control.

Hope the above information helps. In case of any issues, need further clearance please be sure to let us know, we will be glad to assist you.

Where’s the attached project

@Madd_Homie

You are referring to an extremely old thread. Can you please share your requirements along with source file and desired output.