TPictureBoxGetImageDestBounds Method
Calculates the destination bounds of an image on the surface of the button.
Namespace: BeeMobile.TransparentControlsAssembly: BeeMobile.TransparentControls.NET48 (in BeeMobile.TransparentControls.NET48.dll) Version: 4.8.8.20
protected virtual Rectangle GetImageDestBounds(
Alignment imageAlignment,
bool stretchImage,
int imageWidth,
int imageHeight
)
Protected Overridable Function GetImageDestBounds (
imageAlignment As Alignment,
stretchImage As Boolean,
imageWidth As Integer,
imageHeight As Integer
) As Rectangle
- 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.
RectangleThe calculated destination rectangle.