Show / Hide Table of Contents

Class Sample

Represents a "sample" (you can understand it as a "pixel") of image.

Inheritance
System.Object
Sample
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 Sample
Remarks

It's impossible to create an instance of this class directly, but you can use existing samples through SampleRow collection. Usual scenario is to get row of samples from the GetRow(Int32) method.

Properties

| Improve this Doc View Source

BitsPerComponent

Gets the number of bits per color component.

Declaration
public byte BitsPerComponent { get; }
Property Value
Type Description
System.Byte

The number of bits per color component.

| Improve this Doc View Source

ComponentCount

Gets the number of color components.

Declaration
public byte ComponentCount { get; }
Property Value
Type Description
System.Byte

The number of color components.

| Improve this Doc View Source

Item[Int32]

Gets the color component at the specified index.

Declaration
public short this[int componentNumber] { get; }
Parameters
Type Name Description
System.Int32 componentNumber

The number of color component.

Property Value
Type Description
System.Int16

Value of color component.

Methods

| Improve this Doc View Source

GetComponent(Int32)

Gets the required color component.

Declaration
public short GetComponent(int componentNumber)
Parameters
Type Name Description
System.Int32 componentNumber

The number of color component.

Returns
Type Description
System.Int16

Value of color component.

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