/// <summary>
 /// Method that adds an image to the page object
 /// </summary>
 /// <param name="newImgSource">Image's name</param>
 /// <param name="X">X position of the image in the page</param>
 /// <param name="Y">Y position of the image in the page</param>		
 public void addImage(Byte[] myImage, int X, int Y, int imageHeight, int imageWidth)
 {
     try {
         imageElement objImage = new imageElement(myImage, X, Y, imageHeight, imageWidth );
         _persistentElements.Add(objImage);
         objImage = null;
     } catch (pdfImageNotFoundException ex) {
         throw new pdfImageNotFoundException(ex.Message,ex);
     } catch (pdfImageIOException ex) {
         throw new pdfImageIOException(ex.Message,ex);
     }
 }
Exemple #2
0
 /// <summary>
 /// Method that adds an image to the page object
 /// </summary>
 /// <param name="newImgSource">Image's name</param>
 /// <param name="X">X position of the image in the page</param>
 /// <param name="Y">Y position of the image in the page</param>
 /// <param name="height">New height of the image</param>
 /// <param name="width">New width of the image</param>
 public void addImage(string newImgSource, int X, int Y, int height, int width)
 {
     try {
         imageElement objImage = new imageElement(newImgSource, X, Y, height, width);
         _elements.Add(objImage);
         objImage = null;
     } catch (pdfImageNotFoundException ex) {
         throw new pdfImageNotFoundException(ex.Message,ex);
     } catch (pdfImageIOException ex) {
         throw new pdfImageIOException(ex.Message,ex);
     }
 }