mirror of
https://github.com/soukoku/ntwain.git
synced 2025-12-01 10:54:08 +08:00
Some text and eximageinfo correctness update.
This commit is contained in:
@@ -10,6 +10,13 @@ namespace NTwain.Triplets
|
||||
{
|
||||
internal ImageLayout(ITwainSessionInternal session) : base(session) { }
|
||||
|
||||
/// <summary>
|
||||
/// Gets both the size and placement of the image on the scanner. The
|
||||
/// coordinates on the scanner and the extents of the image are expressed in the unit of measure
|
||||
/// currently negotiated for ICAP_UNITS (default is inches).
|
||||
/// </summary>
|
||||
/// <param name="layout">The layout.</param>
|
||||
/// <returns></returns>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "0#")]
|
||||
public ReturnCode Get(out TWImageLayout layout)
|
||||
{
|
||||
@@ -18,6 +25,14 @@ namespace NTwain.Triplets
|
||||
return Dsm.DsmEntry(Session.AppId, Session.CurrentSource.Identity, Message.Get, layout);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// returns the default information on the layout of an image. This is the size and
|
||||
/// position of the image that will be acquired from the Source if the acquisition is started with the
|
||||
/// Source (and the device it is controlling) in its power-on state (for instance, most flatbed scanners
|
||||
/// will capture the entire bed).
|
||||
/// </summary>
|
||||
/// <param name="layout">The layout.</param>
|
||||
/// <returns></returns>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "0#")]
|
||||
public ReturnCode GetDefault(out TWImageLayout layout)
|
||||
{
|
||||
@@ -26,6 +41,11 @@ namespace NTwain.Triplets
|
||||
return Dsm.DsmEntry(Session.AppId, Session.CurrentSource.Identity, Message.GetDefault, layout);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This operation sets the image layout information for the next transfer to its default settings.
|
||||
/// </summary>
|
||||
/// <param name="layout">The layout.</param>
|
||||
/// <returns></returns>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "0#")]
|
||||
public ReturnCode Reset(out TWImageLayout layout)
|
||||
{
|
||||
@@ -34,6 +54,15 @@ namespace NTwain.Triplets
|
||||
return Dsm.DsmEntry(Session.AppId, Session.CurrentSource.Identity, Message.Reset, layout);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This operation sets the layout for the next image transfer. This allows the application to specify
|
||||
/// the physical area to be acquired during the next image transfer (for instance, a frame-based
|
||||
/// application would pass to the Source the size of the frame the user selected within the
|
||||
/// application—the helpful Source would present a selection region already sized to match the
|
||||
/// layout frame size).
|
||||
/// </summary>
|
||||
/// <param name="layout">The layout.</param>
|
||||
/// <returns></returns>
|
||||
public ReturnCode Set(TWImageLayout layout)
|
||||
{
|
||||
Session.VerifyState(4, 4, DataGroups.Image, DataArgumentType.ImageLayout, Message.Set);
|
||||
|
||||
Reference in New Issue
Block a user