PeachDrawing.PDF.PdfCanvas
PdfCanvas.DrawImage Method
| Overloads | |
|---|---|
| DrawImage(Image, Rect) | Draws the specified Image at the specified location and with the specified size. |
| DrawImage(Image, Rect, Rect) | Draws the specified portion of the specified Image at the specified location and with the specified size. |
PdfCanvas.DrawImage(Image, Rect) Method
Draws the specified Image at the specified location and with the specified size.
public override void DrawImage(PeachDrawing.Core.Image image, PeachDrawing.Core.Rect destRect);
Parameters
image Image
Image to draw.
destRect Rect
Rectangle structure that specifies the location and size of the drawn image.
PdfCanvas.DrawImage(Image, Rect, Rect) Method
Draws the specified portion of the specified Image at the specified location and with the specified size.
public override void DrawImage(PeachDrawing.Core.Image image, PeachDrawing.Core.Rect destRect, PeachDrawing.Core.Rect srcRect);
Parameters
image Image
Image to draw.
destRect Rect
Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcRect Rect
Rectangle structure that specifies the portion of the image object to draw.