Click or drag to resize

ArgbImageFromImage Method (Image, InterpolationMode)

Creates and initializes an ArgbImage from a given System.Drawing.Image.

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(
	Image image,
	InterpolationMode mode = InterpolationMode.Bicubic
)

Parameters

image
Type: System.DrawingImage
The image 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 given image is not a bitmap or does not equal the pixel format PixelFormat.Format32bppArgb, an additional conversion step is applied to turn the image into a 32bpp ARGB bitmap.
See Also