Measures size and location, needed to show the image in the rectangle with specified settings.

Namespace: Dapfor.Net.Ui
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)

Syntax

C#
public static Size ImageMetrics(
	ImageSettings settings,
	Image image,
	Rectangle bounds,
	bool rtl,
	out Point location
)
Visual Basic
Public Shared Function ImageMetrics ( 
	settings As ImageSettings,
	image As Image,
	bounds As Rectangle,
	rtl As Boolean,
	<OutAttribute> ByRef location As Point
) As Size
Visual C++
public:
static Size ImageMetrics(
	ImageSettings^ settings, 
	Image^ image, 
	Rectangle bounds, 
	bool rtl, 
	[OutAttribute] Point% location
)
F#
static member ImageMetrics : 
        settings : ImageSettings * 
        image : Image * 
        bounds : Rectangle * 
        rtl : bool * 
        location : Point byref -> Size 

Parameters

settings
Type: Dapfor.Net.Ui..::..ImageSettings
The ImageSettings.
image
Type: System.Drawing..::..Image
The Image to be shown in the rectangle.
bounds
Type: System.Drawing..::..Rectangle
The bounds where the image is to be shown.
rtl
Type: System..::..Boolean
Indicates right to left layout.
location
Type: System.Drawing..::..Point%
Indicates the top-left corner of the image.

Return Value

Type: Size
The size of the image

See Also