Skip to content

urbaraban/ILDA.net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ILDA.net

I apologize, but my spoken English is pretty bad. I use a translator for this documentation.

This .net6 library allows you to read, edit, and write ILDA (International Laser Display Association) format in all version.

ILDA formats according to the documentation:

  • 0 = 3D, palette;
  • 1 = 2D, palette;
  • (2 = palette header);
  • (3 = deprecated);
  • 4 = 3D, RGB;
  • 5 = 2D, RGB

Features

  • Open, edit and save *.ild files
  • Add or remove frames, color and points

Example

ILDAViewer.net

How to use

IldaFile file = IldaFile.Open("Folder/File.ild");

or

IldaFile file = IldaFile.Parse(byte[]);

If you want to create a file, then don't deny yourself anything.

For example

IldaFile file = new IldaFile();
file.Palette = IldaPalette.GetDefaultPalette();
IldaFrame frame = new IldaFrame(byte Version);
for (int i = 0; i < 100; i += 1)
{
    IldaPoint ildaPoint = new IldaPoint(
        (short)(random.Next(0, short.MaxValue) - half),
        (short)(random.Next(0, short.MaxValue) - half),
        (short)(random.Next(0, short.MaxValue) - half),
        false);

    ildaPoint.PalIndex = (byte)random.Next(0, pal_count - 1);
    frame.Add(ildaPoint);
}
file.Add(frame);
file.Save("Folder/File.ild", false);

About

.net 6 library for ILDA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages