private void DrawFrame(Context context, Sequence.Frame frame) { drawing.DrawSurface(surface, Rectangle.FromLTRB(frame.Left, frame.Top, frame.Right, frame.Bottom), RectangleF.FromLTRB(context.PositionX + context.Left, context.PositionY + context.Top, context.PositionX + context.Right, context.PositionY + context.Bottom), Multiply(ConvertColor(frame.ColorLeft), context.Color), Multiply(ConvertColor(frame.ColorTop), context.Color), Multiply(ConvertColor(frame.ColorRight), context.Color), Multiply(ConvertColor(frame.ColorBottom), context.Color)); }
public FrameModel(Sequence.Frame frame) { this.frame = frame; }