[]
        
(Showing Draft Content)

C1.Util.SvgRendering.ToImage

ToImage Method

ToImage(Image)

Convert a image to the image in memory.

Declaration
[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
Parameters
Type Name Description
Image image

The image object.

Returns
Type Description
Image

The graphics image in memory.

ToImage(IImage)

Convert a image interface to the image in memory.

Declaration
[CLSCompliant(false)]
public static Image ToImage(IImage img)
<CLSCompliant(False)>
Public Shared Function ToImage(img As IImage) As Image
Parameters
Type Name Description
IImage img

The image interface.

Returns
Type Description
Image

The graphics image in memory.

ToImage(byte[])

Convert a image data to the image in memory.

Declaration
[CLSCompliant(false)]
public static Image ToImage(byte[] data)
<CLSCompliant(False)>
Public Shared Function ToImage(data As Byte()) As Image
Parameters
Type Name Description
byte[] data

The image data.

Returns
Type Description
Image

The graphics image in memory.

Remarks

The image data must be available while working with the image.

ToImage(GcBitmap)

Convert a bitmap object to the image in memory.

Declaration
[CLSCompliant(false)]
public static Image ToImage(GcBitmap bitmap)
<CLSCompliant(False)>
Public Shared Function ToImage(bitmap As GcBitmap) As Image
Parameters
Type Name Description
GcBitmap bitmap

The graphics GrapeCity.Documents.Imaging.GcBitmap object.

Returns
Type Description
Image

The graphics image in memory.

ToImage(Stream)

Read a stream to the image in memory.

Declaration
[CLSCompliant(false)]
public static Image ToImage(Stream stream)
<CLSCompliant(False)>
Public Shared Function ToImage(stream As Stream) As Image
Parameters
Type Name Description
Stream stream

The image Stream object.

Returns
Type Description
Image

The graphics image in memory.

ToImage(string)

Convert a bitmap object to the image in memory.

Declaration
[CLSCompliant(false)]
public static Image ToImage(string source)
<CLSCompliant(False)>
Public Shared Function ToImage(source As String) As Image
Parameters
Type Name Description
string source

The path to an existing file or a BASE64 string.

Returns
Type Description
Image

The graphics image in memory.