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