Skip to content

SplatColorExtensions class

Defined in

Namespace: Splat Assembly: Splat.Drawing.dll Full name: Splat.SplatColorExtensions Modifiers: public static

Summary

View source

Provides extension methods for converting between SplatColor and native Cocoa color types.

Applies to

net10.0-ios26.0, net10.0-android36.0, net10.0-maccatalyst26.0, net10.0-macos26.0, net10.0-tvos26.0, net10.0-windows10.0.19041, net10.0-windows10.0.17763, net9.0-windows10.0.17763, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net8.0-windows10.0.17763, net462, net481

Remarks

These methods enable seamless interoperability between SplatColor and platform-specific color representations, such as UIColor on iOS or NSColor on macOS. Use these extensions to convert colors when working with native UI frameworks.

Methods

NameSummary
static ToNative
static FromNative
Inherited members

Extension blocks

extension(SplatColor value)

  • ToNative

extension(UIColor value)

  • FromNative