Click or drag to resize

ArgbImageFromImage Method (Bitmap, InterpolationMode)

Creates and initializes an ArgbImage from a given Bitmap.

Namespace:  Ptv.XServer.Controls.Map.Tools.Reprojection
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public static ArgbImage FromImage(
	Bitmap bmp,
	InterpolationMode mode = InterpolationMode.Bicubic
)

Parameters

bmp
Type: System.DrawingBitmap
The bitmap to create the ArgbImage from.
mode (Optional)
Type: System.Drawing.Drawing2DInterpolationMode
Controls the interpolation mode when accessing pixels.

Return Value

Type: ArgbImage
The created ArgbImage.
Remarks
If the pixel format of the given bitmap is not PixelFormat.Format32bppArgb, an additional conversion step applies to turn the image into a 32bpp ARGB bitmap.
See Also