Class ScreenConfig
A screen configuration.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class ScreenConfig : MediaConfig<ScreenConfig>
Constructors
ScreenConfig(Point, Size, Double)
Initializes a new instance of the Screen
Declaration
public ScreenConfig(Point origin, Size size, double frameRate)
Parameters
Type | Name | Description |
---|---|---|
Point | origin | The region origin. |
Size | size | The region size. |
System. |
frameRate | The frame rate. |
ScreenConfig(Point, Size, Double, Int32)
Initializes a new instance of the Screen
Declaration
public ScreenConfig(Point origin, Size size, double frameRate, int clockRate)
Parameters
Type | Name | Description |
---|---|---|
Point | origin | The region origin. |
Size | size | The region size. |
System. |
frameRate | The frame rate. |
System. |
clockRate | The clock rate. |
ScreenConfig(Rectangle, Double)
Initializes a new instance of the Screen
Declaration
public ScreenConfig(Rectangle region, double frameRate)
Parameters
Type | Name | Description |
---|---|---|
Rectangle | region | The region. |
System. |
frameRate | The frame rate. |
ScreenConfig(Rectangle, Double, Int32)
Initializes a new instance of the Screen
Declaration
public ScreenConfig(Rectangle region, double frameRate, int clockRate)
Parameters
Type | Name | Description |
---|---|---|
Rectangle | region | The region. |
System. |
frameRate | The frame rate. |
System. |
clockRate | The clock rate. |
ScreenConfig(Int32, Int32, Int32, Int32, Double)
Initializes a new instance of the Screen
Declaration
public ScreenConfig(int x, int y, int width, int height, double frameRate)
Parameters
Type | Name | Description |
---|---|---|
System. |
x | The region origin X coordinate. |
System. |
y | The region origin Y coordinate. |
System. |
width | The region size width. |
System. |
height | The region size height. |
System. |
frameRate | The frame rate. |
ScreenConfig(Int32, Int32, Int32, Int32, Double, Int32)
Initializes a new instance of the Screen
Declaration
public ScreenConfig(int x, int y, int width, int height, double frameRate, int clockRate)
Parameters
Type | Name | Description |
---|---|---|
System. |
x | The region origin X coordinate. |
System. |
y | The region origin Y coordinate. |
System. |
width | The region size width. |
System. |
height | The region size height. |
System. |
frameRate | The frame rate. |
System. |
clockRate | The clock rate. |
Properties
FrameRate
Gets or sets the frame-rate.
Declaration
public double FrameRate { get; set; }
Property Value
Type | Description |
---|---|
System. |
Height
Gets the region size height.
Declaration
public int Height { get; }
Property Value
Type | Description |
---|---|
System. |
Origin
Gets or sets the region origin.
Declaration
public Point Origin { get; set; }
Property Value
Type | Description |
---|---|
Point |
Region
Gets or sets the region.
Declaration
public Rectangle Region { get; set; }
Property Value
Type | Description |
---|---|
Rectangle |
Size
Gets or sets the region size.
Declaration
public Size Size { get; set; }
Property Value
Type | Description |
---|---|
Size |
Width
Gets the region size width.
Declaration
public int Width { get; }
Property Value
Type | Description |
---|---|
System. |
X
Gets the region origin X coordinate.
Declaration
public int X { get; }
Property Value
Type | Description |
---|---|
System. |
Y
Gets the region origin Y coordinate.
Declaration
public int Y { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
IsEquivalent(ScreenConfig)
Determines whether the specified configuration is equivalent.
Declaration
public override bool IsEquivalent(ScreenConfig config)
Parameters
Type | Name | Description |
---|---|---|
Screen |
config | The configuration. |
Returns
Type | Description |
---|---|
System. |
Overrides
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |