Click or drag to resize

StretchBitmap Function

X#
Display a bitmap stretched or shrunk to fit a window or control.

Namespace:  XSharp.VO
Assembly:  XSharp.VO (in XSharp.VO.dll) Version: 2.19
Syntax
 FUNCTION StretchBitmap(
	hWnd AS IntPtr,
	cFileName AS STRING,
	cTitle AS STRING
) AS LOGIC
Request Example View Source

Parameters

hWnd
Type: IntPtr
Handle of the window or control in which you want to display the bitmap.
cFileName
Type: String
The bitmap file to display.
cTitle
Type: String
Caption for the window or control.

Return Value

Type: Logic
TRUE if successful; otherwise, FALSE.
Remarks
This function allows you to stretch or shrink a bitmap to fit the current window or control size, and then displays that bitmap.
Examples