Click or drag to resize
IWebSiteGraphicsResizeBitmap Method
Returns a new bitmap with the dimensions specified. The entire bitmap is filled with the background and then the original bitmap is drawn into the centre. If the aspect ratio of the original image is different to that of the new image then the ResizeMode indicates how to deal with it.

Namespace: VirtualRadar.Interface.WebSite
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Bitmap ResizeBitmap(
	Bitmap original,
	int width,
	int height,
	ResizeImageMode mode,
	Brush zoomBackground,
	bool preferSpeedOverQuality
)

Parameters

original
Type: System.DrawingBitmap
width
Type: SystemInt32
height
Type: SystemInt32
mode
Type: VirtualRadar.Interface.WebSiteResizeImageMode
zoomBackground
Type: System.DrawingBrush
preferSpeedOverQuality
Type: SystemBoolean

Return Value

Type: Bitmap
See Also