Show / Hide Table of Contents
View Source

Class PixelStream

Inheritance
System.Object
System.MarshalByRefObject
System.IO.Stream
System.IO.MemoryStream
PixelStream
Inherited Members
System.IO.MemoryStream.BeginRead(System.Byte[], System.Int32, System.Int32, System.AsyncCallback, System.Object)
System.IO.MemoryStream.BeginWrite(System.Byte[], System.Int32, System.Int32, System.AsyncCallback, System.Object)
System.IO.MemoryStream.CopyTo(System.IO.Stream, System.Int32)
System.IO.MemoryStream.CopyToAsync(System.IO.Stream, System.Int32, System.Threading.CancellationToken)
System.IO.MemoryStream.Dispose(System.Boolean)
System.IO.MemoryStream.EndRead(System.IAsyncResult)
System.IO.MemoryStream.EndWrite(System.IAsyncResult)
System.IO.MemoryStream.Flush()
System.IO.MemoryStream.FlushAsync(System.Threading.CancellationToken)
System.IO.MemoryStream.GetBuffer()
System.IO.MemoryStream.Read(System.Byte[], System.Int32, System.Int32)
System.IO.MemoryStream.Read(System.Span<System.Byte>)
System.IO.MemoryStream.ReadAsync(System.Byte[], System.Int32, System.Int32, System.Threading.CancellationToken)
System.IO.MemoryStream.ReadAsync(System.Memory<System.Byte>, System.Threading.CancellationToken)
System.IO.MemoryStream.ReadByte()
System.IO.MemoryStream.Seek(System.Int64, System.IO.SeekOrigin)
System.IO.MemoryStream.SetLength(System.Int64)
System.IO.MemoryStream.ToArray()
System.IO.MemoryStream.TryGetBuffer(System.ArraySegment<System.Byte>)
System.IO.MemoryStream.Write(System.Byte[], System.Int32, System.Int32)
System.IO.MemoryStream.Write(System.ReadOnlySpan<System.Byte>)
System.IO.MemoryStream.WriteAsync(System.Byte[], System.Int32, System.Int32, System.Threading.CancellationToken)
System.IO.MemoryStream.WriteAsync(System.ReadOnlyMemory<System.Byte>, System.Threading.CancellationToken)
System.IO.MemoryStream.WriteByte(System.Byte)
System.IO.MemoryStream.WriteTo(System.IO.Stream)
System.IO.MemoryStream.CanRead
System.IO.MemoryStream.CanSeek
System.IO.MemoryStream.CanWrite
System.IO.MemoryStream.Capacity
System.IO.MemoryStream.Length
System.IO.MemoryStream.Position
System.IO.Stream.Null
System.IO.Stream.Close()
System.IO.Stream.CopyTo(System.IO.Stream)
System.IO.Stream.CopyToAsync(System.IO.Stream)
System.IO.Stream.CopyToAsync(System.IO.Stream, System.Int32)
System.IO.Stream.CopyToAsync(System.IO.Stream, System.Threading.CancellationToken)
System.IO.Stream.CreateWaitHandle()
System.IO.Stream.Dispose()
System.IO.Stream.DisposeAsync()
System.IO.Stream.FlushAsync()
System.IO.Stream.ObjectInvariant()
System.IO.Stream.ReadAsync(System.Byte[], System.Int32, System.Int32)
System.IO.Stream.Synchronized(System.IO.Stream)
System.IO.Stream.ValidateBufferArguments(System.Byte[], System.Int32, System.Int32)
System.IO.Stream.ValidateCopyToArguments(System.IO.Stream, System.Int32)
System.IO.Stream.WriteAsync(System.Byte[], System.Int32, System.Int32)
System.IO.Stream.CanTimeout
System.IO.Stream.ReadTimeout
System.IO.Stream.WriteTimeout
System.MarshalByRefObject.GetLifetimeService()
System.MarshalByRefObject.InitializeLifetimeService()
System.MarshalByRefObject.MemberwiseClone(System.Boolean)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace:EvilDICOM.Core.Image
Assembly:EvilDICOM.dll
Syntax
public class PixelStream : MemoryStream, IAsyncDisposable, IDisposable

Constructors

View Source

PixelStream(IEnumerable<Byte>)

Declaration
public PixelStream(IEnumerable<byte> bytes)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Byte> bytes

Methods

View Source

GetValues16(Boolean)

Converts the byte array to 16 bit integer array

Declaration
public short[] GetValues16(bool isDataLittleEndian = true)
Parameters
Type Name Description
System.Boolean isDataLittleEndian
Returns
Type Description
System.Int16[]
View Source

GetValues32(Boolean)

Converts the byte array to 32 bit integer array

Declaration
public int[] GetValues32(bool isDataLittleEndian = true)
Parameters
Type Name Description
System.Boolean isDataLittleEndian
Returns
Type Description
System.Int32[]
View Source

GetValues64(Boolean)

Converts the byte array to 64 bit integer array

Declaration
public long[] GetValues64(bool isDataLittleEndian = true)
Parameters
Type Name Description
System.Boolean isDataLittleEndian
Returns
Type Description
System.Int64[]
View Source

SetValues16(Int32[], Boolean)

Converts the integer pixels into bytes and sets the pixel data

Declaration
public void SetValues16(int[] pixels, bool isDataLittleEndian = true)
Parameters
Type Name Description
System.Int32[] pixels
System.Boolean isDataLittleEndian
View Source

SetValues32(Int32[], Boolean)

Converts the integer pixels into bytes and sets the pixel data

Declaration
public void SetValues32(int[] pixels, bool isDataLittleEndian = true)
Parameters
Type Name Description
System.Int32[] pixels
System.Boolean isDataLittleEndian
View Source

SetValues32(UInt16[], Boolean)

Converts the integer pixels into bytes and sets the pixel data

Declaration
public void SetValues32(ushort[] pixels, bool isDataLittleEndian = true)
Parameters
Type Name Description
System.UInt16[] pixels
System.Boolean isDataLittleEndian
View Source

SetValues8(Int32[])

Declaration
public void SetValues8(int[] pixels)
Parameters
Type Name Description
System.Int32[] pixels
Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX