ArgbImage Constructor (Int32, Int32, Byte, InterpolationMode) |
Creates and initializes an ArgbImage.
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 ArgbImage(
int width,
int height,
byte[] argbValues = null,
InterpolationMode mode = InterpolationMode.Bicubic
)
Public Sub New (
width As Integer,
height As Integer,
Optional argbValues As Byte() = Nothing,
Optional mode As InterpolationMode = InterpolationMode.Bicubic
)
public:
ArgbImage(
int width,
int height,
array<unsigned char>^ argbValues = nullptr,
InterpolationMode mode = InterpolationMode::Bicubic
)
new :
width : int *
height : int *
?argbValues : byte[] *
?mode : InterpolationMode
(* Defaults:
let _argbValues = defaultArg argbValues null
let _mode = defaultArg mode InterpolationMode.Bicubic
*)
-> ArgbImage
Parameters
- width
- Type: SystemInt32
The width of the image. - height
- Type: SystemInt32
The height of the image. - argbValues (Optional)
- Type: SystemByte
The image's pixels. May be null. - mode (Optional)
- Type: System.Drawing.Drawing2DInterpolationMode
Controls interpolation when reading pixels.
Remarks If argbValues is null, image will be made up of fully transparent black pixels.
If argbValues is non-null, the array length must equal width*height*4.
See Also