This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
falcon4:file_formats:rsc_idx_fileformat [2009-02-07 00:54] lightning |
falcon4:file_formats:rsc_idx_fileformat [2009-02-07 07:02] (current) |
||
---|---|---|---|
Line 85: | Line 85: | ||
===== Example Code in C# ===== | ===== Example Code in C# ===== | ||
The following C# class (F4Resources.F4ResourceBundleReader) illustrates how to read a Falcon Resource Bundle (.RSC file + .IDX file) at a low level. It's not optimized for speed (i.e. it uses SetPixel for setting image colors and it uses Array.Copy for copying raw binary data instead of the faster native memory bit-to-block transfer techniques), but it is more illustrative, as a result. | The following C# class (F4Resources.F4ResourceBundleReader) illustrates how to read a Falcon Resource Bundle (.RSC file + .IDX file) at a low level. It's not optimized for speed (i.e. it uses SetPixel for setting image colors and it uses Array.Copy for copying raw binary data instead of the faster native memory bit-to-block transfer techniques), but it is more illustrative, as a result. | ||
- | <code language="c#"> | + | <code cpp> |
using System; | using System; | ||
using System.Collections.Generic; | using System.Collections.Generic; | ||
Line 446: | Line 446: | ||
The next chunk of C# example code shows the above class being used in a Windows Forms application, and illustrates how one might use the class presented in the previous example. | The next chunk of C# example code shows the above class being used in a Windows Forms application, and illustrates how one might use the class presented in the previous example. | ||
- | <code language="c#"> | + | <code cpp> |
using System; | using System; | ||
using System.Drawing; | using System.Drawing; |