Esempio n. 1
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);
     }
 }
Esempio n. 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>
 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);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Method that adds an image to the page object
 /// </summary>
 /// <param name="newImgObject">Image Object</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(Image newImgObject, int X, int Y)
 {
     try {
         imageElement objImage = new imageElement(newImgObject, X, Y);
         _persistentElements.Add(objImage);
         objImage = null;
     } catch (pdfImageNotFoundException ex) {
         throw new pdfImageNotFoundException(ex.Message, ex);
     } catch (pdfImageIOException ex) {
         throw new pdfImageIOException(ex.Message, ex);
     }
 }
 /// <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);
     }
 }
Esempio n. 5
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);
     }
 }