Class SampleRow
Represents a row of image - collection of samples.
Inheritance
System.Object
SampleRow
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: BitMiracle.LibJpeg
Assembly: BitMiracle.LibJpeg.NET.dll
Syntax
public class SampleRow
Constructors
| Improve this Doc View SourceSampleRow(Byte[], Int32, Byte, Byte)
Creates a row from raw samples data.
Declaration
public SampleRow(byte[] row, int sampleCount, byte bitsPerComponent, byte componentsPerSample)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | row | Raw description of samples. |
System.Int32 | sampleCount | The number of samples in row. |
System.Byte | bitsPerComponent | The number of bits per component. |
System.Byte | componentsPerSample | The number of components per sample. |
Properties
| Improve this Doc View SourceItem[Int32]
Gets the sample at the specified index.
Declaration
public Sample this[int sampleNumber] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | sampleNumber | The number of sample. |
Property Value
Type | Description |
---|---|
Sample | The required sample. |
Length
Gets the number of samples in this row.
Declaration
public int Length { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The number of samples. |
Methods
| Improve this Doc View SourceGetAt(Int32)
Gets the sample at the specified index.
Declaration
public Sample GetAt(int sampleNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | sampleNumber | The number of sample. |
Returns
Type | Description |
---|---|
Sample | The required sample. |
ToBytes()
Serializes this row to raw bytes.
Declaration
public byte[] ToBytes()
Returns
Type | Description |
---|---|
System.Byte[] | The row representation as array of bytes |