[]
Gets render rectangle based on image, alignment, and size mode
public static RectangleF GetContentRect(Image img, RectangleF rc, ContentAlignment align, ImageSizeMode mode)
Public Shared Function GetContentRect(img As Image, rc As RectangleF, align As ContentAlignment, mode As ImageSizeMode) As RectangleF
| Type | Name | Description |
|---|---|---|
| Image | img | SizeF structure that specifies the size of the object, in points. |
| RectangleF | rc | RectangleF structure that specifies the location of the object, in points. |
| ContentAlignment | align | |
| ImageSizeMode | mode |
| Type | Description |
|---|---|
| RectangleF |
Gets render rectangle based on content/image size, alignment, and size mode
public static RectangleF GetContentRect(SizeF sz, RectangleF rc, ContentAlignment align, ImageSizeMode mode)
Public Shared Function GetContentRect(sz As SizeF, rc As RectangleF, align As ContentAlignment, mode As ImageSizeMode) As RectangleF
| Type | Name | Description |
|---|---|---|
| SizeF | sz | SizeF structure that specifies the size of the object, in points. |
| RectangleF | rc | RectangleF structure that specifies the location of the object, in points. |
| ContentAlignment | align | |
| ImageSizeMode | mode |
| Type | Description |
|---|---|
| RectangleF |