C# Class ScreenToGif.Util.Other

Other helper methods.
Show file Open project: dbremner/ScreenToGif

Public Methods

Method Description
CopyList ( this target ) : List
CopyToEncode ( this target ) : List

Copies the List and saves the images in another folder.

Dpi ( this window ) : double

Gets the DPI of the current window.

FileName ( string fileType, int frameCount ) : string

Generates a file name.

Gcd ( double a, double b ) : double

The Greater Common Divisor.

GetTextResource ( string resourceName ) : string
IsWin8OrHigher ( ) : bool
Scale ( this window ) : double

Gets the scale of the current window.

TransformToScreen ( Point point, Visual relativeTo ) : Point
Yoyo ( List list ) : List

Makes a Yo-yo efect with the given List (List + Reverted List)

Private Methods

Method Description
IncrementalFileName ( string directory, string fileType ) : string

Searchs for a valid file name.

Method Details

CopyList() public static method

public static CopyList ( this target ) : List
target this
return List

CopyToEncode() public static method

Copies the List and saves the images in another folder.
public static CopyToEncode ( this target ) : List
target this The List to copy
return List

Dpi() public static method

Gets the DPI of the current window.
public static Dpi ( this window ) : double
window this The Window.
return double

FileName() public static method

Generates a file name.
public static FileName ( string fileType, int frameCount ) : string
fileType string The desired output file type.
frameCount int The number of frames of the recording.
return string

Gcd() public static method

The Greater Common Divisor.
public static Gcd ( double a, double b ) : double
a double Size a
b double Size b
return double

GetTextResource() public static method

public static GetTextResource ( string resourceName ) : string
resourceName string
return string

IsWin8OrHigher() public static method

public static IsWin8OrHigher ( ) : bool
return bool

Scale() public static method

Gets the scale of the current window.
public static Scale ( this window ) : double
window this The Window.
return double

TransformToScreen() public static method

public static TransformToScreen ( Point point, Visual relativeTo ) : Point
point Point
relativeTo Visual
return Point

Yoyo() public static method

Makes a Yo-yo efect with the given List (List + Reverted List)
public static Yoyo ( List list ) : List
list List The list to apply the efect
return List