[]
        
(Showing Draft Content)

C1.Win.Document.C1Image

C1Image Class

For internal use. Helper class rerpesents the crossplatform image holder in C1Document.

Inheritance
C1Image
Implements
IImage
IMemoryStreamProvided
Namespace: C1.Win.Document
Assembly: C1.Win.Document.10.dll
Syntax
public class C1Image : Object, IImage, IDisposable, IDisposable, IMemoryStreamProvided
Public Class C1Image
    Inherits Object
    Implements IImage, IDisposable, IDisposable, IMemoryStreamProvided

Constructors

Name Description
C1Image(byte[], C1ImageFormat)

Initializes a new instance of the C1Image class.

C1Image(Image)

Initializes a new instance of the C1Image class.

C1Image(Metafile)

Initializes a new instance of the C1Image class.

C1Image(MemoryStream)

Initializes a new instance of the C1Image class.

C1Image(MemoryStream, C1ImageFormat)

Initializes a new instance of the C1Image class.

C1Image(Stream, C1ImageFormat)

Initializes a new instance of the C1Image class.

Fields

Name Description
c_MaxScreenMetafileDPI

The default maximum DPI for the metafile.

Properties

Name Description
Data

Gets the MemoryStream of image data.

Disposed
Empty

Determines if the image data is empty.

ExifProfile
Format

Gets the C1ImageFormat.

Height
HorizontalResolution
Rotation
VerticalResolution
Width

Methods

Name Description
Dispose()

Cleans up C1Image instance.

Dispose(bool)

Releases the unmanaged resources used by the C1Image and optionally releases the managed resources.

Finalize()

Cleans up C1Image instance.

GetData()

Use this method to get the MemoryStream which can be used to create an image in multithreading enviroment.

GetFormat(ImageFormat)

Gets a C1ImageFormat value corresponding to the passed System.Drawing.Imaging.ImageFormat.

GetSize()

Returns size of the image in pixels.

ToGcBitmap(GcBitmap)
ToGcBitmap(bool, out bool)
ToGcBitmap(out bool)
ToGcImage()
ToPngBytes()

Returns byte array of image.