[]
Gets render rectangle based on image, alignment, and size mode
public static RectangleF GetContentRect(Image img, RectangleF rc, ContentAlignment align, ImageSizeMode mode)
| 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)
| 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 |