Pegasus Class Library Help
Assembly: PegasusClassLibrary (in PegasusClassLibrary.dll) Version: 4.0.0.0 (4.0.12.0)
Gets or sets the device offset.
Namespace:
Pegasus.LibraryAssembly: PegasusClassLibrary (in PegasusClassLibrary.dll) Version: 4.0.0.0 (4.0.12.0)
Syntax
| C# |
|---|
public Point DeviceOffset { get; set; } |
| Visual Basic (Declaration) |
|---|
Public Property DeviceOffset As Point |
| Visual C++ |
|---|
public: property Point DeviceOffset { Point get (); void set (Point value); } |
Field Value
The device offset from the page origin.
Remarks
This property is relevant only for devices which support Orientation.
See OrientationSupport for details.
The device coordinate system origin is located at the middle-top of the page.
When the device located at the top of the page, there is still little shift
of the real device origin, and the middle-top point of the page. This shift
arize from the physical body of the pen receiver.
The device offset value is the offset of the phisical device origin from the
theoretical origin point of the page.
The type of the offset is Point.Note!
The X and Y Point members must be in the range 0-255.
There are few predefined settings for the DeviceOffset, one for each
DevicePosition state. When changing the value of the
DeviceOffset, the DevicePosition value is changed automatically
to Custom.
The DeviceOffset value should be changed only if the receiver location is
not one of its predefined positions, or to fine tuning the accuracy of the
received values.Changing DevicePosition to any other predefined values, will
reset the DeviceOffset back to it's predefined value.Note!
There is no need to change the DevicePosition to the
Custom value. Attempting to
do so, will throw an exception.