Draws the specified System.Drawing.Image object at the specified location, adjusting the image size as specified by the and parameters.
Syntax
'Declaration
Public Overloads Sub DrawImage( _
ByVal As System.Drawing.Image, _
ByVal As System.Drawing.RectangleF, _
ByVal As System.Drawing.ContentAlignment, _
ByVal As ImageSizeModeEnum _
)
public void DrawImage(
System.Drawing.Image ,
System.Drawing.RectangleF ,
System.Drawing.ContentAlignment ,
ImageSizeModeEnum
)
Parameters
- img
- System.Drawing.Image object to draw.
- rc
- System.Drawing.RectangleF structure that specifies the location of the drawn image, in points from the top left corner of the page.
- align
- System.Drawing.ContentAlignment value that specifies how the image should be aligned within the rectangle.
- mode
- ImageSizeModeEnum value that specifies how the image should be sized to fit the rectangle.
See Also