TPictureBoxGetImageDestBounds Method

Calculates the destination bounds of an image on the surface of the button.

Definition

Namespace: BeeMobile.TransparentControls
Assembly: BeeMobile.TransparentControls.NET48 (in BeeMobile.TransparentControls.NET48.dll) Version: 4.8.8.20
C#
protected virtual Rectangle GetImageDestBounds(
	Alignment imageAlignment,
	bool stretchImage,
	int imageWidth,
	int imageHeight
)

Parameters

imageAlignment  Alignment
Alignment of the image.
stretchImage  Boolean
Indicates, whether to stretch the image to the entire surface of te button.
imageWidth  Int32
Width of the image.
imageHeight  Int32
Height of the image.

Return Value

Rectangle
The calculated destination rectangle.

See Also