[]
Convert a image to the image in memory.
[CLSCompliant(false)]
public static Image ToImage(Image 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)
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)
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)
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)
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)
Type | Name | Description |
---|---|---|
string | source | The path to an existing file or a BASE64 string. |
Type | Description |
---|---|
Image | The graphics image in memory. |
Convert a bitmap object to the image in memory.
[CLSCompliant(false)]
[Obsolete]
public static Image ToImage(object source)
Type | Name | Description |
---|---|---|
object | source | The image source. |
Type | Description |
---|---|
Image | The graphics image in memory. |
The source can be binary data, a Base 64 string, a GrapeCity.Documents.Imaging.GcBitmap object, a Stream object, or the name of an existing file.