From 7e66da40166672f7d0bc993ed797592a5f4721fc Mon Sep 17 00:00:00 2001 From: soukoku Date: Tue, 15 Apr 2014 19:54:12 -0400 Subject: [PATCH] Removed unnecessary set accessors from some types. --- NTwain/Data/TypesExtended.cs | 41 ++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/NTwain/Data/TypesExtended.cs b/NTwain/Data/TypesExtended.cs index bba6977..b270121 100644 --- a/NTwain/Data/TypesExtended.cs +++ b/NTwain/Data/TypesExtended.cs @@ -1008,59 +1008,58 @@ namespace NTwain.Data /// /// Defines the original color space that was transformed into CIE XYZ. /// This value is not set-able by the application. - /// Application should write into this on a set. /// - public ushort ColorSpace { get { return _colorSpace; } set { _colorSpace = value; } } + public ushort ColorSpace { get { return _colorSpace; } } /// /// Used to indicate which data byte is taken first. If zero, then high byte is /// first. If non-zero, then low byte is first. /// - public short LowEndian { get { return _lowEndian; } set { _lowEndian = value; } } + public short LowEndian { get { return _lowEndian; } } /// /// If non-zero then color data is device-dependent and only ColorSpace is /// valid in this structure. /// - public short DeviceDependent { get { return _deviceDependent; } set { _deviceDependent = value; } } + public short DeviceDependent { get { return _deviceDependent; } } /// /// Version of the color space descriptor specification used to define the /// transform data. The current version is zero. /// - public int VersionNumber { get { return _versionNumber; } set { _versionNumber = value; } } + public int VersionNumber { get { return _versionNumber; } } /// /// Describes parametrics for the first stage transformation of the Postscript /// Level 2 CIE color space transform process. /// - public TWTransformStage StageABC { get { return _stageABC; } set { _stageABC = value; } } + public TWTransformStage StageABC { get { return _stageABC; } } /// /// Describes parametrics for the first stage transformation of the Postscript /// Level 2 CIE color space transform process. /// - public TWTransformStage StageLMN { get { return _stageLMN; } set { _stageLMN = value; } } + public TWTransformStage StageLMN { get { return _stageLMN; } } /// /// Values that specify the CIE 1931 (XYZ space) tri-stimulus value of the /// diffused white point. /// - public TWCiePoint WhitePoint { get { return _whitePoint; } set { _whitePoint = value; } } + public TWCiePoint WhitePoint { get { return _whitePoint; } } /// /// Values that specify the CIE 1931 (XYZ space) tri-stimulus value of the /// diffused black point. /// - public TWCiePoint BlackPoint { get { return _blackPoint; } set { _blackPoint = value; } } + public TWCiePoint BlackPoint { get { return _blackPoint; } } /// /// Values that specify the CIE 1931 (XYZ space) tri-stimulus value of inkless /// "paper" from which the image was acquired. /// - public TWCiePoint WhitePaper { get { return _whitePaper; } set { _whitePaper = value; } } + public TWCiePoint WhitePaper { get { return _whitePaper; } } /// /// Values that specify the CIE 1931 (XYZ space) tri-stimulus value of solid /// black ink on the "paper" from which the image was acquired. /// - public TWCiePoint BlackInk { get { return _blackInk; } set { _blackInk = value; } } + public TWCiePoint BlackInk { get { return _blackInk; } } /// /// Optional table look-up values used by the decode function. Samples /// are ordered sequentially and end-to-end as A, B, C, L, M, and N. /// - public TWFix32[] Samples { get { return _samples; } set { _samples = value; } } + public TWFix32[] Samples { get { return _samples; } } } /// @@ -1873,49 +1872,49 @@ namespace NTwain.Data /// /// Describes the form of the acquired data being passed from the Source to the application. /// - public partial class TWImageMemXfer + partial class TWImageMemXfer { /// /// The compression method used to process the data being transferred. /// - public Compression Compression { get { return (Compression)_compression; } set { _compression = (ushort)value; } } + public Compression Compression { get { return (Compression)_compression; } } /// /// The number of uncompressed bytes in each row of the piece of the image /// being described in this buffer. /// - public uint BytesPerRow { get { return _bytesPerRow; } set { _bytesPerRow = value; } } + public uint BytesPerRow { get { return _bytesPerRow; } } /// /// The number of uncompressed columns (in pixels) in this buffer. /// - public uint Columns { get { return _columns; } set { _columns = value; } } + public uint Columns { get { return _columns; } } /// /// The number or uncompressed rows (in pixels) in this buffer. /// - public uint Rows { get { return _rows; } set { _rows = value; } } + public uint Rows { get { return _rows; } } /// /// How far, in pixels, the left edge of the piece of the image being described /// by this structure is inset from the "left" side of the original image. If the /// Source is transferring in "strips", this value will equal zero. If the Source /// is transferring in "tiles", this value will often be non-zero. /// - public uint XOffset { get { return _xOffset; } set { _xOffset = value; } } + public uint XOffset { get { return _xOffset; } } /// /// Same idea as XOffset, but the measure is in pixels from the "top" of the /// original image to the upper edge of this piece. /// - public uint YOffset { get { return _yOffset; } set { _yOffset = value; } } + public uint YOffset { get { return _yOffset; } } /// /// The number of bytes written into the transfer buffer. This field must /// always be filled in correctly, whether compressed or uncompressed data /// is being transferred. /// - public uint BytesWritten { get { return _bytesWritten; } set { _bytesWritten = value; } } + public uint BytesWritten { get { return _bytesWritten; } } /// /// A structure of type describing who must dispose of the /// buffer, the actual size of the buffer, in bytes, and where the buffer is /// located in memory. /// - public TWMemory Memory { get { return _memory; } set { _memory = value; } } + public TWMemory Memory { get { return _memory; } internal set { _memory = value; } } } ///