PixelFormatExtensionsToPixelFormat Method
Namespace: KGySoft.DrawingAssembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 9.0.0
public static PixelFormat ToPixelFormat(
this KnownPixelFormat pixelFormat
)
<ExtensionAttribute>
Public Shared Function ToPixelFormat (
pixelFormat As KnownPixelFormat
) As PixelFormat
public:
[ExtensionAttribute]
static PixelFormat ToPixelFormat(
KnownPixelFormat pixelFormat
)
[<ExtensionAttribute>]
static member ToPixelFormat :
pixelFormat : KnownPixelFormat -> PixelFormat
- pixelFormat KnownPixelFormat
- The source KnownPixelFormat to convert to a PixelFormat.
PixelFormatA
PixelFormat instance. It will be
Undefined if the source
pixelFormat cannot be mapped.In Visual Basic and C#, you can call this method as an instance method on any object of type
KnownPixelFormat. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).