[]
Convert a image to the image in memory.
[CLSCompliant(false)]
[Obsolete("please use XLImage.FromImage method")]
public static Image ToImage(Image image)
<CLSCompliant(False)>
<Obsolete("please use XLImage.FromImage method")>
Public Shared Function ToImage(image As Image) As Image
| Type | Name | Description |
|---|---|---|
| Image | image | The image object. |
| Type | Description |
|---|---|
| Image | The graphics image in memory. |
Convert a image interface to the image in memory.
[CLSCompliant(false)]
public static Image ToImage(IImage img)
<CLSCompliant(False)>
Public Shared Function ToImage(img As IImage) As Image
| Type | Name | Description |
|---|---|---|
| IImage | img | The image interface. |
| Type | Description |
|---|---|
| Image | The graphics image in memory. |
Convert a image data to the image in memory.
[CLSCompliant(false)]
public static Image ToImage(byte[] data)
<CLSCompliant(False)>
Public Shared Function ToImage(data As Byte()) As Image
| Type | Name | Description |
|---|---|---|
| byte[] | data | The image data. |
| Type | Description |
|---|---|
| Image | The graphics image in memory. |
The image data must be available while working with the image.
Convert a bitmap object to the image in memory.
[CLSCompliant(false)]
public static Image ToImage(GcBitmap bitmap)
<CLSCompliant(False)>
Public Shared Function ToImage(bitmap As GcBitmap) As Image
| Type | Name | Description |
|---|---|---|
| GcBitmap | bitmap | The graphics GrapeCity.Documents.Imaging.GcBitmap object. |
| Type | Description |
|---|---|
| Image | The graphics image in memory. |
Read a stream to the image in memory.
[CLSCompliant(false)]
public static Image ToImage(Stream stream)
<CLSCompliant(False)>
Public Shared Function ToImage(stream As Stream) As Image
| Type | Name | Description |
|---|---|---|
| Stream | stream | The image Stream object. |
| Type | Description |
|---|---|
| Image | The graphics image in memory. |
Convert a bitmap object to the image in memory.
[CLSCompliant(false)]
public static Image ToImage(string source)
<CLSCompliant(False)>
Public Shared Function ToImage(source As String) As Image
| Type | Name | Description |
|---|---|---|
| string | source | The path to an existing file or a BASE64 string. |
| Type | Description |
|---|---|
| Image | The graphics image in memory. |