[]
        
(Showing Draft Content)

C1.Util.Drawing.GetContentRect

GetContentRect Method

GetContentRect(Image, RectangleF, ContentAlignment, ImageSizeMode)

Gets render rectangle based on image, alignment, and size mode

Declaration
public static RectangleF GetContentRect(Image img, RectangleF rc, ContentAlignment align, ImageSizeMode mode)
Parameters
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
Returns
Type Description
RectangleF

GetContentRect(SizeF, RectangleF, ContentAlignment, ImageSizeMode)

Gets render rectangle based on content/image size, alignment, and size mode

Declaration
public static RectangleF GetContentRect(SizeF sz, RectangleF rc, ContentAlignment align, ImageSizeMode mode)
Parameters
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
Returns
Type Description
RectangleF