public void Write(IFFWriter iff) { iff.Push(Chunks.Name); iff.Write(Name); iff.Pop(); iff.Push(Chunks.Attributes); iff.WriteInt32(Version); iff.WriteInt32(Width); iff.WriteInt32(Height); iff.WriteInt32(DataSize); iff.Pop(); iff.Push(Chunks.Data); iff.Write(Data); iff.Pop(); }
public void Write(IFFWriter iff) { iff.Write(Encoding.Unicode.GetBytes(new[] { Character })); iff.WriteInt32(ImageIndex); iff.WriteInt32(LeftMargin); iff.WriteInt32(TopMargin); iff.WriteInt32(Width); iff.WriteInt32(Height); iff.Write(BitmapLeft); iff.Write(BitmapRight); iff.Write(AdvanceX); iff.Write(BitmapTop); iff.Write(Baseline); iff.Write(BitmapBottom); iff.Write(Zero); }
public void Write(IFFWriter iff) { iff.Push(Chunks.Name); iff.Write(Name); iff.Pop(); iff.Push(Chunks.Attributes); iff.Write(Attributes); iff.Pop(); foreach (var image in _images) { iff.Push(Chunks.Image, ChunkType.Form); image.Write(iff); iff.Pop(); } foreach (var glyph in _glyphs) { iff.Push(Chunks.Glyph); glyph.Write(iff); iff.Pop(); } }