[]
Draws an image into the region defined by the specified Rectangle.
public abstract void DrawImage(Stream imageStream, Rectangle bounds, SizingMode sizingMode, Rectangle? clipBounds = null, RectAlignment rectAlignment = RectAlignment.Unspecified)
Public MustOverride Sub DrawImage(imageStream As Stream, bounds As Rectangle, sizingMode As SizingMode, Optional clipBounds As Rectangle? = Nothing, Optional rectAlignment As RectAlignment = RectAlignment.Unspecified)
Type | Name | Description |
---|---|---|
Stream | imageStream | The data stream of image to draw. |
Rectangle | bounds | Rectangle structure that specifies the location and size of the drawn image. |
SizingMode | sizingMode | SizingMode structure that specifies the the image dimensions. |
Rectangle? | clipBounds | Rectangle structure that specifies the clipping rectangle, or null for no clipping. |
RectAlignment | rectAlignment | RectAlignment that specifies how's the image aligned. |
Draws an image into the region defined by the specified Rectangle.
public abstract void DrawImage(string filePath, Rectangle bounds, SizingMode sizingMode, Rectangle? clipBounds = null, RectAlignment rectAlignment = RectAlignment.Unspecified)
Public MustOverride Sub DrawImage(filePath As String, bounds As Rectangle, sizingMode As SizingMode, Optional clipBounds As Rectangle? = Nothing, Optional rectAlignment As RectAlignment = RectAlignment.Unspecified)
Type | Name | Description |
---|---|---|
string | filePath | File path of image to draw |
Rectangle | bounds | Rectangle structure that specifies the location and size of the drawn image. |
SizingMode | sizingMode | SizingMode structure that specifies the the image dimensions. |
Rectangle? | clipBounds | Rectangle structure that specifies the clipping rectangle, or null for no clipping. |
RectAlignment | rectAlignment | RectAlignment that specifies how's the image aligned. |