Hello, everyone! My name is Matheus Motta, i'm a computer science student in
Brazil.

First, i have to apologize myself, my english is not good.

Second, that's my first contact with you guys, developers or user like me. I
would like to congratulate everyone that has worked or believed in this
project.

Ok! Now that I introduced myself, I would take a doubt:

When we insert a image on the spreadsheet document, the image "fluctuate" on
the selected sheet. I can, perfectly, "take" the images from the document
and do anything else. But, my point is: How can i get more information about
the inserted image/picture? Informations like:
-The position of the image on the sheet. (something like the coordenates X
and Y);
-The aspect ratio (x and y);
-Width and Height;
-The alternative text of the image.

Is that possible? (I posted my code on end of message, if necessary)

Really thanks, anyway, for the attention!
Regards,
Matheus Motta.


------------------------------------------------------




     /********************** IMAGE EXTRACTION  **********************/

           // Copying the original list of images from workbook
        List   imgList = wb.getAllPictures();

        // Quantity of Images
        int quantityImages = imgList.size();

        // Calling the builder and warning about the quantity of images
(Pattern Builder)
        builder.foundQuantityOfImages(quantityImages);


        /**********************************************
         **********Image Table (Walking...)********
         **********************************************/

        for (int i = 0; i < quantityImages; i++) {

            // Getting the image as Data (ByteArray)
            HSSFPictureData theImgData = (HSSFPictureData) imgList.get(i);


            // Image data
            byte[] data = theImgData.getData();

           //HOW CAN I GET OTHER INFORMATION??? =(

        }

Reply via email to