예제 #1
0
 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));
 }
예제 #2
0
 public FrameModel(Sequence.Frame frame)
 {
     this.frame = frame;
 }