I am creating Pictures from identical JPEG files, however after I add them to the presentation, only the first has a valid picture ID. The first has an ID of 2 and all the rest have an ID of 1.
I have attached a simple test program, so you can see what I am doing. This test program uses the same file for each Picture. My actual application uses identical images but they are in different files. The behaviour is the same. How does Aspose.Powerpoint know that these images are the same?
Is there something I am doing wrong?
I am using the most recent version of Aspose Powerpoint for Java (1.4.3.0).
Thank you for the quick response. I understand this now and my problem is solved.
I wanted to clarify something so others may not be confused.
When I did "picture1 = pres.getPictures().get(id1);" from above an IndexOutOfBoundsException was thrown. I think this should have called getPictureById(id1) instead. Right?