[]
Draws an image using specified bounds, clipping and image alignment.
public void DrawImage(IImage image, RectangleF destBounds, RectangleF? clipBounds, ImageAlign align, float opacity = 1)
Public Sub DrawImage(image As IImage, destBounds As RectangleF, clipBounds As RectangleF?, align As ImageAlign, Optional opacity As Single = 1)
Type | Name | Description |
---|---|---|
IImage | image | The image to draw. |
RectangleF | destBounds | The destination rectangle. |
RectangleF? | clipBounds | The clipping rectangle, or null for no clipping. |
ImageAlign | align | The image alignment. |
float | opacity | The image opacity. |
Draws an image using specified bounds, clipping and image alignment.
In an output parameter, returns the array of actual image bounds.
public void DrawImage(IImage image, RectangleF destBounds, RectangleF? clipBounds, ImageAlign align, out RectangleF[] imageBounds, float opacity = 1)
Public Sub DrawImage(image As IImage, destBounds As RectangleF, clipBounds As RectangleF?, align As ImageAlign, ByRef imageBounds As RectangleF(), Optional opacity As Single = 1)
Type | Name | Description |
---|---|---|
IImage | image | The image to draw. |
RectangleF | destBounds | The destination rectangle. |
RectangleF? | clipBounds | The clipping rectangle, or null for no clipping. |
ImageAlign | align | The image alignment. |
RectangleF[] | imageBounds | OUT: The actual bounds of the drawn images (can be more than one if the image is tiled). |
float | opacity | The image opacity. |