Show / Hide Table of Contents

Class PixelFormatExtensions

Extension methods for PixelFormat to convert to SkiaSharp and ImageSharp types.

Inheritance
object
PixelFormatExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Zaya.Screenshot.Models
Assembly: Zaya.Screenshot.dll
Syntax
public static class PixelFormatExtensions

Methods

| Edit this page View Source

ToImageSharpPixelType(PixelFormat)

Gets the ImageSharp pixel Type object.

Declaration
public static Type? ToImageSharpPixelType(this PixelFormat format)
Parameters
Type Name Description
PixelFormat format
Returns
Type Description
Type
| Edit this page View Source

ToImageSharpPixelTypeName(PixelFormat)

Gets the ImageSharp pixel type name.

Declaration
public static string ToImageSharpPixelTypeName(this PixelFormat format)
Parameters
Type Name Description
PixelFormat format
Returns
Type Description
string
| Edit this page View Source

ToSkiaSharpColorTypeValue(PixelFormat)

Converts to SkiaSharp color type value (int).

Declaration
public static int ToSkiaSharpColorTypeValue(this PixelFormat format)
Parameters
Type Name Description
PixelFormat format
Returns
Type Description
int
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX