The stream can contain any of the following types: JPEG, GIF,
TIFF, BMP, PNG, PSD, PDB, EXIF, WMF, EMF, EPS, PS or SWF (Flash).
Different images within the file can be accessed using the Frame property. Different
portions of the image can be selected using the Selection property.
Example
Here we read a TIFF file and present the data to the XImage
object. We then add the image to our document and then save the
PDF.
[Visual
Basic] Dim theImg As XImage = New XImage() Dim
thePath As String thePath =
Server.MapPath("../mypics/mypic.tif") Dim theStream As
Stream theStream =
File.OpenRead(thePath) theImg.SetStream(theStream) theStream.Close() Dim
theDoc As Doc = New Doc() theDoc.Rect.Inset(20,
20) theDoc.AddImageObject(theImg,
False) theImg.Clear() theDoc.Save(Server.MapPath("imagesetstream.pdf")) theDoc.Clear()