Class CDGFile
- Namespace
- VisioForge.Core.CDG
- Assembly
- VisioForge.Core.dll
CDG File. Implements the IDisposable.
public class CDGFile : IDisposableInheritance
Implements
Inherited Members
Constructors
CDGFile(string)
Initializes a new instance of the VisioForge.Core.CDG.CDGFile class.
public CDGFile(string cdgFileName)Parameters
cdgFileNamestring-
Name of the CDG file.
Fields
CDG_FULL_HEIGHT
The CDG full height.
public const int CDG_FULL_HEIGHT = 216Field Value
CDG_FULL_WIDTH
The CDG full width.
public const int CDG_FULL_WIDTH = 300Field Value
Methods
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)Parameters
disposingbool-
trueto release both managed and unmanaged resources;falseto release only unmanaged resources.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()RGBImage(bool)
Gets RGB image.
public Image RGBImage(bool makeTransparent = false)Parameters
makeTransparentbool-
if set to
true[make transparent].
Returns
- Image
-
System.Drawing.Image.
SavePNG(string)
Saves the PNG.
public void SavePNG(string filename)Parameters
filenamestring-
The filename.
getTotalDuration()
Gets the total duration.
public long getTotalDuration()Returns
- long
-
System.Int64.
renderAtPosition(long)
Renders at position.
public bool renderAtPosition(long ms)Parameters
mslong-
The ms.
Returns
- bool
-
trueif successfull,falseotherwise.