public override void WriteValue(MapleLib.WzLib.Util.WzBinaryWriter writer) { writer.WriteStringValue("Canvas", 0x73, 0x1B); writer.Write((byte)0); if (properties.Count > 0) { writer.Write((byte)1); WzImageProperty.WritePropertyList(writer, properties); } else { writer.Write((byte)0); } writer.WriteCompressedInt(PngProperty.Width); writer.WriteCompressedInt(PngProperty.Height); writer.WriteCompressedInt(PngProperty.format); writer.Write((byte)PngProperty.format2); writer.Write((Int32)0); byte[] bytes = PngProperty.GetCompressedBytes(false); writer.Write(bytes.Length + 1); writer.Write((byte)0); writer.Write(bytes); }
public override void WriteValue(MapleLib.WzLib.Util.WzBinaryWriter writer) { writer.WriteStringValue("UOL", 0x73, 0x1B); writer.Write((byte)0); writer.WriteStringValue(Value, 0, 1); }
public override void WriteValue(MapleLib.WzLib.Util.WzBinaryWriter writer) { List<IExtended> extendedProps = new List<IExtended>(properties.Count); foreach (IWzImageProperty prop in properties) if (prop is IExtended) extendedProps.Add((IExtended)prop); writer.WriteStringValue("Shape2D#Convex2D", 0x73, 0x1B); writer.WriteCompressedInt(extendedProps.Count); for (int i = 0; i < extendedProps.Count; i++) { properties[i].WriteValue(writer); } }
public override void WriteValue(MapleLib.WzLib.Util.WzBinaryWriter writer) { writer.WriteStringValue("Shape2D#Vector2D", 0x73, 0x1B); writer.WriteCompressedInt(X.Value); writer.WriteCompressedInt(Y.Value); }
public override void WriteValue(MapleLib.WzLib.Util.WzBinaryWriter writer) { writer.WriteStringValue("Property", 0x73, 0x1B); IWzImageProperty.WritePropertyList(writer, properties); }
public override void WriteValue(MapleLib.WzLib.Util.WzBinaryWriter writer) { writer.WriteStringValue("Shape2D#Convex2D", 0x73, 0x1B); writer.WriteCompressedInt(ExtendedProperties.Length); for (int i = 0; i < ExtendedProperties.Length; i++) { ExtendedProperties[i].ExtendedProperty.WriteValue(writer); } }