BitmapDataExtensionsGetPreferredColorSpace Method
Gets a non-default
WorkingColorSpace that can be used when working with the specified
bitmapData.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
public static WorkingColorSpace GetPreferredColorSpace(
this IBitmapData? bitmapData
)
<ExtensionAttribute>
Public Shared Function GetPreferredColorSpace (
bitmapData As IBitmapData
) As WorkingColorSpace
public:
[ExtensionAttribute]
static WorkingColorSpace GetPreferredColorSpace(
IBitmapData^ bitmapData
)
[<ExtensionAttribute>]
static member GetPreferredColorSpace :
bitmapData : IBitmapData -> WorkingColorSpace
- bitmapData IBitmapData
- An IBitmapData to determine the result. If , then Srgb is returned.
WorkingColorSpaceA non-default
WorkingColorSpace that can be used when working with the specified
bitmapData.In Visual Basic and C#, you can call this method as an instance method on any object of type
IBitmapData. 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).