Skip to main content
.NET Framework 4.5.2+

PdfGraphics.DrawImage Method

Name Parameters Description
DrawImage(Byte[], PointF) data, location Draws the specified image data at the specified point.
DrawImage(Byte[], RectangleF) data, bounds Draws an image data in the specified page rectangle. The image is scaled to fit the rectangle.
DrawImage(Image, PointF) image, location Draws the specified image in its original size at the specified page point.
DrawImage(Image, RectangleF, RectangleF, GraphicsUnit) image, destRect, srcRect, srcUnit Draws the specified image part in a page rectangle.
DrawImage(Image, RectangleF) image, bounds Draws an image in the specified page rectangle. The image is scaled to fit this rectangle.
DrawImage(Stream, PointF) data, location Draws an image from a stream at the specified page point.
DrawImage(Stream, RectangleF) data, bounds Draws an image from a stream in the specified page rectangle. The image is scaled to fit the rectangle.