Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Defines the integer size of a rectangular or 2D region in terms of width and height in pixels.

Namespace: Visual3D
Assembly: Visual3D (in Visual3D.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

      
 C#  Visual Basic 
[SerializableAttribute]
public struct PixelSize : IEquatable<PixelSize>
<SerializableAttribute> _
Public Structure PixelSize _
	Implements IEquatable(Of PixelSize)

Members

               
 All Members  Constructors   Fields   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
PixelSize(Point)
Initializes a new instance of the PixelSize class
PixelSize(Size)
Initializes a new instance of the PixelSize class
PixelSize(Int32, Int32)
Initializes a new instance of the PixelSize class
PixelSize(Single, Single, Int32, Int32)
Initializes a new instance of the PixelSize class
_1024x768
XGA
_1280x1024
SXGA
_1280x720
720p HD TV
_1280x800
WXGA
_1366x768
WXGA TV
_1400x1050
SXGA+
_1440x900
WSXGA or WXGA+
_1600x1200
UXGA
_1680x1050
WSXGA+
_1920x1080
1080p HD TV
_1920x1200
WUXGA
_640x480
VGA or 480p TV
_800x600
SVGA
Addition(PixelSize, PixelSize)
Add 2 Point structs.
Area
DefaultScreenResolution
Default screen resolution, which defaults to 1280x800 WXGA.
Equality(PixelSize, PixelSize)
Check if 2 Point structs are equal.
Equals(Object) (Overrides ValueType..::..Equals(Object).)
Equals(PixelSize)
FromScaledScreenSize(ScreenSize, PixelSize)
FromScaledScreenSize(ScreenSize, Int32, Int32)
GetHashCode()()()() (Overrides ValueType..::..GetHashCode()()()().)
Height
Inequality(PixelSize, PixelSize)
Check if 2 Point structs are not equal.
Invalid
IsNotValid
IsValid
IsZero
MaxDimension
One
Subtraction(PixelSize, PixelSize)
Subtract one Point from another.
ToConstrainedMax(PixelSize)
ToConstrainedMax(Int32, Int32)
ToConstrainedMin(PixelSize)
ToConstrainedMin(Int32, Int32)
ToConstrainedSize(PixelSize, PixelSize)
ToConstrainedSize(PixelSize, PixelSize, PixelSize)
ToConstrainedSize(Int32, Int32, Int32, Int32)
ToDrawingSize()()()()
ToRectangle(Int32, Int32)
ToScreenPoint()()()()
ToScreenRectangle(Int32, Int32, Int32, Int32)
ToScreenSize(Int32, Int32)
ToString()()()() (Overrides ValueType..::..ToString()()()().)
ToVector2()()()()
ToVector3()()()()
Width
Zero

See Also