Creates a formatted image from the passed image (Resizes the original image and converts it to a specified image type).
Namespace: MonoSoftware.Core.DrawingAssembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)
Syntax
C# |
---|
public static byte[] FormatImage(
bool useSuppliedSize,
bool maintainAspectRatio,
Image image,
int width,
int height,
ImageFormat imageFormat
) |
Visual Basic |
---|
Public Shared Function FormatImage (
useSuppliedSize As Boolean,
maintainAspectRatio As Boolean,
image As Image,
width As Integer,
height As Integer,
imageFormat As ImageFormat
) As Byte() |
Visual C++ |
---|
public:
static array<unsigned char>^ FormatImage(
bool useSuppliedSize,
bool maintainAspectRatio,
Image^ image,
int width,
int height,
ImageFormat^ imageFormat
) |
F# |
---|
static member FormatImage :
useSuppliedSize : bool *
maintainAspectRatio : bool *
image : Image *
width : int *
height : int *
imageFormat : ImageFormat -> byte[]
|
Return Value
Type:
array<Byte>[]()[][]Formatted Image
See Also