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
)
Public Shared Function FromImage (
image As Image,
Optional mode As InterpolationMode = InterpolationMode.Bicubic
) As ArgbImage
public:
static ArgbImage^ FromImage(
Image^ image,
InterpolationMode mode = InterpolationMode::Bicubic
)
static member FromImage :
image : Image *
?mode : InterpolationMode
(* Defaults:
let _mode = defaultArg mode InterpolationMode.Bicubic
*)
-> ArgbImage
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:
ArgbImageThe 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