[]
        
(Showing Draft Content)

C1.Util.SvgRendering.ToImage

ToImage Method

ToImage(Image)

Convert a image to the image in memory.

Declaration
[CLSCompliant(false)]
public static Image ToImage(Image 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)
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)
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)
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)
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)
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.

ToImage(object)

Convert a bitmap object to the image in memory.

Declaration
[CLSCompliant(false)]
[Obsolete]
public static Image ToImage(object source)
Parameters
Type Name Description
object source

The image source.

Returns
Type Description
Image

The graphics image in memory.

Remarks

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.