Struct LineIterator.Pixel
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
LineIterator pixel data: its position and a pointer into the image buffer.
public readonly record struct LineIterator.Pixel : IEquatable<LineIterator.Pixel>
- Implements
- Inherited Members
Constructors
Pixel(Point, nint)
LineIterator pixel data: its position and a pointer into the image buffer.
public Pixel(Point Pos, nint Ptr)
Parameters
PosPointPixel position.
PtrnintPointer to the pixel inside the image buffer. Only valid while the source image has not been disposed.
Properties
Pos
Pixel position.
public Point Pos { get; init; }
Property Value
Ptr
Pointer to the pixel inside the image buffer. Only valid while the source image has not been disposed.
public nint Ptr { get; init; }
Property Value
ValuePointer
Pointer to the pixel as a byte pointer.
public byte* ValuePointer { get; }
Property Value
- byte*
Methods
GetValue<T>()
Reads the pixel value as T.
The source image must still be alive.
public T GetValue<T>() where T : struct
Returns
- T
Type Parameters
T
SetValue<T>(T)
Writes the pixel value of type T.
The source image must still be alive.
public void SetValue<T>(T value) where T : struct
Parameters
valueT
Type Parameters
T