Udostępnij za pośrednictwem


ImageHelper.GetImage Method

Definition

Overloads

GetImage(Byte[])

Gets an image from and array of bytes

GetImage(Image)

Provided for uniformity

GetImage(Object)

Determine the type of image and return it as Image

GetImage(Type, String)

Gets an image from a resource

GetImage(Byte[])

Gets an image from and array of bytes

public:
 static System::Drawing::Image ^ GetImage(cli::array <System::Byte> ^ imageData);
public static System.Drawing.Image GetImage (byte[] imageData);
static member GetImage : byte[] -> System.Drawing.Image
Public Shared Function GetImage (imageData As Byte()) As Image

Parameters

imageData
Byte[]

An array of bytes containing the image

Returns

image

Applies to

GetImage(Image)

Provided for uniformity

public:
 static System::Drawing::Image ^ GetImage(System::Drawing::Image ^ image);
public static System.Drawing.Image GetImage (System.Drawing.Image image);
static member GetImage : System.Drawing.Image -> System.Drawing.Image
Public Shared Function GetImage (image As Image) As Image

Parameters

image
Image

Returns

image

Applies to

GetImage(Object)

Determine the type of image and return it as Image

public:
 static System::Drawing::Image ^ GetImage(System::Object ^ unknownTypeOfImage);
public static System.Drawing.Image GetImage (object unknownTypeOfImage);
static member GetImage : obj -> System.Drawing.Image
Public Shared Function GetImage (unknownTypeOfImage As Object) As Image

Parameters

unknownTypeOfImage
Object

Returns

Applies to

GetImage(Type, String)

Gets an image from a resource

public:
 static System::Drawing::Image ^ GetImage(Type ^ type, System::String ^ resourceName);
public static System.Drawing.Image GetImage (Type type, string resourceName);
static member GetImage : Type * string -> System.Drawing.Image
Public Shared Function GetImage (type As Type, resourceName As String) As Image

Parameters

type
Type

A type in the assembly to read resource from

resourceName
String

name of the metafile resource

Returns

image

Applies to