Creating new Picture Objects

You create a new Picture object in the Presentation class, specifying the PictureData you wish to use:

Clipboard createPicture(PictureData data) [Presentation]

The following code snippet illustrates creating a new Picture.

File image = new File("image.jpg");
PictureData data = new PictureData(image, PictureData.JPEG);
Clipboard clipboard = presentation.createPicture(data);
Picture picture = (Picture)slide.paste(clipboard);

The picture data is automatically added to the repository.


Page generated: 2008-01-18 02:53:28 GMT TonicPoint Builder Developer's Guide -- Version 2.3