public override void Load(SwfStream stream, uint length, byte version) { CharacterID = stream.ReadUShort(); ShapeBounds = stream.ReadRectangle(); EdgeBounds = stream.ReadRectangle(); byte res = stream.ReadByte(); UsesFillWindingRule = version >= 10 && (res & 4) != 0; UsesNonScalingStrokes = (res & 2) != 0; UsesScalingStrokes = (res & 1) != 0; Shape = new Shape(ShapeInfo.ReadShape(stream, true, true, true, true), false); }
public virtual void Load(SwfStream stream, uint length, byte version) { CharacterID = stream.ReadUShort(); Bounds = stream.ReadRectangle(); Matrix = stream.ReadMatrix(); if (CharacterID == 347) { } byte gBits = stream.ReadByte(); byte aBits = stream.ReadByte(); List<TextRecord> recs = new List<TextRecord>(); while (true) { var rec = new TextRecord(stream, HasAlpha, gBits, aBits); if (rec.EndRecord) break; recs.Add(rec); } TextRecords = recs.ToArray(); }
public void Load(SwfStream stream, uint length, byte version) { CharacterID = stream.ReadUShort(); Splitter = stream.ReadRectangle(); }
public virtual void Load(SwfStream stream, uint length, byte version) { CharacterID = stream.ReadUShort(); Bounds = stream.ReadRectangle(); Flags = (EditTextFlags)stream.ReadUShort(); if ((Flags & EditTextFlags.HasFont) != 0) FontID = stream.ReadUShort(); if ((Flags & EditTextFlags.HasFontClass) != 0) FontClass = stream.ReadString(); if ((Flags & EditTextFlags.HasFont) != 0) FontHeight = stream.ReadUShort(); TextColor = ((Flags & EditTextFlags.HasTextColor) != 0) ? stream.ReadRGBA() : (VGColor)Color.Black; MaxLength = ((Flags & EditTextFlags.HasMaxLength) != 0) ? stream.ReadUShort() : ushort.MaxValue; if ((Flags & EditTextFlags.HasLayout) != 0) { TextAlign = (Align)stream.ReadByte(); LeftMargin = stream.ReadUShort(); RightMargin = stream.ReadUShort(); Indent = stream.ReadUShort(); Leading = stream.ReadShort(); } Variable = stream.ReadString(); InitialText = ((Flags & EditTextFlags.HasText) != 0) ? stream.ReadString() : string.Empty; }
public virtual void Load(SwfStream stream, uint length, byte version) { CharacterID = stream.ReadUShort(); ShapeBounds = stream.ReadRectangle(); Shape = new Shape(ShapeInfo.ReadShape(stream, false, false, true, false), false); }