C# Class LongoMatch.Drawing.Utils

Exibir arquivo Open project: GNOME/longomatch

Public Methods

Method Description
CanvasFromDrawableObject ( IBlackboardObject drawable ) : ICanvasSelectableObject
ColorForRow ( int row ) : Color
PosToTime ( Point p, double secondsPerPixel ) : Time
RenderFrameDrawing ( IDrawingToolkit tk, int width, int height, FrameDrawing fd ) : Image
RenderFrameDrawingToImage ( IDrawingToolkit tk, Image image, FrameDrawing fd ) : Image
Round ( double n, int multiple ) : double
RoundDown ( double n, int multiple ) : double
RoundUp ( double n, int multiple ) : double
TimeToPos ( Time time, double secondsPerPixel ) : double
ToUserCoords ( Point p, Point offset, double scaleX, double scaleY ) : Point

Protected Methods

Method Description
RenderFrameDrawing ( IDrawingToolkit tk, Area area, FrameDrawing fd, Image image ) : Image

Method Details

CanvasFromDrawableObject() public static method

public static CanvasFromDrawableObject ( IBlackboardObject drawable ) : ICanvasSelectableObject
drawable IBlackboardObject
return ICanvasSelectableObject

ColorForRow() public static method

public static ColorForRow ( int row ) : Color
row int
return Color

PosToTime() public static method

public static PosToTime ( Point p, double secondsPerPixel ) : Time
p Point
secondsPerPixel double
return LongoMatch.Core.Store.Time

RenderFrameDrawing() protected static method

protected static RenderFrameDrawing ( IDrawingToolkit tk, Area area, FrameDrawing fd, Image image ) : Image
tk IDrawingToolkit
area LongoMatch.Core.Common.Area
fd LongoMatch.Core.Store.FrameDrawing
image Image
return Image

RenderFrameDrawing() public static method

public static RenderFrameDrawing ( IDrawingToolkit tk, int width, int height, FrameDrawing fd ) : Image
tk IDrawingToolkit
width int
height int
fd LongoMatch.Core.Store.FrameDrawing
return Image

RenderFrameDrawingToImage() public static method

public static RenderFrameDrawingToImage ( IDrawingToolkit tk, Image image, FrameDrawing fd ) : Image
tk IDrawingToolkit
image Image
fd LongoMatch.Core.Store.FrameDrawing
return Image

Round() public static method

public static Round ( double n, int multiple ) : double
n double
multiple int
return double

RoundDown() public static method

public static RoundDown ( double n, int multiple ) : double
n double
multiple int
return double

RoundUp() public static method

public static RoundUp ( double n, int multiple ) : double
n double
multiple int
return double

TimeToPos() public static method

public static TimeToPos ( Time time, double secondsPerPixel ) : double
time LongoMatch.Core.Store.Time
secondsPerPixel double
return double

ToUserCoords() public static method

public static ToUserCoords ( Point p, Point offset, double scaleX, double scaleY ) : Point
p Point
offset Point
scaleX double
scaleY double
return Point