SKSwizzle.SwapRedBlue Method

Definition

Overloads

SwapRedBlue(Span<Byte>)

Swizzles the byte order of 32-bit pixels, swapping R and B. (RGBA <-> BGRA)

SwapRedBlue(IntPtr, Int32)

Swizzles the byte order of 32-bit pixels, swapping R and B. (RGBA <-> BGRA)

SwapRedBlue(ReadOnlySpan<Byte>, Int32)

Swizzles the byte order of 32-bit pixels, swapping R and B. (RGBA <-> BGRA)

SwapRedBlue(IntPtr, IntPtr, Int32)

Swizzles the byte order of 32-bit pixels, swapping R and B. (RGBA <-> BGRA)

SwapRedBlue(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32)

Swizzles the byte order of 32-bit pixels, swapping R and B. (RGBA <-> BGRA)

SwapRedBlue(Span<Byte>)

Swizzles the byte order of 32-bit pixels, swapping R and B. (RGBA <-> BGRA)

public static void SwapRedBlue (Span<byte> pixels);

Parameters

pixels
Span<Byte>

The pixel buffer to swizzle.

Applies to

SwapRedBlue(IntPtr, Int32)

Swizzles the byte order of 32-bit pixels, swapping R and B. (RGBA <-> BGRA)

public static void SwapRedBlue (IntPtr pixels, int count);

Parameters

pixels
IntPtr

The pixel buffer to swizzle.

count
Int32

The size of the pixel buffers.

Applies to

SwapRedBlue(ReadOnlySpan<Byte>, Int32)

Swizzles the byte order of 32-bit pixels, swapping R and B. (RGBA <-> BGRA)

public static void SwapRedBlue (ReadOnlySpan<byte> pixels, int count);

Parameters

pixels
ReadOnlySpan<Byte>

The pixel buffer to swizzle.

count
Int32

The size of the pixel buffers.

Applies to

SwapRedBlue(IntPtr, IntPtr, Int32)

Swizzles the byte order of 32-bit pixels, swapping R and B. (RGBA <-> BGRA)

public static void SwapRedBlue (IntPtr dest, IntPtr src, int count);

Parameters

dest
IntPtr

The destination pixel buffer.

src
IntPtr

The source pixel buffer.

count
Int32

The size of the pixel buffers.

Applies to

SwapRedBlue(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32)

Swizzles the byte order of 32-bit pixels, swapping R and B. (RGBA <-> BGRA)

public static void SwapRedBlue (ReadOnlySpan<byte> dest, ReadOnlySpan<byte> src, int count);

Parameters

dest
ReadOnlySpan<Byte>

The destination pixel buffer.

src
ReadOnlySpan<Byte>

The source pixel buffer.

count
Int32

The size of the pixel buffers.

Applies to