mirror of
https://github.com/soukoku/ntwain.git
synced 2025-12-01 10:54:08 +08:00
Refactoring xfer logic from twainsession out.
This commit is contained in:
@@ -8,7 +8,7 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
public sealed class CieColor : OpBase
|
||||
{
|
||||
internal CieColor(ITwainStateInternal session) : base(session) { }
|
||||
internal CieColor(ITwainSessionInternal session) : base(session) { }
|
||||
|
||||
/// <summary>
|
||||
/// This operation causes the Source to report the currently active parameters to be used in
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
public sealed class ExtImageInfo : OpBase
|
||||
{
|
||||
internal ExtImageInfo(ITwainStateInternal session) : base(session) { }
|
||||
internal ExtImageInfo(ITwainSessionInternal session) : base(session) { }
|
||||
|
||||
public ReturnCode Get(out TWExtImageInfo info)
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
public sealed class Filter : OpBase
|
||||
{
|
||||
internal Filter(ITwainStateInternal session) : base(session) { }
|
||||
internal Filter(ITwainSessionInternal session) : base(session) { }
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
public sealed class GrayResponse : OpBase
|
||||
{
|
||||
internal GrayResponse(ITwainStateInternal session) : base(session) { }
|
||||
internal GrayResponse(ITwainSessionInternal session) : base(session) { }
|
||||
|
||||
/// <summary>
|
||||
/// The Reset operation causes the Source to use its "identity response curve." The identity
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
public sealed class IccProfile : OpBase
|
||||
{
|
||||
internal IccProfile(ITwainStateInternal session) : base(session) { }
|
||||
internal IccProfile(ITwainSessionInternal session) : base(session) { }
|
||||
|
||||
/// <summary>
|
||||
/// This operation provides the application with the ICC profile associated with the image which is
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
sealed class ImageFileXfer : OpBase
|
||||
{
|
||||
internal ImageFileXfer(ITwainStateInternal session) : base(session) { }
|
||||
internal ImageFileXfer(ITwainSessionInternal session) : base(session) { }
|
||||
|
||||
/// <summary>
|
||||
/// This operation is used to initiate the transfer of an image from the Source to the application via
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
public sealed class ImageInfo : OpBase
|
||||
{
|
||||
internal ImageInfo(ITwainStateInternal session) : base(session) { }
|
||||
internal ImageInfo(ITwainSessionInternal session) : base(session) { }
|
||||
|
||||
public ReturnCode Get(out TWImageInfo info)
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
public sealed class ImageLayout : OpBase
|
||||
{
|
||||
internal ImageLayout(ITwainStateInternal session) : base(session) { }
|
||||
internal ImageLayout(ITwainSessionInternal session) : base(session) { }
|
||||
|
||||
public ReturnCode Get(out TWImageLayout layout)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
sealed class ImageMemFileXfer : OpBase
|
||||
{
|
||||
internal ImageMemFileXfer(ITwainStateInternal session) : base(session) { }
|
||||
internal ImageMemFileXfer(ITwainSessionInternal session) : base(session) { }
|
||||
|
||||
/// <summary>
|
||||
/// This operation is used to initiate the transfer of an image from the Source to the application via
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
sealed class ImageMemXfer : OpBase
|
||||
{
|
||||
internal ImageMemXfer(ITwainStateInternal session) : base(session) { }
|
||||
internal ImageMemXfer(ITwainSessionInternal session) : base(session) { }
|
||||
|
||||
/// <summary>
|
||||
/// This operation is used to initiate the transfer of an image from the Source to the application via
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
sealed class ImageNativeXfer : OpBase
|
||||
{
|
||||
internal ImageNativeXfer(ITwainStateInternal session) : base(session) { }
|
||||
internal ImageNativeXfer(ITwainSessionInternal session) : base(session) { }
|
||||
|
||||
/// <summary>
|
||||
/// Causes the transfer of an image’s data from the Source to the application, via the Native transfer
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
public sealed class JpegCompression : OpBase
|
||||
{
|
||||
internal JpegCompression(ITwainStateInternal session) : base(session) { }
|
||||
internal JpegCompression(ITwainSessionInternal session) : base(session) { }
|
||||
|
||||
/// <summary>
|
||||
/// Causes the Source to return the parameters that will be used during the compression of data
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
public sealed class Palette8 : OpBase
|
||||
{
|
||||
internal Palette8(ITwainStateInternal session) : base(session) { }
|
||||
internal Palette8(ITwainSessionInternal session) : base(session) { }
|
||||
|
||||
/// <summary>
|
||||
/// This operation causes the Source to report its current palette information.
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
public sealed class RgbResponse : OpBase
|
||||
{
|
||||
internal RgbResponse(ITwainStateInternal session) : base(session) { }
|
||||
internal RgbResponse(ITwainSessionInternal session) : base(session) { }
|
||||
|
||||
/// <summary>
|
||||
/// Causes the Source to use its "identity" response curves for future RGB transfers. The identity
|
||||
|
||||
@@ -8,8 +8,8 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
public sealed class DGImage
|
||||
{
|
||||
ITwainStateInternal _session;
|
||||
internal DGImage(ITwainStateInternal session)
|
||||
ITwainSessionInternal _session;
|
||||
internal DGImage(ITwainSessionInternal session)
|
||||
{
|
||||
if (session == null) { throw new ArgumentNullException("session"); }
|
||||
_session = session;
|
||||
|
||||
Reference in New Issue
Block a user