Show / Hide Table of Contents

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 Source

SampleRow(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.
You can pass collection with more than sampleCount samples - only sampleCount samples will be parsed and all remaining bytes will be ignored.

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 Source

Item[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.

| Improve this Doc View Source

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 Source

GetAt(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.

| Improve this Doc View Source

ToBytes()

Serializes this row to raw bytes.

Declaration
public byte[] ToBytes()
Returns
Type Description
System.Byte[]

The row representation as array of bytes

  • Improve this Doc
  • View Source
Back to top Generated by DocFX