The following code adds a transparent PNG to a document.
using (Doc doc = new Doc()) {
string thePath = Server.MapPath("../mypics/mypic.png");
Bitmap bm = new Bitmap(thePath);
doc.Rect.Inset(20, 20);
doc.Color.String = "0 0 200";
doc.FillRect();
doc.AddImageBitmap(bm, true);
bm.Dispose();
doc.Save(Server.MapPath("docaddimagebitmap.pdf"));
}
Using doc As New Doc()
Dim thePath As String = Server.MapPath("../mypics/mypic.png")
Dim bm As New Bitmap(thePath)
doc.Rect.Inset(20, 20)
doc.Color.String = "0 0 200"
doc.FillRect()
doc.AddImageBitmap(bm, True)
bm.Dispose()
doc.Save(Server.MapPath("docaddimagebitmap.pdf"))
End Using