Class CDGFile
CDG File. Implements the IDisposable.
Implements
Inherited Members
Namespace: VisioForge.Core.CDG
Assembly: VisioForge.Core.dll
Syntax
public class CDGFile : IDisposable
Constructors
CDGFile(string)
Initializes a new instance of the CDGFile class.
Declaration
public CDGFile(string cdgFileName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | cdgFileName | Name of the CDG file. |
Fields
CDG_FULL_HEIGHT
The CDG full height.
Declaration
public const int CDG_FULL_HEIGHT = 216
Field Value
| Type | Description |
|---|---|
| int |
CDG_FULL_WIDTH
The CDG full width.
Declaration
public const int CDG_FULL_WIDTH = 300
Field Value
| Type | Description |
|---|---|
| int |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
|
RGBImage(bool)
Gets RGB image.
Declaration
public Image RGBImage(bool makeTransparent = false)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | makeTransparent | if set to |
Returns
| Type | Description |
|---|---|
| Image | System.Drawing.Image. |
SavePNG(string)
Saves the PNG.
Declaration
public void SavePNG(string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | The filename. |
getTotalDuration()
Gets the total duration.
Declaration
public long getTotalDuration()
Returns
| Type | Description |
|---|---|
| long | System.Int64. |
renderAtPosition(long)
Renders at position.
Declaration
public bool renderAtPosition(long ms)
Parameters
| Type | Name | Description |
|---|---|---|
| long | ms | The ms. |
Returns
| Type | Description |
|---|---|
| bool |
|