本文整理汇总了C#中DDW.Swf.SwfWriter.AppendUI16方法的典型用法代码示例。如果您正苦于以下问题:C# SwfWriter.AppendUI16方法的具体用法?C# SwfWriter.AppendUI16怎么用?C# SwfWriter.AppendUI16使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DDW.Swf.SwfWriter
的用法示例。
在下文中一共展示了SwfWriter.AppendUI16方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ToSwf
public void ToSwf(SwfWriter w)
{
w.AppendByte((byte)ActionKind.WaitForFrame);
w.AppendUI16(Length - 3); // don't incude def byte and len
w.AppendUI16((uint)Frame);
w.AppendByte((byte)SkipCount);
}
示例2: ToSwf
public void ToSwf(SwfWriter w)
{
uint start = (uint)w.Position;
w.AppendTagIDAndLength(this.TagType, 0, true);
w.AppendUI16((uint)Exports.Count);
foreach (uint index in Exports.Keys)
{
w.AppendUI16(index);
w.AppendString(Exports[index]);
}
w.ResetLongTagLength(this.TagType, start, true);
}
示例3: ToSwf
public void ToSwf(SwfWriter w)
{
uint start = (uint)w.Position;
w.AppendTagIDAndLength(this.TagType, 0, true);
w.AppendUI16(SpriteId);
w.AppendUI16(FrameCount);
for (int i = 0; i < ControlTags.Count; i++)
{
ControlTags[i].ToSwf(w);
}
// note: Flash always writes this as a long tag.
w.ResetLongTagLength(this.TagType, start, true);
}
示例4: ToSwf
public void ToSwf(SwfWriter w)
{
w.AppendByte((byte)ActionKind.If);
w.AppendUI16(Length - 3); // don't incude def byte and len
w.AppendInt16(BranchOffset);
}
示例5: ToSwf
public void ToSwf(SwfWriter w)
{
w.AppendByte((byte)ActionKind.GoToLabel);
w.AppendUI16(Length - 3); // don't incude def byte and len
w.AppendString(Label);
}
示例6: ToSwf
public void ToSwf(SwfWriter w)
{
w.AppendByte((byte)ActionKind.StoreRegister);
w.AppendUI16(Length - 3); // don't incude this part
w.AppendByte((byte)Register);
}
示例7: ToSwf
public void ToSwf(SwfWriter w)
{
w.AppendByte((byte)ActionKind.SetTarget);
w.AppendUI16(Length - 3); // don't incude def byte and len
w.AppendString(TargetName);
}
示例8: ToSwf
public virtual void ToSwf(SwfWriter w)
{
uint start = (uint)w.Position;
w.AppendTagIDAndLength(this.TagType, 0, true);
uint len = (uint)Ids.Length;
w.AppendUI16(len);
for (int i = 0; i < len; i++)
{
w.AppendUI16(Ids[i]);
w.AppendString(Names[i]);
}
w.ResetLongTagLength(this.TagType, start, true);
}
示例9: ToSwf
public void ToSwf(SwfWriter w)
{
w.AppendByte((byte)ActionKind.GetURL);
w.AppendUI16(Length - 3);// don't incude this part
w.AppendString(UrlString);
w.AppendString(TargetString);
}
示例10: ToSwf
public void ToSwf(SwfWriter w)
{
uint start = (uint)w.Position;
w.AppendTagIDAndLength(this.TagType, 0, true);
w.AppendUI16(SampleCount);
w.AppendBytes(SoundData);
w.ResetLongTagLength(this.TagType, start);
}
示例11: ToSwf
public void ToSwf(SwfWriter w)
{
uint start = (uint)w.Position;
w.AppendTagIDAndLength(this.TagType, 0, true);
w.AppendUI16(ButtonId);
ButtonColorTransform.ToSwf(w);
w.ResetLongTagLength(this.TagType, start, true);
}
示例12: ToSwf
public void ToSwf(SwfWriter w, bool isSwf6Plus)
{
w.AppendUI16(0); // reserved
w.AppendBits((uint)ClipEvents, 32);
for (int i = 0; i < ClipActionRecords.Count; i++)
{
ClipActionRecords[i].ToSwf(w, isSwf6Plus);
}
}
示例13: ToSwf
public void ToSwf(SwfWriter w)
{
uint start = (uint)w.Position;
w.AppendTagIDAndLength(this.TagType, 0, true); // rewrite len after tag
w.AppendUI16(this.ShapeId);
this.ShapeBounds.ToSwf(w);
this.Shapes.ToSwf(w, ShapeType.DefineShape3);
w.Align();
w.ResetLongTagLength(this.TagType, start, true);
}
示例14: ToSwf
public void ToSwf(SwfWriter w, bool useAlpha)
{
w.AppendUI16(this.Width);
w.AppendByte(Color.R);
w.AppendByte(Color.G);
w.AppendByte(Color.B);
if (useAlpha)
{
w.AppendByte(Color.A);
}
}
示例15: ToSwf
public void ToSwf(SwfWriter w)
{
uint len = 12;
w.AppendTagIDAndLength(this.TagType, len, false);
w.AppendUI16(TextId);
w.AppendBits(UseFlashType, 2);
w.AppendBits(GridFit, 3);
w.AppendBits(0, 3); // reserved
w.Align();
w.AppendFixedNBits(Thickness, 32);
w.AppendFixedNBits(Sharpness, 32);
w.AppendByte(0); // reserved
}