This project has moved. For the latest updates, please go here.

Adding boder to the Picture/Image

Jul 17, 2012 at 6:58 AM
Edited Jul 17, 2012 at 7:03 AM

Can we add boder to the image we read from the stream?

Below is the code which am using now.

 using (MemoryStream memStr = new MemoryStream())
{
        imgBytes = (byte[])ResizeImage(imgBytes, 150, 200, false);
        memStr.Write(imgBytes, 0, imgBytes.Length);
        memStr.Position = 0;
        Novacode.Image img = package.AddImage(memStr);
        Picture pic = img.CreatePicture();
        t1.Rows[0].Cells[0].Paragraphs.First().AppendPicture(pic);