 |
Jypeli
9
The simple game programming library
|
Siirry tämän tiedoston dokumentaatioon.
35 public int Width {
get;
private set; }
40 public int Height {
get;
private set; }
65 if ( width <= 0 || height <= 0 )
66 throw new ArgumentException(
"Width and height must be positive integers" );
77 public override bool Equals(
object obj )
92 if ( ReferenceEquals(a,
null) )
93 return ReferenceEquals( b,
null );
94 if ( ReferenceEquals( b,
null ) )
102 if ( ReferenceEquals( a,
null ) )
103 return !ReferenceEquals( b,
null );
104 if ( ReferenceEquals( b,
null ) )
override int GetHashCode()
static bool operator==(DisplayResolution a, DisplayResolution b)
int Height
Näytön korkeus pikseleinä.
bool Equals(DisplayResolution other)
static bool operator!=(DisplayResolution a, DisplayResolution b)
static readonly DisplayResolution HD720
HD720-tarkkuus (720p, 1280 x 720). Ei toimi kaikilla puhelimilla.
override bool Equals(object obj)
int PixelCount
Näytön pikselien määrä.
DisplayResolution(int width, int height)
Alustaa uuden näyttöresoluution.
static readonly DisplayResolution Large
Suuri tarkkuus (WVGA, 800 x 480). Oletus WP8:lla.
int Width
Näytön leveys pikseleinä.
static readonly DisplayResolution Small
Pieni tarkkuus (WVGA, 400 x 240). WP7-yhteensopivuustila, ei varsinaisesti paranna suorituskykyä.
static readonly DisplayResolution HD1080
HD1080-tarkkuus (1080p, 1920 x 1080). Ei toimi kaikilla puhelimilla.
double AspectRatio
Näytön kuvasuhde.